Repository navigation
Description
Problem or Motivation
Service Image Tests runs the same 22,733 tests with the same 10 skips as Tests & Coverage. It uses 6 jobs and 41.7 runner-min per push, which is 49% of the CI runner-min of a PR push (measured). In 100 failed PR runs, it found no test failure that Tests & Coverage did not find. Its one unique failure was in its own dependency step (measured). When #4425 added it, it found 5 test-only host assumptions. Its shards average 368-507 s, which is more than the 300 s rule.
Owner decision O1 (2026-11-11): Service Image Tests runs nightly, on workflow_dispatch, and on PRs that change image inputs other than src/. This reverses Direction B of #1643.
Saving: 6 jobs and 41.7 runner-min per push (measured). Alone, it takes the queue model at the rate of 2026-11-11 from 26.7 to 8.8 min of mean wall time.
Found by the CI and test audit of 2026-11-11. The account runs at most 20 hosted jobs at one time (measured), so each job that does no work makes the queue of each pull request longer.
Proposed Solution & Architectural Design
- Run the full in-image suite on the daily schedule, on
workflow_dispatch, and on PRs that change image inputs other thansrc/:Dockerfile,.dockerignore,pyproject.toml,uv.lockandsrc/devops_cli/tools_lock(4 of 116 topic pushes on 2026-11-11). - The filter must stop the jobs before they start. A step filter still takes a runner. Use the native
on.pull_request.pathsfilter in a workflow of its own, or a job-levelif:on the output of onedorny/paths-filterstep (the action thatci.ymlalready pins). - Change the chore(docker): Align service image base with devcontainer #1643 invariant (
_service_image_test_job_problemsintests/invariants/test_architectural_invariants.py) so that it accepts these triggers and still requires the schedule trigger. - Optional: after its single build, the Service Image job runs only the tests that use real tools (the live, git and bwrap tests).
- perf(ci): build the Service image once for its test shards #4642 changes how the shards get the image. The two items change the same job, so merge one of them first.
Risk: Medium-low. A src/ change that breaks only in the Python or OS of the image shows up to 24 h later, after the merge.
Target Subsystem
SDLC, Git & PR Governance (.github/workflows/ci.yml, tests/invariants/test_architectural_invariants.py).
Existing Tool Considered
GitHub Actions schedule, workflow_dispatch and path filters (native), or dorny/paths-filter (already pinned). No new tool. Cost: about 30,000 tokens and 2 hours.
Acceptance Criteria
- A PR push that changes only
src/starts 0 Service Image Tests jobs (from 6). - The nightly run and each image-input PR run the full suite in the image.
- The invariant test passes with the new triggers, and it fails when the schedule trigger is missing.
Dependencies
None. The owner decided O1 on 2026-11-11.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
perfprefix of the title gives the type.(ci)scope of the title gives the scope.It saves 41.7 runner-min per push and cuts mean wall time from 26.7 to 8.8 min, but it is an optimization, not a blocker.It removes 49% of PR-push runner-min and shortens the queue for every pull request.It requires a new workflow or path filter, an invariant test update, and coordination with #4642; the body estimates about 2 hours.Both modify the Service Image Tests job in ci.yml, but #4642 changes how the image is built (once vs per shard) while this candidate changes when the job triggers.devops-cli-service commentedon Nov 11, 2026
Released in v0.114.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.114.0
devops-cli-service commentedon Nov 11, 2026
Live since 2026-11-11 22:57 UTC