Skip to content

feat(roadmap): retry a suspended row after its failure-class wait - #4175

Merged
dan-petty merged 3 commits into
mainfrom
feat/4065-ledger-retry-after
Nov 8, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/4065-ledger-retry-after

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A row that failed the same input a set number of rounds stayed suspended until its input changed. Now the failure ledger stores a retry time for each suspended row, set from the wait of its failure class (RETRY_AFTER). When the time passes, the row runs one probe round: a pass clears the entry, a new failure suspends the row again. The suspended gauge gets a class label, a seconds gauge shows the wait left, and the alert RoadmapServiceRowSuspended fires after 3 hours. Old ledger entries still load.

Closes #4065

Change: openspec/changes/archive/2026-11-08-4065-ledger-retry-after/

…class

Plan the change 4065-ledger-retry-after and write its tests first: the ledger sets a retry time from RETRY_AFTER, a probe round ends or renews it, a new input runs the row at once, an old entry loads, and the gauge and alert name the class. The tests fail until the ledger code and the alert rule exist.
…class

The failure ledger keeps a retry time for a row that failed its limit of rounds in a row.
After it, the row runs one probe round. The gauge devops_cli_service_job_suspended gets
the label class, a gauge shows the seconds left, and the alert RoadmapServiceRowSuspended
fires when a row stays suspended for 3 hours.
@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 #4065.

  • Type is feat, so no fail-to-pass run applies. Red run before the code: 47 failed, 139 passed over the touched test files (all for the right reason: new signature, missing label, missing rule).
  • Full uv run devops ci passed on the final code. No known host failure was hit. The tests row took 11m20s on a loaded host (slowest: the rule loop of test_k8s_monitoring_alerting, 121 s). This is the class of fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593.
  • After the rebase onto origin/main, the narrow tests of the ledger, the failure ledger, the suspended-row comment, the refine placeholder, the service limits and the unkept state passed.
  • The change adds, removes, renames or tightens no setting (RETRY_AFTER is a table, the ledger file is state), so no ConfigMap change and no ConfigMap load test are needed.
  • Rollback hazard: a ledger file with 6-field entries fails the union of an older image. Remove service-failures.json before a rollback. The project keeps no backward compatibility before 1.0.0, so there is no shim. Old 4-field and 5-field entries load in the new image (test included).

@dan-petty
dan-petty marked this pull request as ready for review November 8, 2026 19:27
@dan-petty
dan-petty merged commit b5254d7 into main Nov 8, 2026
25 checks passed
@dan-petty
dan-petty deleted the feat/4065-ledger-retry-after branch November 8, 2026 19:27
dan-petty pushed a commit that referenced this pull request Nov 8, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.93.0](v0.92.1...v0.93.0)
(2026-11-08)


### Features

* **roadmap:** retry a suspended row after its failure-class wait
([#4175](#4175))
([b5254d7](b5254d7)),
closes [#4065](#4065)
* **telemetry:** send stage step seconds and gate refusal counts
([#4176](#4176))
([a6ddc30](a6ddc30))

---
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): a suspended intake row retries after a set time

1 participant