Skip to content

Conversation

@nfelt
Copy link
Contributor

@nfelt nfelt commented Feb 8, 2023

We inadvertently resolved #6115 via #6147, so we no longer need to pin to a maximum Bazel version of 5.4.0.

That said, I think it's still a good idea to retain a maximum compatible version, since Bazel major version upgrades have reliably resulted in our build breaking in the past. That way, when Bazel 7.0.0 arrives, we'll get a clean error message, and if we then try to remove the pin, we'll either be pleasantly surprised that it's fine, or we'll be expecting a build failure and know the cause (rather than encountering a build failure during a routine build, and then wasting time debugging before realizing Bazel was silently upgraded).

Putting this in place now also ensures this protection extends to older commits, rather than doing it reactively, which then relies on people syncing past that commit before trying to build.

Tested via USE_BAZEL_VERSION=6.0.0 bazel run tensorboard (w/ bazel set to bazelisk) and confirmed it builds successfully and runs apparently normally.

@nfelt nfelt merged commit 22becc0 into tensorflow:master Feb 8, 2023
@nfelt nfelt deleted the bazel6 branch February 8, 2023 18:06
yatbear pushed a commit to yatbear/tensorboard that referenced this pull request Mar 27, 2023
…flow#6183)

We inadvertently resolved tensorflow#6115 via tensorflow#6147, so we no longer need to pin
to a maximum Bazel version of 5.4.0.

That said, I think it's still a good idea to retain a maximum compatible
version, since Bazel major version upgrades have reliably resulted in
our build breaking in the past. That way, when Bazel 7.0.0 arrives,
we'll get a clean error message, and if we then try to remove the pin,
we'll either be pleasantly surprised that it's fine, or we'll be
expecting a build failure and know the cause (rather than encountering a
build failure during a routine build, and then wasting time debugging
before realizing Bazel was silently upgraded).

Putting this in place now also ensures this protection extends to older
commits, rather than doing it reactively, which then relies on people
syncing past that commit before trying to build.

Tested via `USE_BAZEL_VERSION=6.0.0 bazel run tensorboard` (w/ bazel set
to bazelisk) and confirmed it builds successfully and runs apparently
normally.
dna2github pushed a commit to dna2fork/tensorboard that referenced this pull request May 1, 2023
…flow#6183)

We inadvertently resolved tensorflow#6115 via tensorflow#6147, so we no longer need to pin
to a maximum Bazel version of 5.4.0.

That said, I think it's still a good idea to retain a maximum compatible
version, since Bazel major version upgrades have reliably resulted in
our build breaking in the past. That way, when Bazel 7.0.0 arrives,
we'll get a clean error message, and if we then try to remove the pin,
we'll either be pleasantly surprised that it's fine, or we'll be
expecting a build failure and know the cause (rather than encountering a
build failure during a routine build, and then wasting time debugging
before realizing Bazel was silently upgraded).

Putting this in place now also ensures this protection extends to older
commits, rather than doing it reactively, which then relies on people
syncing past that commit before trying to build.

Tested via `USE_BAZEL_VERSION=6.0.0 bazel run tensorboard` (w/ bazel set
to bazelisk) and confirmed it builds successfully and runs apparently
normally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support building TensorBoard with Bazel version >= 6.0.0

2 participants