Comments (13)
Two other things I forgot to mention:
- this also happens in rc3
- No additional info in the Google Bazel Users chat yet.
from bazel.
I can't reproduce this on regular Ubuntu. Could you post the output of running with --announce_rc
?
You could also bisect the failure by running Bazelisk with --bisect=7.2.0rc1..7.2.0rc2
.
from bazel.
I also couldn't reproduce on macOS
pcloudy@pcloudy-macbookpro2:~/workspace/tmp/gh-22664
$ bazel --version
2024/06/07 10:33:52 Downloading https://releases.bazel.build/7.2.0/rc2/bazel-7.2.0rc2-darwin-arm64...
Downloading: 63 MB out of 63 MB (100%)
bazel 7.2.0rc2
pcloudy@pcloudy-macbookpro2:~/workspace/tmp/gh-22664
$ bazel test //...
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Invocation ID: f6e06514-a6d7-4e1e-8368-716ee44fd328
INFO: Options provided by the client:
Inherited 'common' options: --isatty=1 --terminal_columns=210
INFO: Reading rc options for 'test' from /Users/pcloudy/workspace/tmp/gh-22664/.bazelrc:
Inherited 'common' options: --enable_bzlmod --nolegacy_external_runfiles
INFO: Reading rc options for 'test' from /Users/pcloudy/.bazelrc:
Inherited 'build' options: --verbose_failures --announce_rc --disk_cache=/tmp/bazel_disk_cache --repository_cache=/tmp/bazel_repository_cache --experimental_stats_summary
INFO: Reading rc options for 'test' from /Users/pcloudy/workspace/tmp/gh-22664/.bazelrc:
'test' options: --test_output=errors
INFO: Reading rc options for 'test' from /Users/pcloudy/.bazelrc:
'test' options: -k --test_output=errors
INFO: Analyzed 2 targets (98 packages loaded, 3159 targets configured).
INFO: Found 1 target and 1 test target...
Target //src/one/two/three:test_foo up-to-date:
bazel-bin/src/one/two/three/test_foo
INFO: 6 processes: 4 internal, 2 darwin-sandbox.
INFO: Total action wall time 1.10s
INFO: Execution critical path 1.55s (setup 0.00s, action wall time 0.99s)
INFO: Elapsed time 34.98s (preparation 7.84s, execution 27.14s)
INFO: Build completed successfully, 6 total actions
//src/one/two/three:test_foo PASSED in 1.0s
Executed 1 out of 1 test: 1 test passes.
There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see which ones these are.
from bazel.
I was able to repro and bisect, culprit is d98b02e
from bazel.
cc @oquenchil
from bazel.
I can't reproduce this on regular Ubuntu. Could you post the output of running with
--announce_rc
?
$ bazelisk test --announce_rc //...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=1 --terminal_columns=282
INFO: Reading rc options for 'test' from /usr/local/google/home/twerth/t/.bazelrc:
Inherited 'common' options: --enable_bzlmod --nolegacy_external_runfiles
INFO: Reading rc options for 'test' from /usr/local/google/home/twerth/t/.bazelrc:
'test' options: --test_output=errors
INFO: Analyzed 2 targets (97 packages loaded, 3244 targets configured).
FAIL: //src/one/two/three:test_foo (see /usr/local/google/home/twerth/.cache/bazel/_bazel_twerth/8160046761d3783ee70008ffde0e375e/execroot/_main/bazel-out/k8-fastbuild/testlogs/src/one/two/three/test_foo/test.log)
...
from bazel.
@meisterT Could you share the failure with --sandbox_debug
?
from bazel.
I can repro if I make the path of the containing package longer. Are we having long path issues on Unix now? Will investigate.
from bazel.
testpath
emits the path to the Python interpreter into a shebang, which is subject to length limitations set by the kernel at build time. Sandboxed paths happened to be shorter in Bazel 7.0.0 through 7.2.0rc1 due to the bind mounting scheme used by --incompatible_sandbox_hermetic_tmp
, but I can reproduce the same failure if I just make the path a bit longer.
I will send a fix to testpath
as other Bazel users may run into this, but it's not a bug in Bazel.
from bazel.
I sent jupyter/testpath#28.
from bazel.
@fmeum Thanks for investigating!
from bazel.
Wow you people are good! Thanks so much! 💚
Also, TIL about bazelisk --bisect
. Handy! (though now I see that it's part of the Bug instructions... my bad! 😬 )
from bazel.
@dougthor42 No worry! I'm updating the bug template to make it more prominent! Thanks for the report again!
from bazel.
Related Issues (20)
- [7.3.0] Format "Repository names and strict deps" bullet list HOT 2
- bazel config invalidated from no changes module lock file HOT 1
- vendor mode creates paths that are too long for windows HOT 1
- Release 7.3.0 - August 2024
- "unlinkat ([path]) (Directory not empty)" errors with experimental_worker_for_repo_fetching HOT 4
- Cherry-pick fix to make Protobuf work with sibling repository layout into Bazel 7.3 HOT 2
- Cherry-pick fix to make Protobuf work with sibling repository layout into Bazel 7.3 HOT 1
- Ensure only a minimal set of external dependencies vendored for building a hello-world binary HOT 26
- .blazerc mentioned (wrong filename) on import error at bazel startup
- [7.3.0] Remove objc_library transition HOT 1
- local_path_override doesn't get invalidated for MODULE.bazel file creation
- [7.2.0] Unrecoverable error while evaluating node 'SINGLE_EXTENSION_EVAL:ModuleExtensionId
- [7.3.0] Fix crash on `IOException` in SingleExtensionEvalFunction HOT 1
- Bazel crashes using external aspect + `--noenable_workspace` HOT 5
- Bazel@HEAD cannot seem to keep a server process alive HOT 10
- Release 7.2.1 - June 2024 HOT 1
- [7.2.1] Fix crash on `IOException` in SingleExtensionEvalFunction HOT 1
- [7.2.1] Treat missing repo boundary files as transient errors HOT 1
- [7.3.0] Treat missing repo boundary files as transient errors HOT 1
- [7.3.0] Fix an NPE with the compact execution log and coverage HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bazel.