-
Notifications
You must be signed in to change notification settings - Fork 4k
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
//src/test/shell/bazel:bazel_test_test
does not pass
#3727
Comments
I can repro this on my machine. Trying to find the culprit now. |
I couldn't find a single revision where this test actually passes. Weird. |
…_DIR and TEST_UNDECLARED_OUTPUTS_ANNOTATIONS_DIR to Bazel. After this change: - Any files written to the TEST_UNDECLARED_OUTPUTS_DIR directory will be zipped up and added to an outputs.zip file under bazel-testlogs. - Files will be listed in a MANIFEST file under bazel-testlogs. - Any files written to TEST_UNDECLARED_OUTPUTS_ANNOTATIONS_DIR will be concatenated together into an ANNOTATIONS file under bazel-testlogs. This provides a channel for tests to provide extra information outside of the test output itself. This is useful for things like verbose server logs. Note: The //src/test/shell/bazel:bazel_test_test target has a pre-existing breakage (see #3727). But the new tests pass. RELNOTES: Tests can now write files to TEST_UNDECLARED_OUTPUTS_DIR and TEST_UNDECLARED_OUTPUTS_ANNOTATIONS_DIR and these will be reflected under bazel-testlogs. PiperOrigin-RevId: 169282528
I think I figured this out - the issue is that some .bazelrc file is leaking into the test. I happen to have on my machine a bazelrc in The first-order fix is to just add Of course this ignores the issue that the tests won't be compatible with the new UI, which is another issue. And the deeper issue that tests should be more hermetic than this! (I'm not entirely clear on the distinction between |
Steps to reproduce:
Partial output (didn't copy the whole thing since it contains directory information):
Am I doing something wrong or are these tests broken at HEAD?
Platform: Ubuntu
The text was updated successfully, but these errors were encountered: