Skip to content

feat(roadmap): record the failure class and step of a stage item - #4153

Merged
dan-petty merged 5 commits into
mainfrom
feat/4056-stage-failure-class-step
Nov 8, 2026
Merged

dan-petty merged 5 commits into
mainfrom
feat/4056-stage-failure-class-step

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

feat(roadmap): record the failure class and step of a stage item

A failed stage item now records which step failed (plan or apply) and which failure class applies, next to stage.failed_at and stage.failed_error. A table in roadmap/failure.py maps each exception to an existing failure class by isinstance. The two new marks are cleared when the item is staged or stopped by budget. The writer is the consumer; the reader is #4060.

Closes #4056

Change: openspec/changes/archive/2026-11-08-4056-record-the-failure-class-and-step/
Elapsed: 3.82s

@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 this pull request.

Fail-to-pass. uv run devops ci fail-to-pass --base origin/main exit 0. 26 tests failed on the base for the right reason (no StepName, CLASS_BY_EXCEPTION, failure_class_of, StageRecordKey.FAILED_STEP or FAILED_CLASS) and pass on this branch. Files: tests/roadmap/stage/test_roadmap_stage_failure_class.py (new, 8 tests), tests/roadmap/test_roadmap_failure.py (12 new tests), and the StageFailure sites in test_roadmap_stage_retry.py and test_roadmap_stage_apply.py.

Full CI. flock ... uv run devops ci ran on the final code before the archive: exit 0, 25 rows passed. The test row took 12m 24s (known #3593). After the rebase onto aa772d6e, I re-ran the touched tests (row seconds: 10 passed, failure class: 8, failure: 100), openspec check and docs generate --check: all passed.

Premise. The MRO of each mapped exception was run on origin/main. The table order is valid by isinstance. No new failure class is needed.

Rollout rule. No setting is removed, renamed or tightened (roadmap.stage.retry_hours is unchanged). No ConfigMap change. Nothing was applied to the cluster.

Decision for a person. StageFailure gets two required keyword fields (failure_class, step), with no default. A default would hide a missing class at a new failure site. See design.md.

@dan-petty
dan-petty marked this pull request as ready for review November 8, 2026 13:03
@dan-petty
dan-petty merged commit e017776 into main Nov 8, 2026
25 checks passed
@dan-petty
dan-petty deleted the feat/4056-stage-failure-class-step branch November 8, 2026 13:04
dan-petty pushed a commit that referenced this pull request Nov 8, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.89.0](v0.88.1...v0.89.0)
(2026-11-08)


### Features

* **roadmap:** record the failure class and step of a stage item
([e017776](e017776))
* **roadmap:** record the failure class and step of a stage item
([#4153](#4153))
([e017776](e017776))
* **telemetry:** measure the seconds of each Service row
([#4150](#4150))
([aa772d6](aa772d6))


### Bug Fixes

* **k8s:** raise the roadmap service memory to 768Mi and 3Gi
([#4154](#4154))
([5c9fb88](5c9fb88))

---
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): record the failure class and step of a stage item

1 participant