Skip to content

fix(pages): use current status for gap wheel hints - #217

Merged
patrickballard merged 1 commit into
wheelgap:mainfrom
sandeshbagmare:fix/package-gap-wheel-status
Nov 21, 2026
Merged

patrickballard merged 1 commit into
wheelgap:mainfrom
sandeshbagmare:fix/package-gap-wheel-status

Conversation

@sandeshbagmare

Copy link
Copy Markdown
Contributor

Fixes #211.

Package-page hints now use the optional current status.json feed alongside the historical wheel list:

  • Match canonical project name and exact wheel filename before producing package/version/target hints. Only in-index and yanked entries remain; missing and withdrawn entries do not produce hints.
  • Add the requested yanked-release explanation while retaining the exact version pin.
  • Validate schema, row fields, JSON/encoding and size. An unusable status feed warns and preserves the existing historical fallback.
  • Download/pass the feed in the publish workflow and mirror the command in the local-preview documentation.

Without the new argument, output is unchanged. I compared all 5,000 committed package pages without hints and all 5,000 with synthetic legacy hints: 10,000 matching page hashes, covering all 23,283 gap cells in the latter fixture.

Validation

Windows / Python 3.14.8, against base 65362e3c82a27fad13e06760c3b465d0767956f1:

  • Focused package-page tests: 13 passed; the original implementation failed six of the new regression cases.
  • Full prescribed pytest suite: 566 passed, 4 failed, 2 skipped. Pristine base: 559 passed, the same 4 failed, 2 skipped. The failures are existing Windows path-separator assertions in tests/test_bundled.py.
  • Pinned checker suite (wheelgap==0.13.0): 35 passed, 1 failed, 6 skipped, identical on pristine base. The existing failure is the Windows diagnostic-path assertion in test_needs_lists_each_lookup_once_and_leaves_other_errors_to_check; the skips require wheelgap.gapwheels, absent from the pinned release.
  • Required Node tests: 142 passed. Seven JS syntax checks, notes validation and git diff --check passed.

The issue notes that all current wheels are in-index. Withdrawn/yanked behavior is tested with synthetic fixtures, not claimed as a live incident. Linux/hosted CI has not run locally.

AI assistance: OpenAI Codex. No new runtime dependencies or generated site/data files are included.

@patrickballard

Copy link
Copy Markdown
Contributor

Thanks @sandeshbagmare, and welcome! This does what #211 asks: a hint is shown only for a wheel the index serves now (in-index, or yanked with the note about the == pin), matched by project and exact wheel file name. A missing or malformed status.json gives a warning and falls back to the full record, as the issue says.

We read it through and changed nothing: nothing from the file reaches the page, pages without a gap wheel are unchanged, and the tests cover every status and the failure cases. CI is green.

It'll merge once a final review passes.

(Review assisted by Claude.)

@patrickballard
patrickballard merged commit 455b1ce into wheelgap:main Nov 21, 2026
1 check passed
@patrickballard

Copy link
Copy Markdown
Contributor

Merged, thanks @sandeshbagmare, and welcome! Package pages now offer a gap wheel only while the index serves it. The final review ran its own comparison over the two live data files (all 47 wheels match, and today's hints are unchanged) and found nothing to change.

If you would like another, #214 is open and unclaimed: in the repo checker, "no newer release has a wheel" is a dead end and should give a next step.

(Reply 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.

Package pages: take gap wheel hints from status.json, so a withdrawn or left-out wheel isn't offered

2 participants