-
Notifications
You must be signed in to change notification settings - Fork 1.7k
keep using bazel 5 #6114
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
keep using bazel 5 #6114
Conversation
WORKSPACE
Outdated
| # Keep this version in sync with: | ||
| # * The BAZEL environment variable defined in .github/workflows/ci.yml, which is used for CI and nightly builds. | ||
| versions.check(minimum_bazel_version = "4.2.2") | ||
| versions.check(minimum_bazel_version = "4.2.2", maximum_bazel_version="4.5.0") |
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.
Did you mean this to be 5.4.0? AFAIK bazel 5 was fine?
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.
Done
oops, good catch! thx!
WORKSPACE
Outdated
| # Keep this version in sync with: | ||
| # * The BAZEL environment variable defined in .github/workflows/ci.yml, which is used for CI and nightly builds. | ||
| versions.check(minimum_bazel_version = "4.2.2") | ||
| versions.check(minimum_bazel_version = "4.2.2", maximum_bazel_version="5.4.0") |
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.
Let's add a TODO with a tracking GH issue for Bazel 6+ support?
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.
Done
WORKSPACE
Outdated
|
|
||
| load("@bazel_skylib//lib:versions.bzl", "versions") | ||
|
|
||
| # Keep this version in sync with: |
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.
This comment is a bit ambiguous now that there's two versions listed. Let's maybe structure it like this:
versions.check(
# Keep this version in sync ...
minimum_bazel_version = "4.2.2",
# TODO(<issue>)...
maximum_bazel_version = "5.4.0",
)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.
Done
I totally overlooked the comments. Thanks for catching this!
* Motivation for features / changes Bazel 6.0.0 breaks the current TensorBoard build. ``` $ bazel run tensorboard ERROR: /usr/local/google/home/bdubois/.cache/bazel/_bazel_bdubois/a027bcadf80e351d5b786d7247b18b84/external/bazel_tools/platforms/BUILD:29:6: in alias rule @bazel_tools//platforms:arm: Constraints from @bazel_tools//platforms have been removed. Please use constraints from @platforms repository embedded in Bazel, or preferably declare dependency on https://github.com/bazelbuild/platforms. See bazelbuild/bazel#8622 for details. ERROR: /usr/local/google/home/bdubois/.cache/bazel/_bazel_bdubois/a027bcadf80e351d5b786d7247b18b84/external/bazel_tools/platforms/BUILD:29:6: Analysis of target '@bazel_tools//platforms:arm' failed ERROR: /usr/local/google/home/bdubois/git/tensorboard2/tensorboard/BUILD:20:10: While resolving toolchains for target //tensorboard:tensorboard: invalid registered toolchain '@go_sdk//:go_android_arm': ERROR: Analysis of target '//tensorboard:tensorboard' failed; build aborted: INFO: Elapsed time: 0.412s INFO: 0 processes. FAILED: Build did NOT complete successfully (0 packages loaded, 3 targets conf\ igured) ERROR: Build failed. Not running target ``` * Technical description of changes This PR follows the suggestion of this [comment](bazelbuild/bazel#8622 (comment)) to keep using Bazel 5 for now. * Detailed steps to verify changes work correctly (as executed by you) `bazel run tensorboard` works as before.
* Motivation for features / changes Bazel 6.0.0 breaks the current TensorBoard build. ``` $ bazel run tensorboard ERROR: /usr/local/google/home/bdubois/.cache/bazel/_bazel_bdubois/a027bcadf80e351d5b786d7247b18b84/external/bazel_tools/platforms/BUILD:29:6: in alias rule @bazel_tools//platforms:arm: Constraints from @bazel_tools//platforms have been removed. Please use constraints from @platforms repository embedded in Bazel, or preferably declare dependency on https://github.com/bazelbuild/platforms. See bazelbuild/bazel#8622 for details. ERROR: /usr/local/google/home/bdubois/.cache/bazel/_bazel_bdubois/a027bcadf80e351d5b786d7247b18b84/external/bazel_tools/platforms/BUILD:29:6: Analysis of target '@bazel_tools//platforms:arm' failed ERROR: /usr/local/google/home/bdubois/git/tensorboard2/tensorboard/BUILD:20:10: While resolving toolchains for target //tensorboard:tensorboard: invalid registered toolchain '@go_sdk//:go_android_arm': ERROR: Analysis of target '//tensorboard:tensorboard' failed; build aborted: INFO: Elapsed time: 0.412s INFO: 0 processes. FAILED: Build did NOT complete successfully (0 packages loaded, 3 targets conf\ igured) ERROR: Build failed. Not running target ``` * Technical description of changes This PR follows the suggestion of this [comment](bazelbuild/bazel#8622 (comment)) to keep using Bazel 5 for now. * Detailed steps to verify changes work correctly (as executed by you) `bazel run tensorboard` works as before.
Bazel 6.0.0 breaks the current TensorBoard build.
Technical description of changes
This PR follows the suggestion of this comment to keep using Bazel 5 for now.
Detailed steps to verify changes work correctly (as executed by you)
bazel run tensorboardworks as before.