Skip to content

Conversation

@qihach64
Copy link
Contributor

  • 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 https://github.com/bazelbuild/bazel/issues/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 to keep using Bazel 5 for now.

  • Detailed steps to verify changes work correctly (as executed by you)
    bazel run tensorboard works as before.

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")
Copy link
Contributor

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?

Copy link
Contributor Author

@qihach64 qihach64 Dec 21, 2022

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")
Copy link
Contributor

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?

Copy link
Contributor Author

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:
Copy link
Contributor

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",
)

Copy link
Contributor Author

@qihach64 qihach64 Dec 21, 2022

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!

@qihach64 qihach64 merged commit 66c07f8 into tensorflow:master Dec 22, 2022
yatbear pushed a commit to yatbear/tensorboard that referenced this pull request Mar 27, 2023
* 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.
dna2github pushed a commit to dna2fork/tensorboard that referenced this pull request May 1, 2023
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants