Skip to content

proxy mirror exits 0 when downloads fail #500

Open

Description

@andrew

runMirror in cmd/proxy/main.go prints N failed and lists the errors, then returns normally, so the exit status is 0. A CI step that prewarms the cache with proxy mirror passes even when every download fails, for example on a PyPI PURL that the resolver rejects (#414).

runMirror should exit with status 1 when progress.Failed > 0, so callers can detect a partial mirror from the exit status.

Related: #415, #478, #493

Activity

  1. cestercian commented on Oct 17, 2026

    @cestercian

    I'd like to take this, runMirror will return an error when progress.Failed > 0 so the command exits 1, with a test.

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

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions