-
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
test-setup.sh: outputs.zip creation may fail silently #8336
Comments
@laszlocsomor is the person who's spent a lot of time in this area, maybe he could review the PR? :) @laszlocsomor do you have plans to work on the |
Thanks for the report and repro! Gentle facepalm at the culprit. Currently I'm not planning to work on |
Sounds good to me. :) |
I can't print a warning to the console because Bazel prints no output for passing tests. So I'll print the warning to the test log. |
If test-setup.sh fails to create the undeclared outputs zip, then print a warning but carry on. Failing to create this zip is a nuisance but not a fatal error. The warning is printed to the test log. If the test fails, this is printed to the console too. If the test passes, then the warning remains only in the test log (Bazel prints no output for passing tests). Fixes bazelbuild#8336 Change-Id: Iee8121d76e96445252d97142cef68c50afbb25b1
If test-setup.sh fails to create the undeclared outputs zip, then print a warning but carry on. Failing to create this zip is a nuisance but not a fatal error. The warning is printed to the test log. If the test fails, this is printed to the console too. If the test passes, then the warning remains only in the test log (Bazel prints no output for passing tests). Fixes bazelbuild#8336 Change-Id: Iee8121d76e96445252d97142cef68c50afbb25b1 Closes bazelbuild#8720. Change-Id: Iee8121d76e96445252d97142cef68c50afbb25b1 PiperOrigin-RevId: 255401321
If test-setup.sh fails to create the undeclared outputs zip, then print a warning but carry on. Failing to create this zip is a nuisance but not a fatal error. The warning is printed to the test log. If the test fails, this is printed to the console too. If the test passes, then the warning remains only in the test log (Bazel prints no output for passing tests). Fixes bazelbuild#8336 Change-Id: Iee8121d76e96445252d97142cef68c50afbb25b1 Closes bazelbuild#8720. Change-Id: Iee8121d76e96445252d97142cef68c50afbb25b1 PiperOrigin-RevId: 255401321
Description of the problem / feature request:
If the
zip
command from the following blurb fails for any reason,outputs.zip
is not created and the user has no idea why.bazel/tools/test/test-setup.sh
Lines 355 to 361 in c797411
This can happen if --
zip
isn't installed on the test system;zip
is too old and chokes on--
(stop laughing);Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Observe that the test succeeds and
bazel-testlogs/foo_test/test.outputs_manifest
exists, but.../test.outputs/outputs.zip
is missing.What operating system are you running Bazel on?
What's the output of
bazel info release
?release 0.24.1+vmware
If
bazel info release
returns "development version" or "(@non-git)", tell us how you built Bazel.n/a
What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?n/a
Have you found anything relevant by searching the web?
No.
Any other information, logs, or outputs that you want to share?
No.
The text was updated successfully, but these errors were encountered: