Skip to content

ci: narrow workflow triggers and skip Markdown-only changes - #123

Merged
DerekRoberts merged 2 commits into
mainfrom
ci/narrow-workflow-triggers
Oct 16, 2026
Merged

DerekRoberts merged 2 commits into
mainfrom
ci/narrow-workflow-triggers

Conversation

@DerekRoberts

Copy link
Copy Markdown
Member

Docs-only #122 ran the full PG Upgrade container matrix because pg-upgrade.yml matched all of oc-runner/**. This narrows that trigger and fixes the other workflows with the same problem.

Changes by workflow

  • pg-upgrade.yml: the top-level paths filter is gone, so the workflow always runs and its checks always report. A new PG Upgrade (changes) job runs bcgov/actions/diff-triggers (SHA-pinned v0.8.0, using the same merge-base step as pr-open.yml). versions and unit have if: gates, and containers skips along with them. Triggers: pg-upgrade/, .github/tests/pg-upgrade/, the workflow itself, and oc-runner/action.yml plus oc-runner/scripts/login.sh, the only oc-runner files pg-upgrade uses (login). *.md is excluded.
  • oc-runner-commands.yml: this used to run on every PR. A new oc-runner (changes) job gates both test jobs on oc-runner/, .github/tests/oc-runner/ and the workflow itself, excluding *.md.
  • pr-open.yml: a new Path filters job (diff-triggers filters) gates Test Crunchy (crunchy, route-tls and image-import code and tests) and Test Image Import (image-import plus the oc-runner action and scripts). Both used to run on every PR. Route TLS path filter now excludes *.md. Actionlint and Test Deployer are unchanged; the deployer already uses its own triggers.
  • cert-expiry-tests.yml: this workflow is light, so it keeps its paths filter and adds !**/*.md.
  • probe-runner-*.yml and pr-close.yml: no change. They are already scoped to their own file or the close event.

No jobs were renamed. Skipped jobs show as skipped, not missing. Note that the main ruleset currently requires no status checks, and the repo has no workflow-results gate job. No version changes.

PG Upgrade, oc-runner commands, Test Crunchy and Test Image Import now
gate on job-level diff-triggers, so docs-only changes skip them while
their checks still report. PG Upgrade matches only the oc-runner login
it depends on. cert-expiry paths and the Route TLS filter ignore *.md.
@DerekRoberts DerekRoberts self-assigned this Oct 16, 2026
@DerekRoberts DerekRoberts moved this to New in DevOps (NR) Oct 16, 2026
@DerekRoberts
DerekRoberts marked this pull request as ready for review October 16, 2026 04:17
Copilot AI balanced review requested due to automatic review settings October 16, 2026 04:17
@DerekRoberts DerekRoberts moved this from New to Active in DevOps (NR) Oct 16, 2026
@DerekRoberts
DerekRoberts merged commit 4dbe4f6 into main Oct 16, 2026
35 checks passed
@DerekRoberts
DerekRoberts deleted the ci/narrow-workflow-triggers branch October 16, 2026 04:20
@github-project-automation github-project-automation Bot moved this from Active to Done 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.

🟡 Changes recommended

Three new gates inspect only the final commit of pushes and can skip tests for earlier code changes.

3 open findings
What changed in this PR

This PR reduces unnecessary CI work by gating tests on relevant file changes and excluding Markdown-only changes.

Changes:

  • Adds path-filter jobs for PG Upgrade, oc-runner, Crunchy, and Image Import tests.
  • Excludes Markdown from Route TLS and certificate-expiry triggers.
  • Documents workflow-trigger requirements.
File Description
AGENTS.md Documents trigger scoping and check-reporting requirements.
.github/​workflows/​pr-open.yml Gates selected tests and excludes Markdown.
.github/​workflows/​pg-upgrade.yml Replaces workflow-level filtering with job gates.
.github/​workflows/​oc-runner-commands.yml Adds path-based gates for both test jobs.
.github/​workflows/​cert-expiry-tests.yml Excludes Markdown from workflow triggers.

🧠 Review effort: Balanced


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

Comment thread .github/workflows/oc-runner-commands.yml
Comment thread .github/workflows/pg-upgrade.yml
Comment thread .github/workflows/pr-open.yml
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