From 869d07f079ae453e06a66cd298028f27fa3320b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Sun, 17 Nov 2024 20:54:56 +0100 Subject: [PATCH] ci: support building grt in sweeps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add a sweep_parallel filegroup to build stuff in parallel and then afterwards build grt in serial Signed-off-by: Øyvind Harboe --- BUILD.bazel | 7 +++++++ etc/BuildMegaboom.sh | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/BUILD.bazel b/BUILD.bazel index 77c3f95..994328b 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -486,6 +486,13 @@ ALL_VARIANTS = SWEEP | OTHER_VARIANTS visibility = [":__subpackages__"], ) for variant in SWEEP] +# This can be built in parallel, but grt needs to be build in serial +filegroup( + name = "sweep_parallel", + srcs = ["BoomTile_" + ("" if variant == "base" else variant + "_") + "cts" for variant in SWEEP], + visibility = ["//visibility:public"], +) + genrule( name = "wns_report", srcs = [ diff --git a/etc/BuildMegaboom.sh b/etc/BuildMegaboom.sh index 5226981..e7a5a54 100755 --- a/etc/BuildMegaboom.sh +++ b/etc/BuildMegaboom.sh @@ -8,5 +8,10 @@ exec 2>&1 # Check GCP service account entitlements first test/cred_helper_test.py -bazel build wns_report BoomTile_grt --keep_going +bazel build sweep_parallel --keep_going +# If we're not sweeping grt, then we could have +# started wns_report sooner, but at least we're not +# running multiple grt builds in parallel, which makes +# the server fall over. +bazel build --jobs 1 wns_report BoomTile_grt --keep_going cat bazel-bin/BoomTile_wns_report.md