-
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
stub_finds_runfiles_test failing on nightly #4562
Comments
Umm.. why did you assign this to me? This test is horrible - doesn't redirect anything to $TEST_log and doesn't even encapsulate its code in a test_* function so that the test framework probably won't work at all. This is why we don't get any good log or stack trace from the test. Can you find out who the original owner of this test is via the internal file history (public Git history only shows that it was basically not touched after open-sourcing some time in 2016) and assign it to them? I think before we can get anything valuable out of the test we have to fix it, alternatively try to reproduce locally and if that succeeds git bisect it. |
Sorry, I was looking for people with insight into runfiles. I'll reassign to myself and start investigating as you suggest. |
Oh, OK! Sorry, I don't know much about runfiles :( Pinging @laszlocsomor just in case he has any clue what this might be about. |
I can reproduce this, but only by running the test with Bazel built from HEAD. So it's some kind of interaction in the test environment, I suspect. First try at fixing will be to make this a real sh_test, I guess. |
This is the source of the error:
The error message says "/io_bazel/src/bazel: No such file or directory", so the test cannot find bazel/src/test/shell/bazel/BUILD Line 29 in b534e6b
@katre : if you want to investigate, make sure the runfile is there ("io_bazel/src/bazel" is |
Yeah, looks like the "unset TEST_SRCDIR" might be the problem. I have a fix (basically just removes that), but I'm going to bisect this morning and figure out what change in Bazel actually causes this. |
Okay, here's the issue, in @laszlocsomor's change 8130287, in tools/test/test-setup.sh, where it changes to using TEST_SRCDIR in the implementation of rlocation. Since this test unsets TEST_SRCDIR, that leaves the path to bazel as "/io_bazel/src/bazel". |
Going ahead and importing https://bazel-review.googlesource.com/c/bazel/+/35850 to fix this. |
Ouch. Thanks for figuring that out! |
Fixed in ea2d4c4 |
Fixed in 0.11.0rc4. |
Error:
Failing in many different configurations, see here: https://ci.bazel.build/blue/organizations/jenkins/Global%2Fbazel-tests/detail/bazel-tests/482/tests
The text was updated successfully, but these errors were encountered: