Skip to content

ci: retry the image pull of the release verify job #7950

Done

Description

@dan-petty

Problem Description

The release v0.265.0 is a draft since 2026-11-30 21:05 UTC. The step Pull the Image by Digest of the job Runner Image / Verify failed, and nothing ran it again. The release holds the two fixes for the identity halts of the roadmap Service (#7938 for #7925, #7940 for #7911). The deployed release v0.264.1 holds neither fix, so the Service can halt again for each of the two causes.

Reproduction Steps

  1. Open the run of the workflow Release for commit d766fbf59: https://github.com/dan-petty/devops-cli/actions/runs/46511746985
  2. Read the log of the job Runner Image / Verify.

Expected vs Actual Behavior

Expected: one network error in a pull from the registry does not stop a release.

Actual: docker pull ran one time. It ended with failed to copy: read tcp ...: read: connection reset by peer and exit code 1. The jobs Runner Image / Attest & Tag and Upload Release Assets did not run.

Environment Diagnostics

GitHub-hosted runner, run attempt 1, 2026-11-30 21:01 UTC.

Change

  • Now: a person runs the failed jobs of the run again.
  • Then: the step Pull the Image by Digest (.github/workflows/release-image.yml) tries the pull again after a network error, with a limit on the number of tries.

Acceptance criteria

  • The release v0.265.0, or a later release, is published and holds the two fixes.
  • A failed pull of the verify job runs again before the job fails.

Source

Source: dan-petty/devtools#147

Proposed design

Problem statement

The release v0.265.0 is a draft. The Pull the Image by Digest step of the Runner Image / Verify job failed once with a TCP connection reset. The release holds the fixes for #7925 and #7911. The deployed release v0.264.1 holds neither fix. The change adds a bounded retry to the pull step. One network error will not stop the release. A person must re-run the failed job or wait for a later release to publish the fixes.

Acceptance criteria

Requirement: Bounded retry of the verify pull

The Verify pull step SHALL retry a failed docker pull up to three times.

Scenario: Workflow validation

  • WHEN uv run devops ci --check --only actionlint,zizmor runs on the changed workflow.
  • THEN The command exits 0 and reports no error for .github/workflows/release-image.yml.

Requirement: Pin the retry action

The workflow MUST pin the retry action to a full commit SHA.

Scenario: Action pin check

  • WHEN uv run devops ci --check --only actionlint,zizmor runs.
  • THEN The command exits 0 and zizmor reports no unpinned action.

Requirement: One network error does not stop the release

The Verify job SHALL run the pull again after one failed pull attempt.

Scenario: Transient network error

  • WHEN A release run has a transient network error on the first pull, and a person inspects it with uv run devops gh run view <run-id> --log.
  • THEN The log shows a second pull attempt and the Verify job continues.

Requirement: Retry limit on a persistent failure

The pull step SHALL stop after three failed attempts and SHALL fail the Verify job.

Scenario: Persistent pull failure

  • WHEN A person inspects a release run with a persistent pull failure by uv run devops gh run view <run-id> --log.
  • THEN The log shows three pull attempts, the Verify job fails, and Attest & Tag does not run.

Requirement: Pending a person after the merge

The release SHALL be published and SHALL hold the fixes for #7925 and #7911.

Scenario: Release publication

Existing Tool Considered

No alternatives check has run. The open, maintained nick-fields/retry GitHub Action covers the bounded retry of the docker pull. It lacks detection of a network error alone: it retries any failed attempt up to max_attempts. The proposal pins the action to a full commit SHA, sets retry_on to error, max_attempts to 3, and retry_wait_seconds to 10.

Key questions

  • Which retry mechanism should the verify job use for the image pull?: Use the open, maintained nick-fields/retry GitHub Action. Pin the action to a full commit SHA. Set retry_on to error, max_attempts to 3, and retry_wait_seconds to 10. (best practice) [sources: .github/workflows/release-image.yml, AGENTS.md]
    • Chosen: nick-fields/retry action. It is an open, maintained action that wraps the pull command. The project keeps no custom retry code.
    • Rejected: Inline bash retry loop. It builds and keeps custom retry code. AGENTS.md rule 3 prefers an open tool.
    • Rejected: Docker daemon max-download-attempts. It is a daemon setting, not a per-step limit in this workflow.
  • What retry limit and delay should the pull step use?: Use three attempts and a 10-second wait between attempts. The Verify job has a 15-minute timeout. This limit leaves time for the smoke checks and the scan. (best practice) [sources: .github/workflows/release-image.yml]
    • Chosen: 3 attempts with 10 seconds. It covers a short network reset and stays within the 15-minute job timeout.
    • Rejected: 2 attempts with 5 seconds. It gives only one retry. A short registry outage may still stop the job.
    • Rejected: 5 attempts with 30 seconds. It can add two minutes and risks the 15-minute job timeout.
  • Should the retry apply only to network errors?: The retry action retries any failed attempt up to the limit. It cannot identify a network error alone. The three-attempt limit keeps the cost of a permanent failure low. (best practice) [sources: .github/workflows/release-image.yml]
    • Chosen: Retry any failed attempt. The action gives a bounded retry with no custom error parsing.
    • Rejected: Retry only network errors. The action has no network-error filter. Custom parsing adds code that the project must keep.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/infra
    source/agent
    status/new
    effort/low
    on Nov 30, 2026
  2. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor
    • Priority: A CI job failure blocks the release of two Service fixes, matching the rule for CI failure. The failed run 46511746985 does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 with the label priority/p0-critical.
    • Related: fix(ci): retry the GitHub release downloads #4223, which asks for a different change. Both add retry to a CI step that fails on a transient network error, but #4223 targets promtool/trivy/gh downloads while this targets the docker pull in release-image.yml.
  3. added
    value/high
    priority/p1-high
    on Nov 30, 2026
  4. added
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 30, 2026
  5. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor

    Agent note, 2026-11-30 UTC: attempt 2 of the run 46511746985 passed, and v0.265.0 was published at 21:49:22. The first acceptance criterion holds. The second criterion stays open: the step Pull the Image by Digest still pulls one time.

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

    @devops-cli-service
    Contributor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  8. removed
    status/in-review
    owner/agent
    on Nov 30, 2026
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/lowpriority/p1-highsource/agenttype/infravalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions