From c2284f85194db3167b53e10b040a0b60dc77d2f6 Mon Sep 17 00:00:00 2001 From: Martin Kuntz Jacobsen Date: Tue, 24 Nov 2026 00:42:20 +0100 Subject: [PATCH 1/2] ci: gate skips nested-consumer tests like pr-check did (part of #14770) The per-OS check and coverage jobs from #14772 run dx --affected without the old pr-check exclusion, so the nested-Bazel consumer tests time out in a 60 s small slot on every PR that touches them. A gate config restores the manual, resources:nested_bazel:1, starter-consumer and network-consumer exclusion and keeps coverage's own filters. The nightly network job still runs them; #14793 brings them back into the gate. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus --- .bazelrc | 2 ++ .github/actions/gate/action.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.bazelrc b/.bazelrc index 15a7ff16e7..3197b7427a 100644 --- a/.bazelrc +++ b/.bazelrc @@ -4,6 +4,8 @@ try-import %workspace%/.dx/bazelrc/performance.bazelrc try-import %workspace%/.dx/bazelrc/resources.bazelrc coverage --test_tag_filters=-no-coverage,-dx-no-coverage-collector +common:gate --test_tag_filters=-manual,-resources:nested_bazel:1,-starter-consumer,-network-consumer +coverage:gate --test_tag_filters=-no-coverage,-dx-no-coverage-collector,-manual,-resources:nested_bazel:1,-starter-consumer,-network-consumer common --local_resources=nested_bazel=2 common --local_resources=msix_package_store=1 diff --git a/.github/actions/gate/action.yml b/.github/actions/gate/action.yml index b69d8d0708..bc1891efa7 100644 --- a/.github/actions/gate/action.yml +++ b/.github/actions/gate/action.yml @@ -35,7 +35,7 @@ runs: mkdir -p "$(dirname "$LCOV")" report=(--report "lcov=$LCOV") fi - bazel run "$@" @rules_dx//:dx -- "$COMMAND" --affected --output=json "${report[@]}" -- "$@" < /dev/null | tee "${RUNNER_TEMP:-/tmp}/gate.json" + bazel run "$@" @rules_dx//:dx -- "$COMMAND" --affected --output=json "${report[@]}" -- "$@" --config=gate < /dev/null | tee "${RUNNER_TEMP:-/tmp}/gate.json" - name: Print the failing test log tails if: ${{ failure() && steps.check.outcome == 'failure' }} shell: bash From fa07d489cfb760933c2452d78b2753b8dd6072e4 Mon Sep 17 00:00:00 2001 From: Martin Kuntz Jacobsen Date: Tue, 24 Nov 2026 01:02:58 +0100 Subject: [PATCH 2/2] ci: pass the nested-consumer tag filter from the gate action A .bazelrc change widens dx --affected to //..., so keep the filter in the gate action instead of a .bazelrc config. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus --- .bazelrc | 2 -- .github/actions/gate/action.yml | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.bazelrc b/.bazelrc index 3197b7427a..15a7ff16e7 100644 --- a/.bazelrc +++ b/.bazelrc @@ -4,8 +4,6 @@ try-import %workspace%/.dx/bazelrc/performance.bazelrc try-import %workspace%/.dx/bazelrc/resources.bazelrc coverage --test_tag_filters=-no-coverage,-dx-no-coverage-collector -common:gate --test_tag_filters=-manual,-resources:nested_bazel:1,-starter-consumer,-network-consumer -coverage:gate --test_tag_filters=-no-coverage,-dx-no-coverage-collector,-manual,-resources:nested_bazel:1,-starter-consumer,-network-consumer common --local_resources=nested_bazel=2 common --local_resources=msix_package_store=1 diff --git a/.github/actions/gate/action.yml b/.github/actions/gate/action.yml index bc1891efa7..bfb8cd0ed8 100644 --- a/.github/actions/gate/action.yml +++ b/.github/actions/gate/action.yml @@ -30,12 +30,16 @@ runs: run: | # shellcheck disable=SC2086 set -- --lockfile_mode=error $BAZEL_CONFIG $BB_ARGS + tags=-manual,-resources:nested_bazel:1,-starter-consumer,-network-consumer + if [ "$COMMAND" = coverage ]; then + tags=-no-coverage,-dx-no-coverage-collector,$tags + fi report=() if [ -n "$LCOV" ]; then mkdir -p "$(dirname "$LCOV")" report=(--report "lcov=$LCOV") fi - bazel run "$@" @rules_dx//:dx -- "$COMMAND" --affected --output=json "${report[@]}" -- "$@" --config=gate < /dev/null | tee "${RUNNER_TEMP:-/tmp}/gate.json" + bazel run "$@" @rules_dx//:dx -- "$COMMAND" --affected --output=json "${report[@]}" -- "$@" "--test_tag_filters=$tags" < /dev/null | tee "${RUNNER_TEMP:-/tmp}/gate.json" - name: Print the failing test log tails if: ${{ failure() && steps.check.outcome == 'failure' }} shell: bash