Skip to content

Dropped platforms: record the day a top package's release drops a platform's wheel, with a page and an Atom feed - #109

Merged
patrickballard merged 3 commits into
wheelgap:mainfrom
sarankumar1325:feat/dropped-platforms
Nov 16, 2026
Merged

patrickballard merged 3 commits into
wheelgap:mainfrom
sarankumar1325:feat/dropped-platforms

Conversation

@sarankumar1325

Copy link
Copy Markdown
Contributor

Closes #75.

Nightly (scripts/update_drops.py previous.json data/coverage.json data/drops.json)

This is a new scan.yml step right after "Record the wheels gained and lost", with continue-on-error like that step. For each package whose current release changed since the previous scan, every target where the previous release had a wheel and the new one is source or missing is a drop: {date, name, from, version, target}.

What a drop is compared with: the previous scan's entry (previous.json) instead of a fresh PyPI lookup. That entry is the release users had until today, so the step needs no network, no extra lookups and no time limit. The one difference from "the immediately preceding release on PyPI": if two releases come out between scans, the comparison is with the last one scanned. That's the one people were actually installing. If you'd rather have the JSON API lookup, I can add it as an optional pass, like scan_way_out.py.

Only real drops count:

  • Upload in progress: a new release with no wheel on any target goes into waiting ({name, from, version, wheels, since}). On a later night it's compared with from, the release before it, not with last night's empty scan, once a wheel shows up. If it still has no wheel after 7 days, it's compared as it is.
  • Yanked: the scan's current release is the newest non-yanked one, so a yank shows up as the current version going back. The newer release's drops are then removed, and it stops waiting. The order check compares the numeric release segment only (stdlib, no packaging), and versions it can't parse are never treated as going back.
  • Cells that were or are unknown, targets only one scan has, and nights that move to a new wheelgap version are skipped, exactly as update_changes.py does. A second scan on the same day doesn't add anything twice. Drops older than 365 days age out.

Publishing (scripts/build_drops.py data/drops.json _site, in the publish job after the campaigns)

  • drops/index.html, "Dropped platforms": the latest 200 releases, newest first. Each row has the date, a link to the package page, from → version, and the dropped targets. It also says how many releases are waiting, and links the feed and JSON. Plain HTML under the usual CSP, no JavaScript.
  • drops.xml: an Atom feed with one entry per release (latest 50), linking the package page. The page has <link rel="alternate"> to it.
  • The page goes into the sitemap. The home page footer links it next to Campaigns.
  • data/drops.json is published with the rest of data/ (the existing cp data/*.json). It's in the scan artifact, and the commit job adds it if it's a regular file. It comes from the same job as changes.json, which is committed the same way, and everything shown from it is HTML/XML-escaped.

Tried on real data: I replayed the committed nightly scans from 10 to 15 Nov through update_drops.py.

  • 10→11 Nov found one real drop: faiss-cpu 1.15.1 → 1.16.0 on macos-arm64 (3.13/3.14/3.15). 1.16.0's arm64 wheels are macosx_15_0 where 1.15.1's were macosx_14_0, which I checked on PyPI.
  • The 12→13 night was skipped (wheelgap 0.7.0 → 0.9.0). The other nights had no drops.

The publish steps on today's data build the page, the feed and the sitemap entry.

Tests (tests/test_drops.py, 20):

  • the comparison: drop, no change, a bumped release with the same gaps, a newly added target;
  • unknown cells and removed targets;
  • upload in progress: it waits, is then compared with the release before; one that completes with everything isn't a drop; one that never gets a wheel counts after the wait;
  • a yanked release is removed from drops and from waiting;
  • a wheelgap change or no previous scan records nothing;
  • the same day twice; the one-year cutoff; newest-first order; went_back cases;
  • page and feed: escaping, grouping, waiting count, CSP, no script, well-formed Atom with unique ids, sitemap; no file or no drops;
  • the footer link.

The README's API section documents data/drops.json, the page and the feed. scan.yml parses as YAML.

uvx --python 3.14 [email protected]: 403 passed, 1 skipped. The node site tests pass.

Written with an AI coding assistant; I reviewed and tested every change.

sarankumar1325 and others added 3 commits November 16, 2026 10:26
…tform's wheel, with a page and an Atom feed (wheelgap#75)

Signed-off-by: sarankumar1325 <[email protected]>
…other review fixes

- A candidate drop waits in `waiting` from the scan that first saw it and is published only if a
  scan 20 or more hours later still finds the same release without the wheel, so a release caught
  mid-upload (Linux wheels up, Windows/macOS still on their way) is no longer a permanent false drop.
- A release that leaves no wheel on any target of one Python (while other Pythons keep theirs)
  ended support for that Python: its targets aren't listed as dropped platforms.
- Labels are shared between scans only when the whole target definition is equal and, for Pyodide,
  the Pyodide lock is unchanged.
- drops.json records the wheelgap version it waited under; a new version clears `waiting`, and the
  file is written on that night too. Packages that leave the scan stop waiting.
- build_drops takes coverage.json: the Atom id uses the canonical name, and a package links to its
  page only while it's in the scan, otherwise to PyPI. scan.yml warns instead of failing the deploy
  if build_drops fails.
- Tests for partial uploads, the hold, Python support ending, target and Pyodide lock changes,
  wheel <-> bundled, packages entering and leaving the top N, a new Python label, and wheelgap bumps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…later

A wheel uploaded more than the 20-hour hold after the release (a slow job, a
manual upload days later) left the drop on the page and in the feed for a
year. Each night, drop entries for tonight's version whose target now has a
wheel are removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@patrickballard
patrickballard merged commit ab71e5c into wheelgap:main Nov 16, 2026
1 check passed
@patrickballard

Copy link
Copy Markdown
Contributor

Merged, thanks @sarankumar1325! The tracker now notices the day a top package's release drops a platform's wheels, with a page and an Atom feed people can subscribe to. That was the high-impact #75, and it turns the tracker from a snapshot into something that watches.

From review we made it hard to publish a false drop:

  • every candidate is held about 20 hours before it's published, so a release still uploading its wheels isn't flagged;
  • a drop is withdrawn if the wheel turns up later;
  • a release ending support for a whole Python isn't counted as dropped platforms;
  • a platform is compared only when its definition (and Pyodide lock) is unchanged;
  • the waiting list resets on a wheelgap upgrade;
  • the feed links to PyPI for packages that leave the scan.

(Reply assisted by Claude.)

@patrickballard

Copy link
Copy Markdown
Contributor

Thanks, @sarankumar1325! This looks good overall, and replaying the real nightly scans to find the faiss-cpu macOS arm64 drop is a great check. It changes .github/workflows/scan.yml and scripts/, so Patrick will review and merge it himself.

(Review assisted by Claude.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dropped platforms: notice the day a top package's release drops a platform's wheels, with a feed

2 participants