Repository navigation
Repo checker: a pixi.lock is no longer offered as checkable, and a lock that needs the index keeps the page usable - #190
Merged
Conversation
…index when the lock needs the index A pixi.lock records only the file pixi picked for each of the lock's platforms, so the offline check needs PyPI lookups the page doesn't make: it was listed as checkable, then failed with wheelgap's API-oriented "set offline=False" error and hid the results section. plan() now marks it not offline, so a checkable lockfile elsewhere is preferred, the picker lists it as (not readable here), and the page says it needs PyPI lookups with the uvx command. A poetry.lock or pdm.lock that leaves a package's files out gets the same answer: check() runs wheelgap's own require_offline() first and reports needs-index, which onResult() handles through needsIndex() and keeps the Targets section and its Lockfile picker on screen.
4 tasks
Contributor
|
Merged, thanks @bfs2021! Deciding "needs PyPI lookups" with If you'd like another in the checker, #186 has no PR yet: letting it check requirements files, pyproject.toml and Pipfile.lock by looking packages up on PyPI from the browser. It's the natural next step after this one. (Review assisted by Claude.) |
patrickballard
added a commit
to kunalkshah1/tracker
that referenced
this pull request
Nov 20, 2026
… wheel rows Co-Authored-By: Claude Fable 5.2 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The repo checker offers a
pixi.lockas checkable and then red-fails with an API-oriented error.OFFLINEinsite/check/driver.pylistedpixi.lockamong the lockfiles the page checks without asking an index, but wheelgap can't read a pixi.lock offline: it records only the file pixi picked for each of the lock's platforms, so wheelgap looks every PyPI package up for its pinned version, andoffline=Truerefuses it (test_pixi_lock_offline_needs_the_indexin wheelgap's own tests pins that contract). Sodriver.check()returned wheelgap'soffline=True: … set offline=Falsemessage as asourceerror,onResult()showed only the red status line and returned before the results section, and with no other checkable lockfile the page was dead-ended. The same could happen with apoetry.lockorpdm.lockthat doesn't list every package's files.Fixes #185
Root cause
OFFLINEindriver.pyclaimed more than the page can deliver:pixi.lockisn't readable offline at all, and the other listed kinds are only readable offline when each package lists its files — a conditiondriver.check()never verified before callingapi._check_lockfile(path, targets, online=False, offline=True), whoserequire_offline()failure it reported askind: "source"(an unreadable lockfile), hiding the results section via the early return inonResult().Fix
site/check/driver.py: tookpixi.lockout ofOFFLINEand reworded the comment above it.plan()now marks a pixi.lock"offline": false, sopickLockfile()prefers a checkable lockfile elsewhere in the repo,runCheck()answersneedsIndex()without fetching, and the picker lists it as "(not readable here)". For the listed kinds,check()now runssources.load_file()andoffline.require_offline([source])first and returns{"kind": "needs-index", "error": …}when the lock would need the index (bad TOML or an unreadable file still returnskind: "source"as before); it doesn't match wheelgap's message text, it calls wheelgap's own hook.site/check/check.mjs:onResult()handlesresult.kind === "needs-index"throughneedsIndex(state.lockfile), which keeps the Targets section and its Lockfile picker on screen so a repo with both a pixi.lock and a uv.lock can switch;noLockfile()no longer promises to read a pixi.lock (and its sentence points pixi projects atuvx wheelgap).Testing
Per the README's test commands (wheelgap 0.13.0, the version
worker.mjspins):uvx --python 3.14 --with "wheelgap==0.13.0" [email protected] tests/test_check_driver.py→2 failed, 9 passed—test_plan_picks_files_like_suggest_targets(pixi.lock was marked"offline": True) and the newtest_check_reports_a_lockfile_that_needs_the_index_for_its_missing_files('source' != 'needs-index').11 passed in 0.19s. The new test coversplan()marking a pixi.lock not offline,check()returningneeds-indexfor a pixi.lock, andcheck()returningneeds-indexfor apoetry.lockwhose package lists no files;test_check_refuses_lockfiles_that_need_an_indexstill pins the bad-TOML →sourcemapping.node --test tests/site/check-logic.test.mjs→ 16 pass (check-logic.mjs is untouched; run as a regression check).Not run: the browser page itself (no browser test harness in this repo —
check.mjs'sonResult()/noLockfile()changes are covered indirectly by the logic tests only), anduv.lock-in-subfolder preference is exercised through the updatedplan()/pickLockfile()behavior rather than a live GitHub fetch.