From 94cc57a0619566c9e5505c00f1c431a4788ecf70 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Tue, 1 Dec 2026 01:14:50 +0000 Subject: [PATCH] ci: Add a single Required checks job for branch protection and GoCD Co-Authored-By: Joshua Li <14209781+joshuarli@users.noreply.github.com> --- .github/workflows/ci.yml | 17 +++++++++++++++++ gocd/templates/bash/check-github-runs.sh | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec988cbc..5fa60034 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -608,3 +608,20 @@ jobs: - name: Run push mode postgres integration test run: | make test-push-postgres + + # The one check that branch protection and GoCD wait on. It passes when every + # job in `needs` passed or was skipped, so neither has to name individual + # jobs or matrix legs. `needs` lists the upstream jobs too: when one of them + # fails, the jobs after it are skipped, not failed. + required-checks: + name: Required checks + needs: [lint, test, rebalance-integration-test, worker-processing-integration-test, upkeep-retry-integration-test, upkeep-expiry-integration-test, heartbeat-integration-test, upkeep-delay-integration-test, failed-tasks-integration-test, multi-topic-integration-test, push-postgres-integration-test] + # Run even when a dependency fails, which would otherwise skip this job. + if: always() + runs-on: ubuntu-24.04 + timeout-minutes: 3 + permissions: {} + steps: + - name: Check for failures + if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') + run: exit 1 diff --git a/gocd/templates/bash/check-github-runs.sh b/gocd/templates/bash/check-github-runs.sh index e8b7e754..464e3f18 100644 --- a/gocd/templates/bash/check-github-runs.sh +++ b/gocd/templates/bash/check-github-runs.sh @@ -5,4 +5,4 @@ checks-githubactions-checkruns2 \ "${GO_REVISION_TASKBROKER_REPO}" \ "Build and push production images to single-region registry" \ "Build and push production images to multi-region registry" \ - "Tests (ubuntu)" + "Required checks"