Skip to content

pip cross-check: stop early once errors pass 5%, and don't publish when the scan was cancelled #51

Closed

Description

@patrickballard

The nightly pip cross-check (#48) refuses to write agreement.json when more than 5% of its pip calls fail, but it only finds out at the end. When PyPI is unreachable each pip call takes about 9 s, so 800 checks run into the 15-minute step timeout instead of stopping cleanly.

Separately, the publish job's new if only excludes failure, so a scan that ends cancelled (timeout, or displaced from its concurrency group) still republishes main.

What to do

  • scripts/check_pip.py: count errors as results come in and stop submitting new checks once errors pass 5% of the planned total (or of a minimum sample, e.g. after 40 attempts). Exit 1 without writing, as today.
  • .github/workflows/scan.yml: make publish require needs.scan.result to be success or skipped, e.g. contains(fromJSON('["success","skipped"]'), needs.scan.result).
  • Tests for the early stop with a fake run_pip.

Activity

  1. added
    help wanted
    on Nov 13, 2026
  2. added a commit that references this issue on Nov 17, 2026
    ee2a851
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

    help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions