Skip to content

ci: add per-workflow results gates - #126

Merged
DerekRoberts merged 2 commits into
mainfrom
ci/per-workflow-results
Oct 16, 2026
Merged

DerekRoberts merged 2 commits into
mainfrom
ci/per-workflow-results

Conversation

@DerekRoberts

Copy link
Copy Markdown
Member

Adds a workflow-results gate to each PR workflow that PR Results can't cover. All three are pinned to v0.9.0 (79aefe3a7abb2d0d00b1b3ea4cfbf12727a10638), use needs: ${{ toJson(needs) }} and if: always(), and set no title:. No jobs are renamed and there are no version changes.

Checks to require on main:

  • PR Results (pr-open.yml)
  • PG Upgrade Results (pg-upgrade.yml)
  • oc-runner Results (oc-runner-commands.yml)
  • Cert Expiry Results (cert-expiry-tests.yml)

Changes

  • pg-upgrade.yml: adds PG Upgrade Results, which needs changes, versions, unit and containers.
  • oc-runner-commands.yml: adds oc-runner Results, which needs changes, commands and unreachable-api.
  • cert-expiry-tests.yml: removes the top-level paths filter, so the workflow always runs. A new Cert Expiry (changes) diff-triggers gate follows ci: narrow workflow triggers and skip Markdown-only changes #123's pattern: PR merge base, github.event.before on pushes, triggers cert-expiry/, .github/tests/cert-expiry/ and the workflow itself, with *.md excluded. Both test jobs are gated on it, and Cert Expiry Results needs all three jobs.
  • Restored push-range fix: the diff-triggers ref falls back to github.event.before on pushes, so a multi-commit push is compared as a whole. Copilot raised this on ci: narrow workflow triggers and skip Markdown-only changes #123, and it was fixed there in ddb134f, but that commit was pushed after ci: narrow workflow triggers and skip Markdown-only changes #123 squash-merged and never reached main. This PR applies it to pg-upgrade.yml, oc-runner-commands.yml and both filters in pr-open.yml.

Skipped jobs count as passing. If a path filter is too narrow, real changes can skip their tests and these gates will still go green. Keep the triggers in step with each job's dependencies.

probe-runner-*.yml (runs only when its own file changes) and pr-close.yml stay ungated and should not be required.

Restores the push-range fix that missed the #123 squash merge.
PG Upgrade Results, oc-runner Results and Cert Expiry Results report on
every PR. cert-expiry-tests.yml swaps its top-level paths filter for a
job-level diff-triggers gate.
@DerekRoberts
DerekRoberts marked this pull request as ready for review October 16, 2026 05:00
Copilot AI balanced review requested due to automatic review settings October 16, 2026 05:00
@DerekRoberts DerekRoberts moved this to Active in DevOps (NR) Oct 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The gates cover their upstream jobs, test filtering preserves intended coverage, and no blocking issues were identified.

0 open findings

What changed in this PR

Adds per-workflow result gates so required checks report even when unrelated tests are skipped.

Changes:

  • Adds result gates for PG Upgrade, oc-runner, and Cert Expiry.
  • Replaces Cert Expiry’s workflow-level path filters with job-level gating.
  • Updates diff comparisons to cover entire multi-commit pushes.
File Description
.github/​workflows/​pr-open.yml Updates both filters to compare the full push range.
.github/​workflows/​pg-upgrade.yml Adds a results gate and full push-range comparison.
.github/​workflows/​oc-runner-commands.yml Adds a results gate and full push-range comparison.
.github/​workflows/​cert-expiry-tests.yml Adds job-level path filtering and an always-reporting results gate.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@DerekRoberts DerekRoberts self-assigned this Oct 16, 2026
@DerekRoberts
DerekRoberts merged commit ca98042 into main Oct 16, 2026
40 checks passed
@DerekRoberts
DerekRoberts deleted the ci/per-workflow-results branch October 16, 2026 05:23
@github-project-automation github-project-automation Bot moved this from Active to Done in DevOps (NR) Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants