-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Flatbuffers is failing with Bazel@HEAD #7937
Comments
Its green on our CI: https://buildkite.com/bazel/flatbuffers/builds?branch=master I'll take a look if the CI is missing something. |
Oh 67084b9 is not head, why are we looking at an old commit? |
https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3007#0187f987-8d55-49ae-bfbb-8b59c0093ef8
Probably related to c1e7aee |
|
@bjornharrtell @philsc Can you take a look, its in the ts test code |
Not sure how to find any meaningful output to look at. But I guess #7933 is a suspect here... but why is this build not at CI? |
I can take a look tonight. Sorry about the breakage. |
@meteorcloudy , @sgowroji, can either of you clarify something for me? $ bazel test <snip> --sandbox_tmpfs_path=/tmp <snip> --test_env=USE_BAZEL_VERSION <snip> The environment variable setup has this: USE_BAZEL_VERSION=(/tmp/tmpldhsynjt/bazel) So it looks like the HEAD CI is both pointing tests at bazel in /tmp, but at the same time mounting a fresh /tmp in the test. So the A few solutions I see:
Is it possible that I'm misunderstanding something? |
Actually, EDIT: Looks like the test is indeed finding bazelisk somehow. I can reproduce with something like this: diff --git a/tests/ts/bazel_repository_test.sh b/tests/ts/bazel_repository_test.sh
index 50308093..17a04590 100755
--- a/tests/ts/bazel_repository_test.sh
+++ b/tests/ts/bazel_repository_test.sh
@@ -26,4 +26,4 @@ export PATH="$(dirname "${BAZEL_BIN}"):${PATH}"
cd tests/ts/bazel_repository_test_dir/
-bazel test //...
+bazelisk test //... and |
I think #7952 should fix the issue. Really sorry about breaking this. Still curious about the motivation behind the combination of options I mentioned here: #7937 (comment) |
@philsc Thanks for debugging this!
I think this is indeed a problem on Bazel CI. bazelbuild/continuous-integration#846 was introduced to address a problem on Windows which doesn't have sandbox support.
Sounds like this could be a solution! |
https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/2997#0187e485-ec05-438c-bccf-6055e8225ebf
Platform :Linux (18.04, 20.04)
Logs:
Steps :
CC @meteorcloudy
The text was updated successfully, but these errors were encountered: