-
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
Bazel CI: tests tagged as "block-network" fail on macOS #10305
Comments
@jmmv Possibly related to your recent improvements in this area? |
Maybe... but why wouldn't these have been caught by presubmit? The change to fix network sandboxing was submitted cleanly. |
Because the "outer Bazel" that actually runs the tests marked as "block-network" and applies the network blocking logic is the latest released Bazel and not the one that is built from the change you're testing. 😀 |
What is failing now is apparently "running Bazel inside a sandbox that blocks network access". I don't think that our bazel_sandboxing_test tests that this works. |
I see... so I'm assuming it's legitimate for these tests to be marked "block network", but the network sandboxing is not working properly now, right? Like it may not allow local networking, or whatever Bazel needs. Let me try something quickly. |
Confirmed that running Bazel inside a new Bazel with my "fixes" doesn't work. Trying to figure out why. |
The crash happens here:
|
wat. And this brings us to:
... the plot thickens. |
I see references to |
Alright, sending out a fix for review with something a bit less loose than what I mentioned earlier. |
Thanks for investigating. For the record, I bisected this issue without having seen your replies and can confirm the culprit is 8e7c349. |
Hi folks, I seem to have stumbled upon this issue with Bazel 5.0 and macOS Monterey 12.2.1 Only on Mac, unit tests that try to listen on localhost are failing with "block-network". They pass fine on CI (Linux). |
@ngeor Could you please file a new issue and add log output etc.? This makes it easier for us to prioritize and handle it than a comment on an old and already closed issue. Feel free to reference this one as a prior occurrence, of course! Thank you 😊 |
Description of the problem / feature request:
Bazel's own tests that are tagged as "block-network" now fail on macOS when testing with Bazel built from HEAD, but work when testing with Bazel 1.2.1.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Edit //src/test/shell/bazel/workspace_resolved_test.sh, and remove every test method. Add a test method that just runs
bazel info
, then test. Witness this error in the log:Update: culprit is 8e7c349
What operating system are you running Bazel on?
macOS Catalina (10.15.1)
What's the output of
bazel info release
?Using Bazel built at 5be24a8
The text was updated successfully, but these errors were encountered: