-
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
Windows: Flipping --incompatible_auto_configure_host_platform flag causes "failed to delete output files before executing action" error #9104
Comments
I also noticed if you remove the flag again, the build will still fail to delete outputs. This is worth investigating. |
Huh, that's a really unexpected error from changing the host platform. I'll try to investigate. Is there a windows VM configured that I can use to reproduce? |
This is really weird: flipping the flag causes the failure, regardless of which way it is flipped. bazel clean
bazel build //e2e:e2e_karma --incompatible_auto_configure_host_platform
# Succeeds
bazel build //e2e:e2e_karma --noincompatible_auto_configure_host_platform
# Fails And... bazel clean
bazel build //e2e:e2e_karma --noincompatible_auto_configure_host_platform
# Succeeds
bazel build //e2e:e2e_karma --incompatible_auto_configure_host_platform
# Fails |
Finally managed a clean debug, here is the error:
So it appears that changing this flag is tickling a permissions error. Possibly the worker still being active means the file can't be deleted? When we discard the analysis cache, should workers also be shut down? |
I guess that's exactly the problem, we don't shutdown the workers after discarding the analysis cache. @alexeagle @gregmagolan How does the worker get started and what could we do to shutdown the workers? |
I would like to submit the flag flip for `--incompatible_auto_configure_host_platform`` (#7081). Should this issue block that? |
I don't think the flag causes the error, I think it's just one way to cause re-running the same action, which is what triggers it. |
I'm if you can go ahead and flip the flag. But you should do a downstream test for all projects with this flag flipped. |
This error is not happening in the latest downstream build: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/1144 (I'm not sure what the error is with res_test, however). |
I did a bisect, it turned out the failure of |
Thank you for debugging. I was confused because that didn't fail in the actual CI run, only the downstream. |
Yes, I'll take a look. |
Yes, because that's not a shell test, it's somehow affected by the Bazel binary that runs the test. |
@laszlocsomor Thanks! |
confusion intensifies Without the flag:
With the flag:
Confusing bit:
|
I think this is because I'll send a PR shortly to fix |
Right, I can't update |
OK, looks like we should do the same for |
Yes, I think so.
…On Wed, Aug 14, 2019, 7:39 AM Yun Peng ***@***.***> wrote:
OK, looks like we should do the same for res_test?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#9104?email_source=notifications&email_token=AACPW74S42GGA3AS5AKICOTQEPVHZA5CNFSM4IJ7W6D2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4IQZLA#issuecomment-521211052>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACPW73K5ZVWGGBLK5MIGL3QEPVHZANCNFSM4IJ7W6DQ>
.
|
Sorry, I don't follow.
So can't we fix the test in 0.29.0?
Sorry again, do what? |
I suppose if we want to fix the tests ( |
Thanks @meteorcloudy ! I'm fine with that. |
#9104 (comment) RELNOTES: None PiperOrigin-RevId: 263339618
Thanks! I'll take care of cleaning up this (and combiners_test) after the release. |
Related #7081
To reproduce:
This affects project like rules_nodejs where worker is used during the build. If I manually kill the worker after the first build, the second build with the flag won't fail to delete the outputs.
@katre
The text was updated successfully, but these errors were encountered: