Skip to content

perf(ci): move the four path checks into filtered workflows - #4935

Merged
dan-petty merged 2 commits into
mainfrom
perf/4653-path-check-workflows
Nov 12, 2026
Merged

dan-petty merged 2 commits into
mainfrom
perf/4653-path-check-workflows

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Rule Pack Tests, Docs Site Build, Image Pins and Third-Party Image Scan tested their paths in a step of ci.yml. So each one took a runner on each push to a pull request, also when it had no work. Each check now has a workflow of its own (rule-pack.yml, docs-site.yml, image-pins.yml, third-party-image-scan.yml) with the native on.pull_request.paths filter. GitHub starts no runner for a pull request that changes none of the paths. Each job keeps its check name and its 5-minute limit.

The paths are those of the old step filters, with the workflow file in place of ci.yml. The step filters and pull-requests: read go. The third-party scan stays report-only. None of the four is a required check, so a skipped workflow blocks no merge.

Closes #4653

Change: openspec/changes/archive/2026-11-12-4653-move-the-four-path-checks-into/

Rule Pack Tests, Docs Site Build, Image Pins and Third-Party Image Scan
tested their paths in a step, so each one took a runner on each push to a
pull request. Each check now has a workflow of its own with the native
on.pull_request.paths filter, so GitHub starts no runner for a pull
request that changes none of its paths. Each job keeps its check name.

Closes #4653
@dan-petty dan-petty added type/infra Type infra: the build, CI, images or cluster scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners labels Nov 12, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Measurements

Before (Actions API, the jobs of 94 PR runs of ci.yml on 2026-11-11, 05:28Z to 13:04Z). Each of the four jobs started in each run: 376 jobs, 4 for each run. A job counts as work when its work step did not skip.

Check Jobs Did work Median queue (min) Median run without work (s)
Rule Pack Tests 94 0 4.0 10
Docs Site Build 94 48 3.8 5
Image Pins 94 15 5.4 4
Third-Party Image Scan 94 0 5.3 6

The mean queue was 8.1 to 9.1 minutes. The jobs with no work used little runner time (25 runner-min in successful jobs), but each one took 1 of the 20 runner slots of the account, and waited in the queue for it.

After (expected from the same window): a job starts only when the pull request changes a path of its filter, so 63 jobs of 376, or 0.67 for each run (from 4). The measurement over one day after the merge reads the same API.

On this pull request the four workflows run once, because the pull request adds each workflow file and each filter names its own file.

Checks run here

  • uv run devops ci test tests/invariants/test_workflow_contracts.py tests/commands/test_review_rules_pack.py tests/commands/test_ci.py: 280 passed after the rebase on fix(ci): set job timeouts from the measured run times #4892. Before the move, the new tests failed (26 failed: no workflow files, and the parity allowlist dropped the moved steps).
  • uv run devops ci test tests/invariants/test_architectural_invariants.py tests/roadmap/test_roadmap_runner_tools.py: passed.
  • uv run devops ci --only actionlint,zizmor: pass.
  • uv run devops ci --only docs: pass.
  • openspec validate 4653-move-the-four-path-checks-into --strict: valid.

Owner steps

None. The rules of main require Static Analysis, Tests & Coverage, Semantic PR title and the CodeQL results, and none of the four checks (devops gh api repos/<owner>/<repo>/rules/branches/main). No repository setting changes.

Follow-up

#4934: Design Tokens (added by #4738, after the audit) has the same step filter.

@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 05:24
@dan-petty
dan-petty merged commit ed84240 into main Nov 12, 2026
27 checks passed
@dan-petty
dan-petty deleted the perf/4653-path-check-workflows branch November 12, 2026 05:24
@dan-petty

Copy link
Copy Markdown
Owner Author

The four workflows ran on this pull request as workflows of their own, and each passed: Docs Site Build in 36 s, Rule Pack Tests in 73 s, Image Pins in 93 s and Third-Party Image Scan in 101 s (run created to run updated, Actions API). The CI Quality Gate run of the same head started 4 jobs fewer than before.

dan-petty pushed a commit that referenced this pull request Nov 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.116.2](v0.116.1...v0.116.2)
(2026-11-12)


### Bug Fixes

* **openspec:** list the gate commands in a dry run of check
([#4936](#4936))
([cc19a87](cc19a87))


### Performance Improvements

* **ci:** move the four path checks into filtered workflows
([#4935](#4935))
([ed84240](ed84240))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners type/infra Type infra: the build, CI, images or cluster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf(ci): move the four path checks into filtered workflows

1 participant