Skip to content

Repo checker: link tracker page and issue tracker for dead-end fixes (#214) - #231

Merged
patrickballard merged 3 commits into
wheelgap:mainfrom
dianatofficial:feat/repo-checker-fix-dead-end-214
Nov 22, 2026
Merged

patrickballard merged 3 commits into
wheelgap:mainfrom
dianatofficial:feat/repo-checker-fix-dead-end-214

Conversation

@dianatofficial

Copy link
Copy Markdown
Contributor

Resolves #214

Summary

When a dependency has no newer release with a prebuilt wheel (kind: "none") or newer releases would drop wheels on other targets (kind: "loses"), the checker previously showed no newer release has a wheel without actionable guidance.

This PR provides next steps and links for those rows:

  1. Links in the Fix column:
    • coverage and build results linking to the package's tracker page (../p/<name>/) when the tracker covers the package.
    • ask the maintainers linking to the maintainers' issue tracker (with rel="noopener nofollow").
  2. Package Name Links:
    • Links the package name to its tracker page (../p/<name>/) when tracked, alongside a compact PyPI link.
    • Preserves plain text for unlooked-up / private dependencies, and standard PyPI links for packages not tracked.
  3. URL Validation:
    • Validates issue tracker URLs via validIssuesUrl(): requires HTTPS protocol, valid hostname containing a dot, printable ASCII, and no embedded credentials (@, userinfo).
  4. Agent Prompt Integration:
    • When copying the fix prompt for coding agents (fixPrompt()), appends (ask the maintainers: <url>) for dead-end rows where the issue tracker is known.
  5. Cross-Platform Compatibility:
    • Normalizes path root stripping in driver.py (_strip_root) across POSIX and Windows path separators.

Visual Comparison

Testing on fastapi/full-stack-fastapi-template (which encounters a gap on Python 3.14):

Before

Before

After

After


Test Coverage

  • Node.js test suite (tests/site/check-logic.test.mjs, tests/site/check-page.test.mjs):
    • fixLinks picks a row's links under Fix: none, loses, gap wheel, private, and invalid issues URLs
    • renderTable shows the links in the Fix cell and the package-name link for a package the tracker has, and neither for one it doesn't
    • All 38/38 tests passing.
  • Pytest suite (tests/test_check_driver.py, tests/test_check_parity.py):
    • All 86/86 tests passing.
  • Linter:
    • ruff check reports 0 errors.

…heelgap#214)

- Under Fix, offer 'coverage and build results' (linking to ../p/<name>/) and 'ask the maintainers' (linking to the package's issue tracker with rel='noopener nofollow') when a package has no newer wheel (kind 'none') or bumps drop existing wheels ('loses').
- In the package name cell, link directly to ../p/<name>/ when the tracker has the package, placing a small PyPI link beside it. For private/unlooked-up packages, retain plain text; for packages not in the tracker, retain the direct PyPI link.
- Validate maintainer issue tracker URLs with validIssuesUrl() (scheme https:, hostname with dot, printable ASCII, no userinfo/credentials).
- Update fixPrompt() to include '(ask the maintainers: <url>)' for 'none' and 'loses' rows when the issue tracker is known.
- Support both raw builds array and { builds: [...] } object shape in labFor().
- Cross-platform root path stripping in driver.py.
- Comprehensive unit tests in check-logic.test.mjs, check-page.test.mjs, and test_check_driver.py.
@patrickballard

Copy link
Copy Markdown
Contributor

Thanks, @dianatofficial, and quick work on this! Building every link with el() and text nodes keeps the table safe, private and pending rows stay link-free as the issue asked, and the before/after screenshots on a real repo are really helpful.

#214 is labelled help wanted, so Patrick will review and merge this one himself. A few things he'll likely look at:

(Review assisted by Claude.)

patrickballard and others added 2 commits November 22, 2026 11:23
…e, no driver change

validIssuesUrl() now makes exactly the check valid_issues_url() in scripts/build_pages.py makes (that function has no host list, so neither does this): https with a host read from the URL's own text, so https:///issues has none and an empty user@ is refused, without the extra dotted-host rule. fixLinks() takes (row, fix, trackerPkg, gapWheels) only, without guessing the order or the rowLinks/linksFor aliases, and labFor() is back to taking the builds list, with the callers passing it. The _strip_root change in driver.py, unrelated to wheelgap#214, is left out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two conflicts, both from appending: check.mjs's import list is the union (main's inputHint, pickRequestedFile, autoPick, packageCliCommand and privatePyprojectReason with wheelgap#231's fixLinks), and check-page.test.mjs keeps wheelgap#231's renderTable test and main's tests. loadLab(), renderTable(), fixLinks(), validIssuesUrl() and fixPrompt()'s tracker argument merged without conflict; nothing on main reads state.lab as a bare builds list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@patrickballard
patrickballard merged commit a8e8726 into wheelgap:main Nov 22, 2026
1 check passed
patrickballard added a commit to dev-burnern/tracker that referenced this pull request Nov 22, 2026
Resolved as the second review set out. renderVerdict() sets isClean, toggles the card, hides the README badge offer unless the result is clean with no private-index packages, then uses wheelgap#223's verdict ternary (private pyproject, every Python left out, verdictText). renderNext() keeps wheelgap#225's Keep it green condition (r.private empty) with main's badge default from wheelgap#226/wheelgap#229 untouched. The copy-share handler, with the private count that drops the ✓, sits beside main's copy-prompt handler, which passes state.lab (wheelgap#231). Imports are the union, with shareText. Tests: both sides kept; wheelgap#225's renderVerdict/renderNext harness given autoPick and privatePyprojectReason.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@patrickballard

Copy link
Copy Markdown
Contributor

Merged, thanks @dianatofficial! We made the issue-tracker link use exactly the package page's check (valid_issues_url), simplified the links helper, and left out the unrelated driver change.

If you would like another: wheelgap/wheelgap#651 is a docs one (one page listing where wheelgap's answer can differ from pip's and uv's, and why), and nobody has it yet.

(Posted with help from Claude.)

patrickballard added a commit that referenced this pull request Nov 22, 2026
Brings in #231 and #225. The import lists conflicted; #225's badge test now passes privateText to renderVerdict, which calls it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

Repo checker: "no newer release has a wheel" is a dead end; link the package's tracker page and its maintainers' issue tracker

2 participants