Skip to content

feat(roadmap): stage retry time follows the failure class - #4156

Merged
dan-petty merged 4 commits into
mainfrom
feat/4060-stage-retry-by-failure-class
Nov 8, 2026
Merged

dan-petty merged 4 commits into
mainfrom
feat/4060-stage-retry-by-failure-class

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A failed stage item waited a fixed 6 hours, set by roadmap.stage.retry_hours. A provider error and a refused plan waited the same time, and an item that changed during the job waited too. The wait now follows the failure class that #4056 stores on the item (stage.failed_class): a new table RETRY_AFTER in roadmap/failure.py gives 1 hour for provider and ci_infra, 6 hours for parser and plan_defect, and none for head_moved. A missing or unknown class waits as ci_infra. The setting retry_hours is removed. The live ConfigMap holds no such key, and the settings model ignores an unknown key, so no rollout order is needed.

Closes #4060

Change: openspec/changes/archive/2026-11-08-4060-stage-retry-time-follows-the-failure-class/

Plan the change 4060-stage-retry-time-follows-the-failure-class and write the tests first.
Add RETRY_AFTER keyed by failure class and read it in the stage selection.
Remove the setting roadmap.stage.retry_hours and fix the documents.
@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 8, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test record for #4060 (a feat, so there is no fail-to-pass run).

  • Tests first: the new tests failed on the unchanged code (RETRY_AFTER missing; provider, ci_infra, head_moved and no-class waits wrong; the retry_hours field still present). Files: tests/roadmap/stage/test_roadmap_stage_retry_after.py, tests/roadmap/test_roadmap_failure.py, tests/roadmap/stage/test_roadmap_stage_settings.py.
  • After the change: tests/roadmap/stage and tests/config pass (1921 passed), plus ruff, ruff format, mypy on roadmap and config, and openspec check.
  • Full devops ci under the lock: all rows passed except the test row. It had 21361 passed and 1 failed in 10m 40s. The failure was a change-folder check on a task line of this change; it is fixed, and the file then passed (34 passed). The row time over 5 minutes is the known issue fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593.

Rollout: the live ConfigMap devops-cli-config holds no roadmap.stage.retry_hours key (read-only check). RoadmapStageConfig has extra='ignore', so a stale key would be ignored, not refused. No change to the ConfigMap is needed before the image rolls.

@dan-petty
dan-petty marked this pull request as ready for review November 8, 2026 14:27
@dan-petty
dan-petty merged commit 6701e27 into main Nov 8, 2026
25 checks passed
@dan-petty
dan-petty deleted the feat/4060-stage-retry-by-failure-class branch November 8, 2026 14:28
dan-petty pushed a commit that referenced this pull request Nov 8, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.90.0](v0.89.0...v0.90.0)
(2026-11-08)


### Features

* **roadmap:** accept a plan referencing valid DefectType members
([#4160](#4160))
([1ba265e](1ba265e))
* **roadmap:** gate a plan that adds a StageProposal field
([#4159](#4159))
([4dfb18c](4dfb18c))
* **roadmap:** refuse a self-named or untested plan
([#4157](#4157))
([9fd8d45](9fd8d45))
* **roadmap:** stage retry time follows the failure class
([#4156](#4156))
([6701e27](6701e27))

---
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/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): stage retry time follows the failure class

1 participant