GithubHelp home page GithubHelp logo

Comments (13)

dougthor42 avatar dougthor42 commented on July 20, 2024

Two other things I forgot to mention:

  • this also happens in rc3
  • No additional info in the Google Bazel Users chat yet.

from bazel.

fmeum avatar fmeum commented on July 20, 2024

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.

meteorcloudy avatar meteorcloudy commented on July 20, 2024

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.

meisterT avatar meisterT commented on July 20, 2024

I was able to repro and bisect, culprit is d98b02e

from bazel.

meisterT avatar meisterT commented on July 20, 2024

cc @oquenchil

from bazel.

meisterT avatar meisterT commented on July 20, 2024

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.

fmeum avatar fmeum commented on July 20, 2024

@meisterT Could you share the failure with --sandbox_debug?

from bazel.

fmeum avatar fmeum commented on July 20, 2024

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.

fmeum avatar fmeum commented on July 20, 2024

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.

fmeum avatar fmeum commented on July 20, 2024

I sent jupyter/testpath#28.

from bazel.

meteorcloudy avatar meteorcloudy commented on July 20, 2024

@fmeum Thanks for investigating!

from bazel.

dougthor42 avatar dougthor42 commented on July 20, 2024

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.

meteorcloudy avatar meteorcloudy commented on July 20, 2024

@dougthor42 No worry! I'm updating the bug template to make it more prominent! Thanks for the report again!

from bazel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.