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)
- 'unknown repo' error when using bzlmod, multiple modules and 'platforms' transitions HOT 4
- [7.4.0] Add support for in-memory outputs to output reuse HOT 2
- Bazel parse_headers feature is incompatible with C copts HOT 2
- Host release candidates in the BCR to address release candence mismatch HOT 2
- "I/O exception during sandboxed execution" with tree artifacts and `--remote_download_toplevel`
- [FeatureRequest] Support ZSTD encoding for HTTP remote cache server
- ArrayIndexOutOfBoundsException raised with --target_pattern_file
- [remote][windows]tries to create temp folder in C:\Windows HOT 4
- [7.4.0] Update `remote_execution.proto` HOT 1
- Performance issues on macos-14-arm with bazel prereleases HOT 5
- --credential_helper: overly verbose error messages when a credential is missing HOT 2
- Bazel coverage `collect_coverage.sh` Segmentation fault
- Add compilation mode specific config to allow `.bazelrc` controls conditional on it HOT 3
- [7.4.0] Include `sun.jnu.encoding` in `bazel info character-encoding` output
- if `zip` is missing, test-setup.sh summarily deletes undeclared outputs.
- 6.5.0 documentation is starting to wither away HOT 2
- How to authenticate with repository_ctx.download? How does auth work? HOT 2
- [bazel.build] Problem with /tutorials/ccp-toolchain-config HOT 1
- Bazel crashes with NPE HOT 4
- [7.4.0] Bazel crashes with NPE
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.