Skip to content

Retry Go module downloads in every shared validator jobΒ #911

Closed

Description

@devantler

πŸ€– Generated by the Agentic Engineer

Evidence

On 2026-10-28 a KSail dependency pull request (devantler-tech/ksail#8042) failed the shared validator's πŸ—οΈ Build job on a single dropped download from the Go module mirror (stream error … INTERNAL_ERROR from proxy.golang.org), not on its own change. A pull request that changes go.sum misses the exact module cache, so the job downloads modules fresh, and one dropped stream fails it. Recovering costs a rebase and another full CI cycle.

The shared validator already retries this for its vulnerability scan (the bounded dependency pre-download added in v13.2.2), but its build, test, tidy, lint, dead-code and coverage jobs do not. KSail now retries module downloads in its own jobs (devantler-tech/ksail#8349, part of devantler-tech/ksail#8053); this is the remaining shared half.

Audience and problem

Every Go repository that calls the shared validator: a short mirror outage turns a correct pull request red, and scheduled agents cannot rerun failed jobs, so it costs a fresh CI cycle each time.

Smallest useful change

After each job restores its module cache, download any missing modules through one bounded retry with backoff before building, testing or linting, reusing the scanner's existing pre-download.

Acceptance criteria

  • Every shared validator job that resolves modules downloads them through one bounded retry first.
  • A checksum mismatch or a module version that does not exist still fails the job.
  • Each attempt's error stays in the log; only downloads are retried, never the build, test or lint verdict.
  • A regression test covers a transient failure that recovers, an exhausted retry, and a later step's failure that is not retried.

Activity

  1. added theissue type on Nov 12, 2026
  2. moved this to πŸ“₯ Backlog in 🌊 Project Boardon Nov 12, 2026
  3. coderabbitai commented on Nov 12, 2026

    @coderabbitai
    πŸ”— Related PRs

    #746 - fix(govulncheck): retry module downloads before the vulnerability scan [merged]
    #828 - fix(go): reuse compatible module archives for main lint [merged]


    πŸ“ Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    πŸ§ͺ Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    πŸ’¬ Have feedback or questions? Drop into our discord!

  4. added a commit that references this issue on Nov 14, 2026
  5. moved this from πŸ“₯ Backlog to πŸƒπŸ»β€β™‚οΈ In Progress in 🌊 Project Boardon Nov 14, 2026
  6. moved this from πŸƒπŸ»β€β™‚οΈ In Progress to βœ… Done in 🌊 Project Boardon Nov 14, 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

    No labels
    No labels

    Type

    Fields

    Priority

    None yet

    Effort

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions