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 #40525
Bazel 0.13 #40525
Conversation
Thank you. May I suggest you and the authors of the other 2 related PRs, @uri-canva and @rdnetto4 discuss this and try to reach consensus on how to move forward. |
I will close my PR and create a new PR for darwin support after Bazel has been upgraded to 0.13.0. As @mboes notes my PR has bigger changes than strictly required for the upgrade because of that. |
@GrahamcOfBorg build bazel |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: bazel Partial log (click to expand)
|
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-linux (full log) Attempted: bazel Partial log (click to expand)
|
@mboes the /usr/bin/env replacement is still necessary. The build is currently failing with:
Note that is might not be the case on your local host if build sandboxing is turned off. |
@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)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: bazel Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: bazel Partial log (click to expand)
|
things failing with nox-review:
they all seem to be tensorflow-related |
even on master, the CI seems to be installing bazel 0.11.0: https://github.com/tensorflow/tensorflow/blob/0bde713c06895b9ce2de61d6aea1bff5415ddcbc/tensorflow/tools/ci_build/install/install_bazel.sh#L18 |
Yes, this breaks the build of tensorflow and would require us to bump it to 1.8 according to discussion in #40205 . I'd rather wait for someone familiar with tensorflow to test if 1.8 really works before we merge this. |
it would also be acceptable to keep version 0.12 around until tensorflow gets upgraded |
So I tried giving building tensorflow 1.8 a go. But I either ran out of memory or hit what looks like a internal race condition within Bazel. The error goes something like this:
Only related upstream issue I could find is bazelbuild/bazel#2423. Upshot: let's try keeping 0.12 for Tensorflow then, until we can get to the bottom of this. |
Or more likely, this issue: bazelbuild/bazel#5177. |
@mboes thanks for investigating. Let's keep the old version as |
@xeji so I retried the build on another computer. It works fine. PR to upgrade Tensorflow submitted as #40689. I tested that Bazel 0.13 is able to build that version of Tensorflow on that other computer. While I did run into a known race condition on my laptop, provided @GrahamcOfBorg is happy then I think we should still upgrade, because I could not reproduce this race condition and for all we know the race condition was already there in Bazel 0.12. |
cc @abbradar |
I have rebased the commits that were on this branch originally to current |
@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)
|
Darwin build was broken before this PR despite #41911, which (according to its title) should have fixed it. cc @uri-canva |
It seems Bazel cannot be built on CI without Xcode, and I'm not sure we can install Xcode from nix because of the license. A shim can be created, but that's a lot of work. In the meantime I'll double check it's working on darwin on master, thanks for the heads up @xeji. |
Motivation for this change
Upgrade to latest upstream.
There is already #40424 and #40205 that propose much the same thing. But the latter is currently just a change to the version number and sha256 sum, which doesn't build on NixOS. And the former propose far more changes in this PR that are certainly worth considering, but not on the critical path to upgrading to Bazel 0.13.
As per #39585, this change furthermore contains a change in package maintainer.
As noted in #40205, with this PR Tensorflow doesn't build due to Bazel 0.13 removing features that were previously deprecated. This needs to be addressed still.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)