Skip to content

Cross-check the scan against pip, and publish the agreement rate #19

Closed

Description

@patrickballard

The tracker's numbers come from wheelgap reading each release's file list and applying pip's tag rules. That's the right method, but nothing yet checks the answers against pip itself. A published agreement rate ("wheelgap matches pip on 99.8% of 800 checks") would be the strongest reason for anyone to trust the data.

What to do

  • Add scripts/check_pip.py. For a sample of packages (the top 200 by default) and a few targets (say linux-x86_64, linux-aarch64, musl-aarch64 and win-arm64 on Python 3.13), ask pip whether it would install a wheel:

    pip download NAME==VERSION --no-deps --only-binary=:all: --dest TMP \
        --python-version 3.13 --implementation cp --abi cp313 --platform PLATFORM_TAG ...

    A successful download means "wheel"; "no matching distribution" means "not wheel". Pass every platform tag pip should accept for that target (e.g. manylinux_2_36_aarch64 down to manylinux2014_aarch64 for glibc 2.36). wheelgap's targets.py lists them.

  • Compare with the results in coverage.json (wheel against everything else), and write data/agreement.json: the date, the number of checks, how many matched, and every mismatch (name, version, target, wheelgap's answer, pip's).

  • Run it in a new step of scan.yml after the scan. It must never fail the scan: log and move on. Keep the sample small enough to finish in a few minutes.

  • Any mismatch is either a wheelgap bug or a pip quirk worth knowing about. Open a wheelgap issue for each kind you find.

This is a bigger one, so say on the issue if you'd like to talk the approach through first. Changes under .github/ and scripts/ get a closer review.

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

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions