Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ElfReaderTest's nm usage to be hermetic #1980

Merged

Conversation

ddelnano
Copy link
Member

Summary: Update ElfReaderTest's nm usage to be hermetic

This was feedback from #1976. See this comment for the previous discussion.

Relevant Issues: N/A

Type of change: /kind cleanup

Test Plan: Elf reader tests pass with updates

@ddelnano ddelnano requested review from a team as code owners August 13, 2024 14:44
@@ -110,6 +116,7 @@ filegroup(
"as",
"cov",
"objcopy",
"nm",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JamesMBartlett @vihangm is it possible to get access to a toolchain's other tools? Ideally I'd use the toolchain version of objdump for the test added in #1976 (see discussion linked in this PR's description). Unlike nm and objcopy, which have custom Makefile variables built-in, objdump doesn't have an existing variable.

It seems that TemplateVariableInfo could work for this, but it feels a little strange that it wouldn't be toolchain specific the way @bazel_tools//tools/cpp:current_cc_toolchain is.

@ddelnano ddelnano force-pushed the ddelnano/make-elf-reader-nm-usage-hermetic branch from c456c26 to 8c4f275 Compare August 16, 2024 15:32
@ddelnano ddelnano merged commit 887401c into pixie-io:main Aug 26, 2024
35 checks passed
@ddelnano ddelnano deleted the ddelnano/make-elf-reader-nm-usage-hermetic branch August 26, 2024 21:49
ddelnano added a commit to ddelnano/pixie that referenced this pull request Sep 23, 2024
Summary: Update `ElfReaderTest`'s nm usage to be hermetic

This was feedback from pixie-io#1976. See [this
comment](pixie-io#1976 (comment))
for the previous discussion.

Relevant Issues: N/A

Type of change: /kind cleanup

Test Plan: Elf reader tests pass with updates

---------

Signed-off-by: Dom Del Nano <[email protected]>
GitOrigin-RevId: 887401c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants