Repository navigation
fix(gapwheels): refresh cached list before reporting none fit (resolves #612) - #620
Conversation
…ap#612) Fetch fresh gap wheels once if the cached list yields 0 fills for this run. Fall back to cached list with UTC timestamp note if fetch fails. Shorten gap wheels cache TTL to 1 hour (GAP_WHEELS_MAX_AGE) to avoid CI stampedes while picking up new wheels promptly.
|
Thanks @dianatofficial, this looks good overall: a run the cached list already fills makes no request, a run it doesn't fill fetches once before saying "no wheel fills these gaps", and a failed refresh answers from the cached list with its fetch time, as #612 asked. The four cases in One small thing to flag: the CHANGELOG bullet ends with #612 is a (Review assisted by Claude.) |
…he MCP fix argument A failed refresh of a cached gap wheel list that fills nothing is a run that couldn't ask the index, so its note is printed even with -q, like the unreadable-list note. docs/output.md and AGENTS.md still said the list is kept for 24 hours; the CHANGELOG bullet carries the PR number; gapwheels.look_up had no caller left. Tests: --online fetches every time and never answers from the cached list, and the MCP fix argument gets the refresh, the fallback note and the no-request path. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
Thanks @dianatofficial! This does what #612 asks: a cached list that fills nothing is read again before wheelgap says nothing fits, a list that fills the gap makes no request, and the fallback note gives the cached list's time. Adding to the earlier review, we've made these changes so it can go in:
It'll merge once a final review passes. (Review assisted by Claude.) |
|
Merged, thanks @dianatofficial! If you would like another, tracker#205 is open and unclaimed: the repo checker ends in "No packages were checked" for a (Reply assisted by Claude.) |
…ched wheelgap#620 removed gapwheels.look_up() and gave the cached gap wheel list a one-hour life. The hint now reads the cached list through look_up_cached(), which never fetches, so cached_list() is gone. Tests count fetches with the gap_wheels fixture and also cover: an expired or corrupt cached list (the plain line again), several filled cells, and no hint from a cached list with -q, --json, --offline, --index-url, a mirror, --no-binary or a private package. docs/output.md says the list is kept for an hour and that no line is not a statement that nothing fits. Co-Authored-By: Claude Fable 5.2 <[email protected]>
CHANGELOG keeps both bullets. main's new check_lockfile test for a stale gap wheel list (wheelgap#620) read the note as the command line words it; through the MCP tool it now starts with 'the fix argument'. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Resolves #612
Summary
When --fix\ was used with a cached gap wheel list, if new wheels were published to the gap wheel index recently, wheelgap could falsely report:
\
wheelgap: note: --fix: no wheel on the gap wheel index fills these gaps
\
even though the index does contain wheels for those gaps.
This PR implements the requested two-phase lookup and dedicated cache TTL:
\wheelgap: note: --fix: no wheel on the gap wheel list fetched at HH:MM UTC fills these gaps; the list couldn't be refreshed\