Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,3 +276,20 @@ jobs:
configrepo: objectstore__main
gocd_access_token: ${{ secrets.GOCD_ACCESS_TOKEN }}
google_oidc_token: ${{ steps.auth.outputs.id_token }}

# 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, lint-python, test-all, test-python, docs]
# Run even when a dependency fails, which would otherwise skip this job.
if: always()
runs-on: ubuntu-latest
timeout-minutes: 3
permissions: {}
steps:
- name: Check for failures
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1
2 changes: 1 addition & 1 deletion gocd/templates/bash/github-check-runs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
checks-githubactions-checkruns2 \
getsentry/objectstore \
"${GO_REVISION_OBJECTSTORE_REPO}" \
"Test (all features)" \
"Required checks" \
"Publish to GCR" \
"Upload Build Artifacts for GoCD" \
Loading