Skip to content

Upgrade bazel toolchain#23087

Closed
jtattermusch wants to merge 6 commits intogrpc:masterfrom
jtattermusch:upgrade_bazel_toolchain
Closed

Upgrade bazel toolchain#23087
jtattermusch wants to merge 6 commits intogrpc:masterfrom
jtattermusch:upgrade_bazel_toolchain

Conversation

@jtattermusch
Copy link
Copy Markdown
Contributor

@jtattermusch jtattermusch commented May 29, 2020

Try upgrading bazel toolchain and perhaps also the current bazel version.

@stanley-cheung
Copy link
Copy Markdown
Contributor

(doesn't upgrade the bazel version we use - it's still 1.0.0 - only uses the latest toolchain).

Just curious, what is the difference?

@jtattermusch
Copy link
Copy Markdown
Contributor Author

(doesn't upgrade the bazel version we use - it's still 1.0.0 - only uses the latest toolchain).

Just curious, what is the difference?

If we upgraded bazel version, users might need to upgrade the bazel version too to be able to build.
Updating the toolchain is transparent to the users.

The newer toolchain allows us to use some new definitions - e.g. rbe pool labels https://github.com/grpc/grpc/pull/23087/files#diff-773cbb9cf4d193d10a1d82bed23b4d72L40

@stanley-cheung
Copy link
Copy Markdown
Contributor

Also just curious - might it be possible that an older version of the bazel binary (especially an older major version) won't work with the newer toolchain, in theory?

@jtattermusch
Copy link
Copy Markdown
Contributor Author

Also just curious - might it be possible that an older version of the bazel binary (especially an older major version) won't work with the newer toolchain, in theory?

Yes, I'm checking that with the RBE team. So far I got bad news and the new toolchain officially only supports bazel 3.x+. Not sure what that means in terms of bazel versions we can support. (curently we support bazel 1.0.0 and newer, even though we don't test for that explicitly).

@jtattermusch jtattermusch force-pushed the upgrade_bazel_toolchain branch from d054b66 to 3e8898e Compare August 25, 2020 15:51
@jtattermusch jtattermusch added release notes: no Indicates if PR should not be in release notes lang/c++ labels Aug 25, 2020
@jtattermusch jtattermusch force-pushed the upgrade_bazel_toolchain branch from 3e8898e to 21dd9ed Compare August 25, 2020 15:59
@jtattermusch
Copy link
Copy Markdown
Contributor Author

jtattermusch commented Aug 28, 2020

The asan/msan/ubsan errors
https://source.cloud.google.com/results/invocations/52280610-a81c-48cc-bbe0-0a54db5d5cc3/targets/%2F%2Ftest%2Fcore%2Fbad_connection:close_fd_test/log

ERROR: /tmpfs/tmp/bazel/external/io_opencensus_cpp/opencensus/trace/BUILD:25:1: Couldn't build file external/io_opencensus_cpp/opencensus/trace/_objs/trace/local_span_store.pic.o: undeclared inclusion(s) in rule '@io_opencensus_cpp//opencensus/trace:trace':
this rule is missing dependency declarations for the following files included by 'external/io_opencensus_cpp/opencensus/trace/internal/local_span_store.cc':
  '/usr/local/lib/clang/11.0.0/share/asan_blacklist.txt'

seem to be the same as
google/oss-fuzz#3093

The rootcause seems to be bazelbuild/bazel#10510

@jtattermusch jtattermusch force-pushed the upgrade_bazel_toolchain branch from 21dd9ed to 70256c1 Compare August 28, 2020 14:09
@jtattermusch
Copy link
Copy Markdown
Contributor Author

CC @gnossen it seems that both bazel toolchain 2.2.0 and 3.4.2 has its issues (see comment thread for the 2.2.0 problem and the latest test results for 3.4.2 issues)
We might need to upgrade everything to the latest bazel and toolchain (after fixing our builds), but we will also need bazel distribtests to ensure (at least some) compatibility with bazel 1.x and 2.x - suddenly the bazel distribtests seem more of a priority.

@jtattermusch jtattermusch changed the title Upgrade bazel toolchain to 3.2.0 Upgrade bazel toolchain Sep 1, 2020
@stale
Copy link
Copy Markdown

stale bot commented Dec 8, 2020

This issue/PR has been automatically marked as stale because it has not had any update (including commits, comments, labels, milestones, etc) for 30 days. It will be closed automatically if no further update occurs in 7 day. Thank you for your contributions!

@jtattermusch
Copy link
Copy Markdown
Contributor Author

Superseded by #25001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

disposition/never stale lang/c++ release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants