-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Bazel CI: Bazel@HEAD breaks Bazel Examples (Rules) in downstream pipeline #14361
Comments
To reproduce
|
@sdtwigg We saw this before in #13915 (comment). |
The crashing target What I don't understand is why there is any trimming at all in this scenario: The two rules involved in the crashing example are |
ping @sdtwigg |
Transitioning on the options in TestOptions is really weird. They can't affect the actual test actions because those are consumed only when those are top-level targets (even being in a test_suite causes special logic to come into play and test_suite has no transitions anyway). So, in a real scenario, this would at best change select statement resolution (but potentially problematically because the actual executed tests will be with the command-line determined test_arg!) I will make FunctionTransitionUtil more resilient to a trimmed option missing; however, this test should be changed to transition on a different option. Ultimately, I may just implement a complete ban on any transitions affecting TestOptions. |
PS: In other tests, I was replacing --test_arg with --platform_suffix transitions, which affect the output directory name at least. |
@sdtwigg Sounds good, do I understand correctly that you are going to make some tweaks in Bazel, and can you also help fixing our examples (https://github.com/bazelbuild/examples/tree/main/rules/starlark_configurations)? |
This will skip testing those jobs with Bazel@HEAD in downstream pipeline. We can re-enable them in downstream when bazelbuild/bazel#14361 is fixed.
* Set specific bazel version number for "Bazel Rules" job This will skip testing those jobs with Bazel@HEAD in downstream pipeline. We can re-enable them in downstream when bazelbuild/bazel#14361 is fixed. * Use "latest"
Bazel examples is still broken with Bazel@HEAD, but I'll deprioritize this since it's disabled in downstream now. |
I believe this is fixed by bazelbuild/examples@7fc3f8b |
Bazel Examples are now fixed with Bazel@HEAD: bazelbuild/bazel#14361
Bazel Examples are now fixed with Bazel@HEAD: bazelbuild/bazel#14361
Bazel Examples are now fixed with Bazel@HEAD: bazelbuild/bazel#14361
https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/2242#9648195b-7d68-4461-9c9c-8b1a0d7ee23b4
/cc @sdtwigg I can confirm 711c44e is the culprit and b371a98 did not fix the issue.
The text was updated successfully, but these errors were encountered: