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

Add --skip_incompatible_explicit_targets option #17404

Conversation

marczych-zoox
Copy link
Contributor

This adds an argument to skip incompatible targets even if they were explicitly requested on the command line. This is useful for CI to allow it to build changed targets from rdeps queries without needing to filter them all through a cquery to check if they are compatible.

Closes #17403

RELNOTES: Add --skip_incompatible_explicit_targets option

@marczych-zoox
Copy link
Contributor Author

Heads up: I ported this patch from bazel 4.2 so I'm still working on fixing the compile errors.

@sgowroji sgowroji added team-Configurability platforms, toolchains, cquery, select(), config transitions awaiting-user-response Awaiting a response from the author labels Feb 3, 2023
@marczych-zoox marczych-zoox force-pushed the add-skip-incompatible-explicit-targets-option branch from 6915638 to d62de1f Compare February 3, 2023 06:09
@marczych-zoox
Copy link
Contributor Author

Okay, as far as I can tell these test failures aren't related to my changes so this is ready for review. Any feedback is welcome!

@gregestren
Copy link
Contributor

Continued the conversation on the issue.

@sgowroji
Copy link
Member

Hi @marczych-zoox, Could you please resolve the code conflicts and review comments. Thanks!

This adds an argument to skip incompatible targets even if they were
explicitly requested on the command line. This is useful for CI to
allow it to build changed targets from rdeps queries without needing
to filter them all through a cquery to check if they are compatible.

Closes bazelbuild#17403

RELNOTES: Add `--skip_incompatible_explicit_targets` option
@marczych-zoox marczych-zoox force-pushed the add-skip-incompatible-explicit-targets-option branch from d62de1f to a1ea798 Compare March 16, 2023 22:52
@marczych-zoox marczych-zoox requested review from a team and philomathing as code owners March 16, 2023 22:52
@marczych-zoox
Copy link
Contributor Author

I pushed a fix for the inline comment as well as the one from the ticket to move it to AnalysisOptions: #17403 (comment)

Let me know if there is anything else that needs to be done!

@gregestren gregestren added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-user-response Awaiting a response from the author labels Mar 20, 2023
@sgowroji sgowroji removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Mar 27, 2023
fweikert pushed a commit to fweikert/bazel that referenced this pull request May 25, 2023
This adds an argument to skip incompatible targets even if they were explicitly requested on the command line. This is useful for CI to allow it to build changed targets from rdeps queries without needing to filter them all through a cquery to check if they are compatible.

Closes bazelbuild#17403

RELNOTES: Add `--skip_incompatible_explicit_targets` option

Closes bazelbuild#17404.

PiperOrigin-RevId: 519636134
Change-Id: I16d6a4896cf920f42364cba162001b1bb7658e65
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.

Skipping incompatible targets is too cumbersome
3 participants