Closed mbland closed 1 week ago
Hmm, looks like the test_reproducibility
job broke due to a failure to download Bazel. In other words, the breakage is unrelated to this change; all the other test jobs passed.
2024/11/08 23:06:26 Downloading https://releases.bazel.build/6.5.0/release/bazel-6.5.0-linux-x86_64...
2024/11/08 23:06:26 could not download Bazel: failed to download bazel: failed to download bazel:
could not copy from https://releases.bazel.build/6.5.0/release/bazel-6.5.0-linux-x86_64 to
/var/lib/buildkite-agent/.cache/bazelisk/downloads/_tmp/download1892374034:
stream error: stream ID 1; INTERNAL_ERROR; received from peer
Description
Makes the Bazel configuration for every test repository consistent with the main repository. Supersedes #1638.
Removes
test_version/.bazel{rc,version}
, sincetest_version.sh
was always copying the top level.bazel{rc,version}
files into the test repo to begin with. Updatesscripts/sync-bazelversion.sh
such that it won't replacetest_version/.bazelversion
on future runs.Also fixes a bug in
test/shell/test_scala_proto_library.sh
whereby it never successfully read the top level.bazelversion
file.Motivation
With this change,
scripts/toggle-workspace.sh
from #1638 isn't really necessary, since this allows changes from the top level.bazelrc
to propagate to all nested repos. I no longer need that script to easily and safely switch betweenWORKSPACE
and Bzlmod while working on changes for #1482.I only realized this while working on my new branch to use the latest abseil-cpp 20240722.0 and protobuf v28.3, which is based on my branch to update to ScalaPB 0.11.17, gRPC 1.68.1, and Guava 33.3.1-jre, which is itself based on #1642.
As an aside, the upshot of that protobuf upgrade work so far:
Later versions of Protobuf appear to require ScalaPB 1.0.0-alpha.1, which causes a single test to hang,
test_scala_version 2.11.12
fromtest_version.sh
. Appears to be anotherProtoScalaPBRule
aspect worker hanging, this time on//src/main/scala/scalarules/test/twitter_scrooge:java_jar_not_on_classpath
.The latest abseil-cpp and protobuf will build under Bazel 6.5.0 with the compiler flags from https://github.com/bazelbuild/bazel/pull/20785, but those cause protobuf to rebuild even more frequently. These flags aren't required under Bazel 7.4.0, so the problem isn't as pronounced.