Skip to content
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

Upgrade bazel to 4.2.1 (LTS), upgrade bazel toolchain to 4.1.0 #27410

Merged
merged 7 commits into from
Sep 23, 2021

Conversation

jtattermusch
Copy link
Contributor

@jtattermusch jtattermusch commented Sep 20, 2021

Similar to the previously-attempted #25001, but this time upgrading to bazel LTS, which is highly desirable.

Also I think I managed to solve the UBSAN issue that was preventing us from merging #25001 (looks like UBSAN build works even without the --crosstool_top= override).

Merging this should also unblock #25318

@jtattermusch jtattermusch changed the title Upgrade bazel to 4.2.1 (LTS) Upgrade bazel to 4.2.1 (LTS), upgrade bazel toolchain to 4.1.0 Sep 22, 2021
@jtattermusch jtattermusch added release notes: yes Indicates if PR needs to be in release notes lang/c++ labels Sep 22, 2021
@@ -87,8 +87,3 @@ build:ubsan --copt=-gmlt
# use double the default value for "moderate" and "long" timeout as sanitizer
# tests tend to be slower
build:ubsan --test_timeout=60,600,1800,3600
# override the config-agnostic crosstool_top
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that ubsan RBE tests are now basically disabled (see b/200667821), but based on my understanding, making this change doesn't aggravate the current situation. Re-enabling ubsan can be handled separately, and this change making here won't make that harder to fix.

@jtattermusch
Copy link
Contributor Author

@jtattermusch
Copy link
Contributor Author

Known failures: TSAN failure seems related to b/198790188

@jtattermusch
Copy link
Contributor Author

I still need to look into the ios example test: https://source.cloud.google.com/results/invocations/d157b9b2-05a9-4ba8-aa82-b41e05048878/targets/github%2Fgrpc%2Frun_tests%2Fobjc_macos_opt_native%2Fios-buildtest-example-sample/tests
(the problem is potentially caused by this PR).

Looks like that got solved by upgrading rules_apple and apple_support.

@jtattermusch jtattermusch merged commit 0042c2b into grpc:master Sep 23, 2021
@copybara-service copybara-service bot added the imported Specifies if the PR has been imported to the internal repository label Sep 23, 2021
lidizheng pushed a commit to lidizheng/grpc that referenced this pull request Sep 23, 2021
…27410)

* update bazel to 4.2.1

* add bazel 4.2.1 to update_mirror.sh

* regenerate dockerfiles

* upgrade bazel toolchains to 4.1.0

* use create_rbe_exec_properties_dict instead of the deprecated create_exec_properties_dict

* RBE ubsan doesnt require the crosstool_top hack anymore

* update rules_apple and build_bazel_apple_support
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/1.0.1.tar.gz",
"https://github.com/bazelbuild/bazel-toolchains/releases/download/1.0.1/bazel-toolchains-1.0.1.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/4.1.0.tar.gz",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jtattermusch I get WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/4.1.0.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found when using bazel to build things. Is this expected?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sifmelcara added a commit to sifmelcara/grpc that referenced this pull request Sep 30, 2021
yashykt pushed a commit that referenced this pull request Jun 14, 2022
See bazelbuild/bazel-toolchains#891 (comment)
and #27410 (comment)

Seems like the mirror for bazel toolchains changed the URL and they
mirror downloads but not archives. This should fix any issues with
missing mirror and workaround bazelbuild/bazel-toolchains#972

Signed-off-by: Vihang Mehta <vihang@pixielabs.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imported Specifies if the PR has been imported to the internal repository lang/c++ release notes: yes Indicates if PR needs to be in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants