Repository navigation
Description
Problem
The row release_comments checks the images of each release in its window. A new release has no image until its build ends, so the registry gives HTTP 404, and the row counts a failed round. Error lines and a suspension come from a normal state. The owner sees false failures, and Live since comments come late. The evaluation found no lost comment.
Evidence in the window 2026-11-03T15:05Z to 2026-11-04T15:05Z, from Loki:
- 9 failed rounds, each with the line
The registry gives no manifest for .../service:<tag> (HTTP 404). - All 9 releases were less than 5 min 30 s old at the 404: v0.51.0 45 s, 47 s and 54 s; v0.53.0 276 s; v0.53.2 170 s and 171 s; v0.53.3 324 s; v0.53.4 229 s; v0.55.3 44 s. No tag gives a 404 line later in the window.
- 1 suspension, at 2026-11-03T17:14:27Z:
failed 3 rounds in a row (causes: RoadmapRunError, RoadmapRunError, RoadmapRunError). The 3 rounds came in 9 seconds.
A 404 on the newest release also stops the check of older releases. The line at 2026-11-04T14:07:33Z names v0.55.3, v0.55.2, and v0.55.2 was 20 minutes old. live_release (src/devops_cli/roadmap/release_roll.py:47) walks newest first, and _digest raises at the first 404. _live_pass catches the error (src/devops_cli/roadmap/release_comments.py:177) and returns each waiting tag, and comment_releases raises RoadmapRunError (line 153).
A caller cannot tell a 404: tag_digest (src/devops_cli/docker/registry.py:79) raises a plain RegistryReadError for each status.
The image build takes about 6 minutes. In release run 41861187135 of v0.55.4, the release was published at 2026-11-04T15:46:32Z, Build & Publish Service Image ended at 15:52:12Z, and Runner Image ended at 15:52:36Z.
Expected
- A 404 on a tag of a release newer than a set age means "not yet". The row skips that release in this round, checks the older releases, and tries again in a later round, with no failure.
- A 404 on an older release stays a failure. Each other read error stays a failure.
tag_digestraises a distinct error for a missing tag, for example a subclass ofRegistryReadError, so thatsrc/devops_cli/argo/image_pins.pykeeps its present handling.- The age limit is above the image build of about 6 minutes plus the queue time of the release workflow. The plan states the number.
Acceptance criteria
- A test: a 404 on a release newer than the limit raises nothing, and the row reports no unchecked tag.
- A test: a 404 on a release older than the limit raises
RoadmapRunError. - A test: a registry status other than 404 raises
RoadmapRunError, also for a new release. - A test: a 404 on a new release leaves the older releases of the window checked in the same round, and one of them can get its
Live sincecomment. - A test: a 404 on the
runnertag of a new release, when theservicetag exists, is also "not yet". - A test:
src/devops_cli/argo/image_pins.pystill catches a missing tag asRegistryReadError. - A test: 3 rounds in a row with a 404 on a new release leave
FailureLedger.suspendedfalse.
Existing tool considered
tag_digest in src/devops_cli/docker/registry.py, and its RegistryReadError. The change adds no library.
Related
Proposed design
Problem statement
The release_comments row reads the image digest of each release in its window. A new release has no image until its build ends, so the registry answers HTTP 404. The row counts that normal state as a failed round, and it suspends after 3 such rounds. A 404 on the newest release also stops the check of older releases in the same round, so their Live since comments come late.
Acceptance criteria
Requirement: Missing tag of a new release is not yet
The release row SHALL treat an HTTP 404 for a tag of a release younger than the age limit as not yet built, with no failure.
Scenario: A 404 on a release younger than the limit
- WHEN A round reads the
servicetag of a release that is 5 minutes old and the registry answers HTTP 404. - THEN
live_releaseraises nothing, andcomment_releasesreports no unchecked tag for the release.
Requirement: Missing tag of an old release fails
The release row SHALL raise RoadmapRunError for an HTTP 404 on a tag of a release at or past the age limit.
Scenario: A 404 on a release at the limit
- WHEN A round reads the
servicetag of a release that is 20 minutes old and the registry answers HTTP 404. - THEN
live_releaseraises the missing-tag error, andcomment_releasesraisesRoadmapRunError.
Requirement: Other read errors fail on a new release
The release row SHALL raise RoadmapRunError for a registry status other than 404, also on a release younger than the limit.
Scenario: HTTP 500 on a new release
- WHEN A round reads the
servicetag of a release that is 5 minutes old and the registry answers HTTP 500. - THEN
tag_digestraisesRegistryReadError, andcomment_releasesraisesRoadmapRunError.
Requirement: A skipped release does not stop older releases
The row SHALL continue the newest-first walk past a release whose tag is missing and younger than the limit.
Scenario: New release missing, older release live
- WHEN A round finds a 404 on the newest release, which is 5 minutes old, and the older release in the window has both digests.
- THEN
live_releasereturns the older release, and the row posts itsLive sincecomment in the same round.
Requirement: The runner tag follows the same rule
The row SHALL treat a missing runner tag of a release younger than the limit as not yet, when its service tag has a digest.
Scenario: A 404 on the runner tag of a new release
- WHEN A round reads the
runnertag of a release that is 5 minutes old and the registry answers HTTP 404, and theservicetag has a digest. - THEN
live_releaseraises nothing, and the release waits for a later round.
Requirement: The pin check still catches a missing tag
check_pins in src/devops_cli/argo/image_pins.py MUST still catch a missing tag as RegistryReadError.
Scenario: A pin whose tag is absent
- WHEN
check_pinsreads a pin whose tag the registry does not give. - THEN The check returns a
PinCheckwith its error text, and no exception escapes.
Requirement: A missing tag suspends no round
Three rounds in a row with a 404 on a new release MUST leave FailureLedger.suspended false.
Scenario: Three rounds with the same 404
- WHEN The status lane runs the release row 3 times while the newest release is younger than the limit and its tag gives 404.
- THEN Each round ends without a failure, and
FailureLedger.suspendedstays false.
Requirement: A distinct error names the missing tag
tag_digest SHALL raise a distinct error that subclasses RegistryReadError on HTTP 404, and RegistryReadError on any other status.
Scenario: The registry answers 404, then 500
- WHEN
tag_digestreads a tag and the registry answers HTTP 404, then HTTP 500. - THEN The first call raises the missing-tag subclass, and the second raises
RegistryReadErrorbut not the subclass.
Requirement: The new error is exported and documented
The project SHALL export the missing-tag error from src/devops_cli/exceptions/__init__.py and list it in docs/ERRORS.md with its own code.
Scenario: The error table holds the new error
- WHEN A test reads
docs/ERRORS.mdand imports the error fromdevops_cli.exceptions. - THEN The table holds a row that names the missing-tag error with a code, and the import succeeds.
Existing Tool Considered
No alternatives check has run. No library covers the need: the change extends the existing tag_digest and RegistryReadError in src/devops_cli/docker/registry.py with one subclass, a 404 branch and an age guard. That code is about 150 lines with its tests, and it costs about 10,000 tokens to build, keep and fix, and about one day.
Key questions
- Which age limit marks a release as too new, and where does the constant live?: 20 minutes, as
RELEASE_ROLL_MISSING_TAG_GRACE_MINUTES = 20insrc/devops_cli/config/constants.py. A release younger than 20 minutes is new; at or past 20 minutes, a 404 is a failure. The runner image build took 6 min 4 s in run 41861187135, and the row runs every 11 minutes, so 20 minutes covers the queue and one retry round. The age isnowminus the release's published time. (best practice) [sources: src/devops_cli/config/constants.py, src/devops_cli/config/defaults.py, openspec/changes/archive/2026-11-03-2917-a-release-comments-the-version-and/tasks.md:36, src/devops_cli/roadmap/release_roll.py:47]- Rejected: 10 minutes. The observed 404s reach 5 min 24 s and the runner build 6 min 4 s, so 10 minutes leaves no room for the queue.
- Rejected: 15 minutes. One slow queue uses it up before the next 11-minute round reads the release again.
- Chosen: 20 minutes. It is above the 6 min 4 s build plus the queue, and it lets one full 11-minute retry round pass before a 404 fails.
- Where does the not-yet rule live, in
live_releaseor in_live_pass?: Inlive_release, inside its newest-first walk. That walk is the only place that knows which release a missing tag belongs to, so it can skip that release and continue to the older ones._live_passkeeps its catch for the other read errors. (best practice) [sources: src/devops_cli/roadmap/release_roll.py:47, src/devops_cli/roadmap/release_comments.py:177, src/devops_cli/roadmap/release_comments.py:153]- Rejected: Guard in
_live_pass. It receives one error for the whole walk, so it cannot tell the new release from an older one and would skip every release. - Chosen: Guard in
live_release. It walks the releases newest first and holds the age of each one, so it skips only the too-new release.
- Rejected: Guard in
- How does a caller tell a missing tag from another read error?:
tag_digestraises a newRegistryTagNotFoundErrorthat subclassesRegistryReadError, on HTTP 404 only.check_pinskeeps itsexcept RegistryReadError, so it still catches a missing tag. (best practice) [sources: src/devops_cli/docker/registry.py:79, src/devops_cli/argo/image_pins.py, src/devops_cli/exceptions/docker.py, docs/ERRORS.md:91]- Chosen: Subclass of
RegistryReadError. Anexceptclause selects it, and the presentexcept RegistryReadErrorkeeps its behavior. - Rejected: A boolean attribute on
RegistryReadError. A caller must read the attribute, and anexceptclause cannot select it. - Rejected: An unrelated exception.
check_pinsinsrc/devops_cli/argo/image_pins.pywould no longer catch a missing tag.
- Chosen: Subclass of
- Does the not-yet rule cover the
runnertag as well as theservicetag?: Yes, for both tags.live_releasereads theserviceandrunnerdigests of a release, so a 404 on either tag of a release younger than the limit means not yet. (best practice) [sources: src/devops_cli/roadmap/release_roll.py:56, src/devops_cli/roadmap/release_comments.py:177]- Rejected:
servicetag only. The row needs both digests, so a missingrunnertag would still fail a new release. - Chosen:
serviceandrunnertags. Both digests must exist before a release is live, so both tags get the same age rule.
- Rejected:
- What does the row do with a release it skips?: The row leaves the release out of the unchecked list and out of the failure list, and leaves it not done in the ledger. The next round reads it again, and it gets its
Live sincecomment when both digests exist. (best practice) [sources: src/devops_cli/roadmap/release_comments.py:149, src/devops_cli/roadmap/release_comments.py:161, src/devops_cli/roadmap/release_comments.py:177]- Rejected: Mark the release done. It would never get its
Live sincecomment. - Chosen: Leave it not done and skip it. The ledger holds it for the next round, and the round reports no failure.
- Rejected: Mark the release done. It would never get its
- Does the new error get its own code in
docs/ERRORS.mdand an export?: Yes.docs/ERRORS.mdgives one code to each error class, soRegistryTagNotFoundErrorgets its own row and code, andsrc/devops_cli/exceptions/__init__.pyexports it. (best practice) [sources: docs/ERRORS.md:91, src/devops_cli/exceptions/init.py]- Rejected: Reuse the
RegistryReadErrorcode. The table gives one code to each class, and a shared code hides which error fired. - Chosen: A new code and row. It follows the table's one-row-per-class form and names the missing tag in the error output.
- Rejected: Reuse the
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 4, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.The bug produces 9 false failed rounds and a suspension per day, but the service still runs.It stops false failures and late Live since comments that mislead the owner.It adds a distinct 404 error type, skips new releases in the row, and adds six tests.Both work on the release_comments row of the roadmap service; 2917 adds the feature, the candidate fixes a false failure in it.devops-cli-service commentedon Nov 5, 2026
Status set to Ready at f481be8 (see proposed design in issue body).
devops-cli-service commentedon Nov 6, 2026
Released in v0.67.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.67.1
devops-cli-service commentedon Nov 6, 2026
Live since 2026-11-06 07:37 UTC