Repository navigation
fix: keep unchecked packages out of clean wheel verdicts - #244
Conversation
|
Thanks @fbirds5230, this is a really careful fix: the headline, the card and the tiles all stop claiming a pass now, the "All 1 packages" English is fixed, and the We'd normally push the last bits ourselves, but "Allow edits by maintainers" is off on this branch, so here's what's left before it can go in:
Prompt for your AI assistant (if you use one)Once that's pushed, we'll take another look and merge it. (Review assisted by Claude.) |
|
Thanks @fbirds5230! Your second commit covers everything from the first review: one count of distinct private names, used in the headline, tiles, heading and share line, and the share line now matches the headline. One thing blocks it: main moved today (#241), and the branch now conflicts in We'd push that merge ourselves, but "Allow edits by maintainers" is off on your branch. Could you either tick that box in the PR sidebar, or merge main in yourself? CI will run once it's approved for your first PR here. |
|
Thanks @fbirds5230, the merge is clean: both A final review of the merged head found two small things. "Allow edits by maintainers" is still off, so we can't push them ourselves:
Prompt for your AI assistant (if you use one)Once that's in, we'll take one more look and merge it. (Review assisted by Claude.) |
|
Merged, thanks @fbirds5230! The checker no longer shows a green "all packages have a wheel" when a private index's packages weren't checked, and the headline, tiles and share line now agree on the count. One sentence it didn't cover was already on main: the gaps note still says "None: every package installs from a wheel here" in that case. We'll fix that ourselves in a follow-up PR, so nothing more is needed from you. If you'd like another, tracker#239 is open: a |
…when some weren't checked (#245) With a private index's packages left unchecked and no gaps among the rest, the note under the table said "None: every package installs from a wheel here." next to a tile showing "1 not checked". It now says "None among the checked packages; 1 more wasn't checked (its index isn't known to be PyPI)." One helper words that tail for the headline, the share line and the note, so the share line no longer says "their" for one package. The unknown headline drops "checked" from "1 of 3 checked packages couldn't be checked". Follow-up to #244, from its second review. Co-authored-by: Claude Opus 5.5 <[email protected]>
With one public dependency and one unchecked private dependency, the checker still showed a green verdict card, a checkmark in the headline, and “all wheels” on the platform tiles. The separate alert was the only indication that the result was incomplete.
The headline now says how many packages weren't checked, the card stays neutral, and an otherwise passing tile shows
?with the unchecked count. Known wheel gaps and targets outside the lock keep their existing labels. It also fixes “All 1 packages have” to “1 package has”.A shared helper counts distinct private package names for the headline, tiles, “Keep it green” heading, and copied share text. Repeated requirements for one package count once, matching the names in the warning.
Fixes #237.
Tests
wheelgap.gapwheels.python3 scripts/check_notes.pypasses.The regression checks fail on the original code. They cover singular/plural headlines, zero/one/two private packages, the card's
cleanclass, and the count passed by the actual platform renderer. The repeated-requirement case also exercises the copy handler to check that the share text and headline agree.Before and after
For one checked package and one private package, the tested headline changes from
✓ All 1 packages have a wheel for this targetto1 checked package has a wheel for this target; 1 more wasn't checked (its index isn't known to be PyPI). The DOM regression checks confirm that the card loses itscleanclass and that the target renderer shows?/1 not checkedinstead of✓/all wheels.The requested before/after screenshots aren't included: the available browser cannot open the local preview artifacts. The observations above come from the formatter and DOM regression tests, not a visual browser check.