Skip to content

Require the stratos PR aggregate check instead of each suite job#1548

Open
nabramovitz wants to merge 1 commit into
cloudfoundry:mainfrom
nabramovitz:stratos-required-checks
Open

Require the stratos PR aggregate check instead of each suite job#1548
nabramovitz wants to merge 1 commit into
cloudfoundry:mainfrom
nabramovitz:stratos-required-checks

Conversation

@nabramovitz

Copy link
Copy Markdown
Contributor

Change

For cloudfoundry/stratos (develop/main), replace the ten per-job required status checks with the repo's aggregate check:

  • EasyCLA (unchanged)
  • PR Quality Gate (new — replaces Lint Check, the seven Frontend Tests (package) matrix contexts, Backend Tests, Build Check)
  • STB Tests (unchanged — runs from a separate workflow not covered by the aggregate)

Why

Stratos recently added a docs-only fast path to its PR workflow (cloudfoundry/stratos#5564, #5566): PRs touching only docs//website/ skip the heavy test suite via job-level if: gates. Single skipped jobs report a skipped conclusion and satisfy branch protection, but a skipped matrix job never expands — its per-package contexts never report, and the merge blocks with 7 of 12 required status checks are expected (observed on cloudfoundry/stratos#5563, a one-file docs change).

PR Quality Gate is stratos' aggregate job: it runs on every PR (if: always()), inspects the result of lint, all frontend matrix shards, backend tests, build check, and website build, and fails on any failure or cancelled result while accepting skipped (the deliberate fast-path outcome). Requiring the aggregate instead of each job is the standard resolution for required-check + conditional-matrix workflows, and lets stratos revert an interim workaround (cloudfoundry/stratos#5567) that spins up no-op matrix shards purely so their contexts report.

Risk

Low. Enforcement is equivalent: any suite failure fails the aggregate and blocks the merge; the only behavioral change is that legitimately-skipped paths no longer deadlock. Same config mechanism as #1537.

The per-job contexts blocked docs-only PRs: when the frontend matrix
is skipped, its per-package required contexts never report and stay
'expected' (seen on cloudfoundry/stratos#5563). PR Quality Gate
aggregates lint/frontend/backend/build/website results, reports on
every PR, and fails on any failed or cancelled job. STB Tests runs
from a separate workflow and remains individually required.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

2 participants