Commit Graph

49 Commits

Author SHA1 Message Date
Jan Tattermusch 30b3d5061a
[test-infra] Switch RBE linux build to a new custom image rbe_ubuntu2004. (#32748)
- Add a new docker image "rbe_ubuntu2004" that is built in a way that's
analogous to how our other testing docker images are built (this gives
us control over what exactly is contained in the docker image and
ability to fine-tune our RBE configuration)
- Switch RBE on linux to the new image (which gives us ubuntu20.04-based
builds)

For some reason, RBE seems to have trouble pulling the docker image from
Google Artifact Registry (GAR), which is where our public testing images
normally live, so for now, I used a workaround and I upload a copy of
the rbe_ubuntu2004 docker image to GCR as well, and that makes RBE works
just fine (see comment in the `renerate_linux_rbe_configs.sh` script).

More followup items (config cleanup, getting local sanitizer builds
working etc.) are in go/grpc-rbe-tech-debt-2023
2023-05-01 11:47:27 -07:00
Jan Tattermusch a27b86fb95
Switch linux RBE to ubuntu18.04, get rid of rbe_autoconfig (#32559)
First step in the modernization of our RBE stack (see
go/rbe-tech-debt-notes).

- Get rid of the deprecated rbe_autoconfig and start using
[rbe_configs_gen](https://github.com/bazelbuild/bazel-toolchains#rbe_configs_gen---cli-tool-to-generate-configs)
+ check in the generated toolchain configs.
- Switch from marketplace.gcr.io/google/rbe-ubuntu16-04 to
marketplace.gcr.io/google/rbe-ubuntu18-04 (this image is still not owned
by us, but at least it's newer and demonstrates how a switch to a newer
docker image is done).
- provide script for generating the linux RBE toolchain configs.
- cleanup RBE configuration in the bazelrc files used for remote build
2023-03-10 09:34:53 +01:00
Jan Tattermusch 99a7f2995e
Update win RBE docker image to VS2019 (#30072)
* update win RBE docker image and toolchain

and switch win RBE builds to using it.

* delete legacy RBE windows toolchain config

* switching to VS2019 makes #28544 obsolete
2022-06-28 10:23:12 +02:00
Ara Nguyen f3fc1d4d75
use constraints value in @platforms instead of @bazel_tools//platforms https://github.com/bazelbuild/bazel/issues/8622 (#29842) 2022-06-07 12:40:54 -07:00
Jan Tattermusch 0042c2b86f
Upgrade bazel to 4.2.1 (LTS), upgrade bazel toolchain to 4.1.0 (#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
2021-09-23 16:20:25 +02:00
Jan Tattermusch 7533b4bfb4 RBE: rely on labels to select the right worker pool 2020-10-08 11:06:48 -04:00
Jan Tattermusch 2de0e4c7df small fixup 2020-05-13 14:39:59 +02:00
Jan Tattermusch cdb3d823fd migrate windows RBE to win2019 pool 2020-05-13 14:39:59 +02:00
Richard Belleville 959945705a Merge branch 'master' of https://github.com/grpc/grpc into blaze_modifications 2019-11-06 11:00:47 -08:00
Lidi Zheng c34bef4ca4 Format all Bazel files with buildifier 2019-11-05 14:03:52 -08:00
Eytan Kidron c97ce9057b Simplify the platform and constraints settings for remote execution
* Remove the toolchains //third_party/toolchains:local and //third_party/toolchains:local_large.
* Remove the platforms :rbe_ubuntu1604, :rbe_ubuntu1604_large, :local and :local_large.
* No longer inherit from @rbe_default//config:platform but instead use it directly. It is now the only non-windows platform.
* When creating @rbe_default//config:platform directly with rbe_autoconfig, set dockerAddCapabilities and dockerPrivileged directly in the exec_properties field. No need to set dockerNetwork to "off" and dockerSiblingContainers to false since these are the defaults.
* Also set gceMachineType = "n1-highmem-2" on the default platform. This value can be overridden by specific targets that want to use LARGE_MACHINE.
* Use create_exec_properties_dict where appropriate.
* Use custom_exec_properties to define LARGE_MACHINE.

I wasn't able to test thoroughly that this PR does not break any existing targets. I was not able to run anything on windows/mac and I also don't have access to gRPC's RBE setup.
2019-10-29 15:40:28 -04:00
Jan Tattermusch e5e3f70a1a Revert "Revert "Upgrade to bazel 1.0.0"" 2019-10-29 06:31:38 -04:00
Jan Tattermusch 17e40c1b5a removed unused rbe windows 0.23.2 toolchain 2019-10-22 12:29:26 +02:00
Nicolas Noble 04d7e0d11f
Revert "Upgrade to bazel 1.0.0" 2019-10-15 14:26:32 -07:00
Jan Tattermusch 755ae65c4d fixup 2019-10-14 11:35:32 -04:00
Jan Tattermusch 25f9a167b9 convert remote_execution_properties into exec_properties 2019-10-14 10:20:59 -04:00
Nicolas "Pixel" Noble 5495a7f7b1 Merge branch 'master' of https://github.com/grpc/grpc into moiz-upb 2019-07-16 19:07:24 +02:00
Nicolas "Pixel" Noble f43322dfcb Upgrading a few more places to bazel 0.26. 2019-07-16 18:54:36 +02:00
Nicolas Lopez a32b1eb765
Merge branch 'master' into master 2019-04-11 15:00:34 -04:00
Bill Feng 5158c3db27 naming update, documentation fix 2019-04-08 14:39:09 -07:00
Bill Feng df89d8e157 bazel RBE Windows build 2019-04-05 11:40:11 -07:00
Nicolas Lopez ad4926d5c6 avoid local runs from accessing remote platforms
This should fix Bazel Basic Tests for Python (Local) and other
local CI runs that are now failing.
I also have a plan to fix Bazel RBE Opt C/C++.
Bazel RBE UBSAN C/C++ might need to wait for gRPC to upgrade to
using 0.23.0
2019-03-28 09:56:50 -04:00
Nicolas Lopez d1640057f2 use rbe_autoconfig 2019-03-28 09:56:50 -04:00
Bill Feng ae7254aa79 adding ptrace to asan 2019-01-25 10:04:16 -08:00
Bill Feng f47e205776 removed ptrace 2019-01-14 15:07:07 -08:00
Bill Feng 67b8d4d33b update default settings for RBE 2019-01-14 10:25:43 -08:00
Bill Feng 5eed6d9d58 fixed version on toolchain 2019-01-10 10:23:43 -08:00
Bill Feng eda9742bbd updated bazel and RBE instance versions 2019-01-09 10:57:53 -08:00
Bill Feng 527ddd9982 cleanup 2018-11-28 11:10:05 -08:00
Bill Feng e00b58ba5a trying latest image 2018-11-27 15:25:30 -08:00
Bill Feng eff3b4ec30 trying standard-16 machine 2018-11-27 15:13:33 -08:00
Bill Feng 49528b9713 trying highmem machine 2018-11-27 14:13:28 -08:00
Bill Feng 70f9992d77 modified execution platform registration, added host platform 2018-11-26 10:10:53 -08:00
Bill Feng 3391245e73 removed all constraints from custom toolchain 2018-11-20 16:18:17 -08:00
Bill Feng 4a9feff1fd removed autoconfigured constraint 2018-11-20 16:15:42 -08:00
Bill Feng 8fad166c85 added autoconfigured 2018-11-19 16:11:57 -08:00
Bill Feng 6cbbefc6c6 temporarily removed some constraints 2018-11-15 16:47:51 -08:00
Bill Feng 09b0b0b712 Attempting Eric Burnett's fix 2018-11-15 14:50:05 -08:00
Bill Feng 3f70672827 reverted bazel-toolchains alias to its original form 2018-11-15 14:39:29 -08:00
Bill Feng 8575588fde added path prefix to bazel_toolchains repo 2018-11-15 14:32:35 -08:00
Bill Feng 17ce7e0d94 addressed Nick's comments 2018-11-15 14:26:30 -08:00
Bill Feng 4d84165bb0 added machine size to toolchain constraints 2018-11-15 13:56:30 -08:00
Bill Feng caf56447d5 added custom platform 2018-11-15 10:52:41 -08:00
Bill Feng d069bb2444 more destination fixes 2018-11-14 16:25:31 -08:00
Bill Feng 9759a1b241 removed accidental submodule update 2018-11-07 15:21:04 -08:00
Adele Zhou 04fda25e6e Use n1-highmem-2 for most tests. 2018-07-24 12:11:24 -07:00
Adele Zhou 8edd56841e Step 3 of multipool RBE configuration. 2018-07-13 10:46:41 -07:00
Adele Zhou c9868d011b Add copyright 2018-07-09 15:25:02 -07:00
Adele Zhou a046f6e3ee Configure bazel builds to use Foundry's multipool feature. 2018-07-09 14:57:42 -07:00