Skip to content

fix(ci): read the DevContainer Image job in job-time - #7997

Merged
dan-petty merged 2 commits into
mainfrom
fix/7970-devcontainer-image-averages-over-the-360
Dec 1, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/7970-devcontainer-image-averages-over-the-360

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

The job DevContainer Image averages over the 360 s limit of AGENTS.md rule 5 on its pull request runs, and devops ci job-time did not read it, so no alarm filed a P0 issue.

No push starts its workflow, so the command now also reads the last 10 pull_request runs of this job, from all branches, with the same limit. It names these runs by their event in the table, the report and the alarm line. The limit and the job do not change.

Until the build is faster (#7984), each daily Test Job Duration run reports this job over the limit: it fails and keeps one P0 alarm issue for the job.

Closes #7970

Change: openspec/changes/archive/2026-12-01-7970-devcontainer-image-averages-over-the-360/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/spec labels Dec 1, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the fix/7970-devcontainer-image-averages-over-the-360 branch from 89fe835 to c52047a Compare December 1, 2026 02:01
@devops-cli-service devops-cli-service Bot changed the title docs(spec): plan #7970 Add DevContainer Image to the job-time check docs(spec): plan #7970 Add the DevContainer Image job to job-time Dec 1, 2026
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Stopped at fix. The stop report is on #7970: #7970 (comment).

  • tools: run_command 33, read_file 18, edit_file 13, grep 8
  • scoped check pre-push: failed, 50 s
  • scoped check tests: the changed files select more than 30 test modules, so only the changed test modules ran. The required checks of CI run the others
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.github.test_ci_job_time::test_the_runs_of_an_event_are_listed_with_no_branch_parameter.
  • fail-to-pass of group 2: fails on the base commit. Tests that fail on the base commit: tests.github.test_ci_job_time::test_the_default_checks_hold_the_test_job_and_the_six_release_image_jobs, tests.github.test_ci_job_time::test_the_devcontainer_image_job_of_the_issue_averages_416_8_seconds, tests.github.test_ci_job_time::test_a_devcontainer_image_mean_over_the_limit_files_one_p0_issue, tests.github.test_ci_job_time::test_the_scope_of_a_check_is_its_branch_or_its_event_when_it_has_no_branch.
  • verify of group 3: uv run devops ci --check --only actionlint,zizmor exits 0.
\u2139 Quality gate root: /run/roadmap/work/model-clone
\u2139 Executing CI quality gates concurrently...
  \u2713 pass [python_version] python version check (3.14+) (3\xb5s)
  \u2713 pass [actionlint] actionlint (github workflows) (2.08s)
  \u2713 pass [zizmor] zizmor (github workflow security) (4.41s)
            CI Summary            
 Check           Result  Duration 
 python_version  \u2713 pass  3\xb5s      
 actionlint      \u2713 pass  2.08s    
 zizmor          \u2713 pass  4.41s    
Total Elapsed: 4.47s (concurrent async execution)

@dan-petty

Copy link
Copy Markdown
Owner

This comment is information for the retry of #7970. It is no command.

The cause of the stop is confirmed: the runner Job had 1 CPU, and timeout 40 ended the hook devops-ci-pre-push with exit code 124 while its rows ran.

A retry is not safe yet. The timestamps of the log of Job devops-cli-implement-devops-cli-7970-89a40b show that the same devops ci --check --only ... command with no time limit took 74 s in one run and 113 s in another run on 1 CPU. #8007 measured 2 CPUs at about 0.67 of the time of 1 CPU (22 s against 33 s). On 2026-12-01 a devcontainer gave 31 s on 1 CPU and 20 s on 2 CPUs. The same ratio gives about 48 s to 75 s on 2 CPUs of that node, over the limit of 40 s. This is an estimate: no run of the hook on a 2 CPU Job is measured. The load of the node during those two runs is not known.

Before implement: retry, measure the hook on a 2 CPU runner Job, or build this item outside the runner. The plan itself passes devops roadmap plan-check on main of 2026-12-01. The mean of the last 10 pull request runs of DevContainer Image is 423 s today, so the premise holds.

devops-cli-service Bot and others added 2 commits December 1, 2026 13:52
Add the job DevContainer Image of devcontainer-image.yml to
devops ci job-time, over its last 10 pull_request runs with no branch,
at the limit of 360 s. Archive the change of #7970.
@dan-petty
dan-petty force-pushed the fix/7970-devcontainer-image-averages-over-the-360 branch from c52047a to 65ba9e9 Compare December 1, 2026 13:56
@dan-petty dan-petty changed the title docs(spec): plan #7970 Add the DevContainer Image job to job-time fix(ci): read the DevContainer Image job in job-time Dec 1, 2026
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners and removed type/docs Type docs: a change to the documents scope/spec labels Dec 1, 2026
@dan-petty

Copy link
Copy Markdown
Owner

Check results

Head commit: 65ba9e93dfa89240489369da58fad994787e1fd3

Check Conclusion Link
Upload Scan SARIF success run
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
gitleaks success run
Trivy success run
Service Image Tests (shard 4 of 6) success run
Service Image Tests (shard 5 of 6) success run
Service Image Tests (shard 3 of 6) success run
Service Image Tests (shard 6 of 6) success run
Service Image Tests (shard 2 of 6) success run
Service Image Tests (shard 1 of 6) success run
Changed-Test Independence success run
Plan Check success run
CodeQL success run
Test Job Duration skipped run
PR title / Semantic PR title success run
Semantic PR title success run
Fail-to-Pass Check success run
Tests on Main skipped run
Docs Site Build success run
Service Image Build success run
Design Tokens success run
Tests & Coverage (shard 5 of 6) success run
Tests & Coverage (shard 1 of 6) success run
Changed-Test Independence (run 1 of 3) success run
Tests & Coverage (shard 3 of 6) success run
Tests & Coverage (shard 6 of 6) success run
Changed-Test Independence (run 2 of 3) success run
Tests & Coverage (shard 4 of 6) success run
Runner Image success run
Changed-Test Independence (run 3 of 3) success run
Tests & Coverage (shard 2 of 6) success run
DevContainer Image success run
Service Image success run
Static Analysis success run
Analyze (actions) success run
Analyze (python) success run

Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/46661769896/job/142692963552

Skipped check: Test Job Duration
Skipped check: Tests on Main

@dan-petty

Copy link
Copy Markdown
Owner

An agent built #7970 on this branch outside the runner, because the devops-ci-pre-push hook ended at its 40 s limit on the 1 CPU runner Job. No check has a larger limit and no check is skipped. Head: 65ba9e93d.

Plan changes before the code (the plan did not hold them):

  • Requirement Only the wanted runs are read: the checks that share a read now also share the event.
  • Requirement A mean over the limit has one P0 issue: the alarm line names the scope.
  • New requirement A check with no branch is named by its event.
  • Task 3.2: the help, docs/TESTING.md, the generated command pages, and the comment and step name of the job-time job of ci.yml now name the new check.

Local checks

Check Result
devops ci --check --only lint,format,docs,constructs,openspec,test-settings,test-tree,startup-imports,swallowed-failures,actionlint,zizmor pass
mypy on the 5 changed source files pass
devops ci test tests/github tests/ci tests/roadmap/stage (before the last rebase) 5087 passed, 1 skipped
devops ci test on the covering files of tests/github, tests/ci, tests/commands and on tests/invariants, tests/dry_run, tests/lang, tests/docs (after the rebase) 802 passed
devops ci fail-to-pass 6 changed tests fail on the base
Pre-push hooks pass

Live read with no --file-issue (2026-12-01, before the push):

  • DevContainer Image: 10 pull request runs, mean 422 s, over the limit of 360 s. The read asked for the jobs of 28 runs.
  • Tests & Coverage: mean 313 s.
  • Each of the 6 release image checks read 5 of 10 runs, so it was short. This change does not change that read. refactor(release): use the shared release workflow #8006 gave these jobs their present names on 2026-11-30, so older runs probably do not hold them.
  • The job Test Job Duration took 72 s to 131 s in its last 5 scheduled runs. Its timeout is 300 s.

Effect after the merge: the daily job-time run files a priority/p0-critical alarm issue for DevContainer Image and fails while #7984 is open. This is the intended result of the plan. The criterion "at most 360 s over 10 runs" stays with #7984.

@dan-petty
dan-petty marked this pull request as ready for review December 1, 2026 14:08
@dan-petty
dan-petty merged commit 9cf3164 into main Dec 1, 2026
42 of 43 checks passed
@dan-petty
dan-petty deleted the fix/7970-devcontainer-image-averages-over-the-360 branch December 1, 2026 14:10
dan-petty-release Bot added a commit that referenced this pull request Dec 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.270.1](v0.270.0...v0.270.1)
(2026-12-01)


### Bug Fixes

* **ai:** give Claude names the Claude request profile
([#8037](#8037))
([b4aeb94](b4aeb94))
* **ci:** read the DevContainer Image job in job-time
([#7997](#7997))
([9cf3164](9cf3164))
* **k8s:** Size render pools by the container CPU quota
([#8017](#8017))
([916e4dc](916e4dc))

---
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/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): DevContainer Image averages over the 360 s limit

1 participant