-
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
deferred download tests hang when the repo is defined in MODULE.bazel #23234
Comments
This one is almost funny... This line is invalid MODULE.bazel: |
Thanks for figuring it out!! |
It is possible to somehow fix the test setup to let it fail with a meaningful error? |
there's apparently a "timeout" command on GNU/Linux (https://stackoverflow.com/questions/7270622/reading-with-cat-stop-when-not-receiving-data) but it's not available on macOS. other solutions seem rather messy (one requires a |
By "test setup" do you mean the If so, I don't have any wisdom to offer other than that it's very reasonable to encapsulate the "sleep then kill" functionality in a function, which would result in less pollution. Something like this (wrote in half a minute, don't expect this to be perfect):
timeout 5 "cat $FIFO" |
Description of the bug:
Discovered while migrating tests from WORKSPACE to Bzlmod: #23087
After changing
to
All test cases using
deferred.wait()
seems to hang indefinitely.Which category does this issue belong to?
No response
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Apply the above change in
test_deferred_download_smoke
thenWhich operating system are you running Bazel on?
Linux, macOS
What is the output of
bazel info release
?No response
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
Related commit is 73c1a1e
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: