-
-
Notifications
You must be signed in to change notification settings - Fork 14.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: 0.13.0 -> 0.15.0 #42735
bazel: 0.13.0 -> 0.15.0 #42735
Conversation
Upgrade to latest Bazel.
What's the policy on upgrading of things in nixpkgs/pkgs/development/tools/build-managers/bazel/buildtools/? Is it preferred to keep it current with the bazel version as a matter of principle, or is it touched only if truly needed? |
Cannot compile envoy with this 0.15
|
That issue is probaly not directly related to this PR. |
@xeji It is completely unrelated to PR. It is because envoy brings its own |
@GrahamcOfBorg build bazel |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: bazel Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: bazel Partial log (click to expand)
|
Failure on x86_64-linux (full log) Attempted: bazel Partial log (click to expand)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build fails, please fix
@mboes Have you been able to debug this issue? It's blocking me from moving to NixOS as we rely on Bazel 0.14 at work 😞 |
x86_64-linux fail seems environmental. not sure about the other two. I've been using the 0.15 since the PR was submitted and it works fine for me (NixOS x86_64). There is one bug in the NixOS package i found, though the bug was present in previous nix versions as well. The --spawn_strategy=linux-sandbox is broken. Bazel always check if the system supports this strategy, and the test is implemented as running |
If the build succeeds that xmeans you don’t have the nix sandbox enabled and bazel was able to access the network from inside the build and download the missing package. Hydra/ofborg have sandboxing enabled to keep builds deterministic. |
@Profpatsch Thanks for the explanation. I knew about the sandbox (from the default github issue template) but I did not realize it blocks network, too, I thought it is only to restrict access to random files in the filesystem. |
Okay, this small patch makes bazel fail before it starts the build in case there’s still dependencies missing.
|
I think I have a pretty good grasp on the bootstrap now, and the build should be fixed by tomorrow. In the meantime, have some debugging notes:
|
cross ref: bazelbuild/bazel#4860 (comment) There should probably be an issue upstream about adding @GrahamcOfBorg build bazel |
Failure on x86_64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
Uh, merge conflict because the file got 300% larger in the meantime. #42832 I think that should be reverted and reworked. |
@GrahamcOfBorg build bazel |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: bazel Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: bazel Partial log (click to expand)
|
Will smuggle this in here, since ofborg doesn’t work on issues (yet): @GrahamcOfBorg build bazel_0_4 |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: bazel_0_4 Partial log (click to expand)
|
Oh, and |
Failure on x86_64-linux (full log) Attempted: bazel_0_4 Partial log (click to expand)
|
I would wait on merging this anyway until Bazel 0.15.1 is released. Bazel 0.15.0 is broken on Mac. See bazelbuild/bazel#5468 for context. |
@kalbasit Nice catch. It looks like the patch version might be released today or tomorrow. I’d merge this now and do the transition to |
@mboes should we merge? |
If merging this doesn't introduce any regressions for anyone, then yes. But if macOS used to work but now can't because of an upstream bug then let's wait for 0.15.1. |
@Profpatsch FYI I found a way to be |
@GrahamcOfBorg build bazel |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: bazel Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: bazel Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: bazel Partial log (click to expand)
|
Bazel 0.15.1 is now out, can we get this PR updated and merged? |
@kalbasit I did push the update to the branch a few minutes ago, but it didn’t appear here. I think Github was unavailable a few minutes ago, maybe the servers are still catching up. |
@GrahamcOfBorg build bazel |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: bazel Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: bazel Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: bazel Partial log (click to expand)
|
Okay, I think we are ready to merge! |
cc @uri-canva Now we can try to fix the Darwin build, it should in principle work with |
We no longer need to pull bazel from cachix, now that NixOS/nixpkgs#42735 has been merged and has hit the cache.nixos.org cache.
We no longer need to pull bazel from cachix, now that NixOS/nixpkgs#42735 has been merged and has hit the cache.nixos.org cache.
We no longer need to pull bazel from cachix, now that NixOS/nixpkgs#42735 has been merged and has hit the cache.nixos.org cache.
Motivation for this change
Upgrade to latest Bazel.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)