Skip to content

Commit

Permalink
ci: support building grt in sweeps
Browse files Browse the repository at this point in the history
add a sweep_parallel filegroup to build stuff in parallel and
then afterwards build grt in serial

Signed-off-by: Øyvind Harboe <[email protected]>
  • Loading branch information
oharboe committed Nov 17, 2024
1 parent 72adca2 commit 869d07f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
7 changes: 6 additions & 1 deletion etc/BuildMegaboom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 869d07f

Please sign in to comment.