Skip to content

fix(roadmap): a release image not yet pushed fails no round #3507

Closed

Description

@dan-petty

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_digest raises a distinct error for a missing tag, for example a subclass of RegistryReadError, so that src/devops_cli/argo/image_pins.py keeps 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 since comment.
  • A test: a 404 on the runner tag of a new release, when the service tag exists, is also "not yet".
  • A test: src/devops_cli/argo/image_pins.py still catches a missing tag as RegistryReadError.
  • A test: 3 rounds in a row with a 404 on a new release leave FailureLedger.suspended false.

Existing tool considered

tag_digest in src/devops_cli/docker/registry.py, and its RegistryReadError. The change adds no library.

Related

Related: #2754, #2610

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 service tag of a release that is 5 minutes old and the registry answers HTTP 404.
  • THEN live_release raises nothing, and comment_releases reports 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 service tag of a release that is 20 minutes old and the registry answers HTTP 404.
  • THEN live_release raises the missing-tag error, and comment_releases raises RoadmapRunError.

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 service tag of a release that is 5 minutes old and the registry answers HTTP 500.
  • THEN tag_digest raises RegistryReadError, and comment_releases raises RoadmapRunError.

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_release returns the older release, and the row posts its Live since comment 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 runner tag of a release that is 5 minutes old and the registry answers HTTP 404, and the service tag has a digest.
  • THEN live_release raises 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_pins reads a pin whose tag the registry does not give.
  • THEN The check returns a PinCheck with 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.suspended stays 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_digest reads a tag and the registry answers HTTP 404, then HTTP 500.
  • THEN The first call raises the missing-tag subclass, and the second raises RegistryReadError but 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.md and imports the error from devops_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 = 20 in src/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 is now minus 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_release or in _live_pass?: In live_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_pass keeps 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.
  • How does a caller tell a missing tag from another read error?: tag_digest raises a new RegistryTagNotFoundError that subclasses RegistryReadError, on HTTP 404 only. check_pins keeps its except 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. An except clause selects it, and the present except RegistryReadError keeps its behavior.
    • Rejected: A boolean attribute on RegistryReadError. A caller must read the attribute, and an except clause cannot select it.
    • Rejected: An unrelated exception. check_pins in src/devops_cli/argo/image_pins.py would no longer catch a missing tag.
  • Does the not-yet rule cover the runner tag as well as the service tag?: Yes, for both tags. live_release reads the service and runner digests 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: service tag only. The row needs both digests, so a missing runner tag would still fail a new release.
    • Chosen: service and runner tags. Both digests must exist before a release is live, so both tags get the same age rule.
  • 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 since comment 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 since comment.
    • Chosen: Leave it not done and skip it. The ledger holds it for the next round, and the round reports no failure.
  • Does the new error get its own code in docs/ERRORS.md and an export?: Yes. docs/ERRORS.md gives one code to each error class, so RegistryTagNotFoundError gets its own row and code, and src/devops_cli/exceptions/__init__.py exports it. (best practice) [sources: docs/ERRORS.md:91, src/devops_cli/exceptions/init.py]
    • Rejected: Reuse the RegistryReadError code. 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.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 4, 2026
  2. dan-petty commented on Nov 4, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. The bug produces 9 false failed rounds and a suspension per day, but the service still runs.
    • Value: Medium. It stops false failures and late Live since comments that mislead the owner.
    • Effort: Medium. It adds a distinct 404 error type, skips new releases in the row, and adds six tests.
    • Related: feat(roadmap): a release comments the version and the deploy time on each issue it carries #2917, which asks for a different change. Both work on the release_comments row of the roadmap service; 2917 adds the feature, the candidate fixes a false failure in it.
  3. added
    priority/p2-medium
    on Nov 4, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 5, 2026
  5. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at f481be8 (see proposed design in issue body).

  6. added
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 6, 2026
  7. removed
    status/in-review
    on Nov 6, 2026
  8. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor
  9. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-06 07:37 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions