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

Ensure that tests set up execution platforms for test rules #25142

Closed
wants to merge 1 commit into from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Jan 30, 2025

In preparation for changes to the resolution of exec platforms for tests, have analysis tests register exec platforms that are compatible with their tests' target platforms.

In target_compatible_with_test, replace a usage of sh_test with sh_binary to retain the setup as closely as possible by avoiding changes to constraints and platforms.

Also remove the remaining shell analysis tests now that shell rules have been moved out of the Bazel repo. Keeping them would require extensive mocking, at which point they would lose their purpose.

In preparation for changes to the resolution of exec platforms for tests, have analysis tests register exec platforms that are compatible with their tests target platforms.

In `target_compatible_with_test`, replace a usage of `sh_test` with `sh_binary` to retain the setup as closely as possible by avoiding changes to constraints and platforms.

Also remove the remaining shell analysis tests now that shell rules have been moved out of the Bazel repo. Keeping them would require extensive mocking, at which point they would lose their purpose.
@fmeum fmeum requested a review from a team as a code owner January 30, 2025 18:07
@fmeum fmeum requested review from aranguyen and katre and removed request for a team and aranguyen January 30, 2025 18:07
@github-actions github-actions bot added team-Configurability platforms, toolchains, cquery, select(), config transitions awaiting-review PR is awaiting review from an assigned reviewer labels Jan 30, 2025
@katre katre requested a review from comius January 30, 2025 18:08
Copy link
Member

@katre katre left a comment

Choose a reason for hiding this comment

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

Looks good to me: adding @comius to review the sh changes.

Wait for that review before merging

@comius comius added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Jan 31, 2025
@github-actions github-actions bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Configurability platforms, toolchains, cquery, select(), config transitions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants