-
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
Crash when using execution log and flaky_test_attempts if test fails #12510
Comments
This assumption is just wrong when there are test retries: bazel/src/main/java/com/google/devtools/build/lib/bazel/execlog/StableSort.java Lines 71 to 72 in 1387748
|
I'm not familiar with the codebase. What is the impact if we allow the same output path to appear multiple times to represent that it was executed multiple times? |
#13761 seems to be another instance of this issue |
This reverts commit 4b210bd. Unfortunately this seems to increase the chances that we hit bazelbuild/bazel#12510 so I am reverting it for now
This reverts commit 4b210bd. Unfortunately this seems to increase the chances that we hit bazelbuild/bazel#12510 so I am reverting it for now (cherry picked from commit 966d9e3)
As reported in #12510 there might be multiple spawns with the same output when flaky tests are executed multiple times. The fix is to remove the check for presence of duplicate outputs and to extend the sorting algorithm to accept multiple outputs with the same name. Closes #13650. PiperOrigin-RevId: 393750094
Thanks for the fix @styurin |
As reported in bazelbuild#12510 there might be multiple spawns with the same output when flaky tests are executed multiple times. The fix is to remove the check for presence of duplicate outputs and to extend the sorting algorithm to accept multiple outputs with the same name. Cherry-pick of e58dd7e from bazelbuild@e58dd7e
As reported in bazelbuild#12510 there might be multiple spawns with the same output when flaky tests are executed multiple times. The fix is to remove the check for presence of duplicate outputs and to extend the sorting algorithm to accept multiple outputs with the same name. Cherry-pick of e58dd7e from bazelbuild@e58dd7e
As reported in bazelbuild#12510 there might be multiple spawns with the same output when flaky tests are executed multiple times. The fix is to remove the check for presence of duplicate outputs and to extend the sorting algorithm to accept multiple outputs with the same name. Cherry-pick of e58dd7e from bazelbuild@e58dd7e
Description of the problem / feature request:
Bazel crashes when executing a failing test with both
flaky_test_attempts
> 1 and either execution log flags.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
BUILD file:
test.sh:
What operating system are you running Bazel on?
MacOS and Linux
What's the output of
bazel info release
?release 3.7.0
Other
Is this a recurrence of #8364 ?
The text was updated successfully, but these errors were encountered: