Repository navigation
fix(roadmap): end fix-plan at a time budget with a result line - #5380
Conversation
The step fix-plan had no time budget, and a Job that ran it wrote no line until the attempt ended. When the Job deadline came first, the pod stopped with no result line, no comment and no count, and the attempt mark still started the 6-hour wait. The new setting roadmap.fix_plan.time_budget_seconds (default 3600) starts with each call. The planner starts no plan run and no review run once it is spent. The attempt then ends with the result and the class timeout, pushes nothing, keeps plan/needs-fix, and comments the open findings and the counts. Each review logs one "fix-plan progress:" line. The command writes the round lines and the result line to stderr while it runs, so a Job log keeps them. The default ends before the deadline of each CronJob template of devops k8s run-job, with a margin of one model run and the push.
The issue asks for no push of a half revision. The first test stops the attempt before the plan run, so no revision existed. The new test lets the planner write a revision and spends the budget in that run: the step pushes nothing, starts no review of the revision, and the result line holds result=timeout, class=timeout and step=plan. The spec delta gets the same scenario. The stage document now names the step gate also, because the budget can end before the plan run that replaces a head that the checks refuse.
|
Checks and evidence (review and publish of #5363)
Render diff. No path under Review fixes.
Release. Needed. The Service runs the row Limit. The budget is cooperative. It stops the attempt only before the next plan run or review run. A model request or a wait that does not return is out of its reach (39 minutes with no span on #5350). #5379 tracks that. |
…est moves The clock fixture also routes time.sleep, and the wait for each git child process calls it in a loop. Its monotonic reading thus moved with the real time of each git command: 338 s on a fast host, and past the 600 s budget on the CI runner, so the attempt ended at the review of the head. The budget tests now replace only the monotonic reading of the clock seam, as tests/telemetry/test_roadmap_stage_steps.py does. The new setting also gets its row in the limit table of the roadmap jobs and its variable in the list of later settings.
42c0691 to
76b4e0a
Compare
|
CI fix round 1 (head The first CI run failed 3 tests in the Tests & Coverage shards 2 and 4:
Local proof: |
🤖 I have created a release *beep* *boop* --- ## [0.127.1](v0.127.0...v0.127.1) (2026-11-13) ### Bug Fixes * **ci:** alarm at 360 s, one P0 issue, shards by recorded time ([#5377](#5377)) ([2abd6ff](2abd6ff)) * **github:** read the plan diff and the release files from the merge base ([#5401](#5401)) ([c54e14c](c54e14c)) * **infra:** turn off the Ansible color of every playbook run ([#5381](#5381)) ([5bafb1a](5bafb1a)), closes [#5352](#5352) * install-tools --check passes an older openspec binary ([#5355](#5355)) ([625c89d](625c89d)) * **k8s:** allow only the Ingress origins in Open WebUI ([#5357](#5357)) ([fdab229](fdab229)) * **pr:** count only the latest run of each check ([#5393](#5393)) ([634dc91](634dc91)) * **review:** drop the fixed gateway URL of the review dry run ([#5399](#5399)) ([0666d3d](0666d3d)) * **review:** review a pull request at the merge base of its base branch ([#5387](#5387)) ([351ba2a](351ba2a)), closes [#5346](#5346) * **roadmap:** end fix-plan at a time budget with a result line ([#5380](#5380)) ([20468f4](20468f4)), closes [#5363](#5363) * **roadmap:** refine skips an item that changed during the write ([#5392](#5392)) ([a863dda](a863dda)) * **roadmap:** stage writes RENAMED and REMOVED spec deltas ([#5367](#5367)) ([4abbbd2](4abbbd2)) * **roadmap:** title the delivery by the summary of its plan ([#5376](#5376)) ([10e1069](10e1069)) --- 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>
The step fix-plan had no time budget, and a Job that ran it wrote no line until the attempt ended. When the Job deadline came first, Kubernetes stopped the pod: no result line, no comment, no count, and the attempt mark still started the 6-hour wait.
The new setting
roadmap.fix_plan.time_budget_seconds(default 3600) starts with each call. The planner starts no plan run and no review run once the budget is spent. The attempt then ends with the result and the classtimeout, pushes nothing, keepsplan/needs-fix, and comments the open findings and the counts. Each review logs onefix-plan progress:line. The command writes the round lines and the result line to stderr while it runs, so the log of a Job keeps them. A test holds the default, plus a margin of 1200 s for one more run and the push, below the deadline of each CronJob template ofdevops k8s run-job.Closes #5363
Change:
openspec/changes/archive/2026-11-13-5363-fix-plan-time-budget/