Skip to content

fix(toxgen): Preserve caches on --only and --skip - #8240

Merged
sentrivana merged 1 commit into
masterfrom
ivana/toxgen-preserve-cache-on-partial-run
Nov 11, 2026
Merged

sentrivana merged 1 commit into
masterfrom
ivana/toxgen-preserve-cache-on-partial-run

Conversation

@sentrivana

@sentrivana sentrivana commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Description

QoL improvement to make --only/--skip more useful.

Running populate_tox.py with --only (or --skip) wiped most of the jsonl caches.

At the end of each run, both releases.jsonl and package_dependencies.jsonl are rewritten to contain only entries that were accessed during the run. Skipped integrations are read from the existing tox.ini and never touch their releases.jsonl entries or their free-threading dependency entries, so all of those got pruned.

Now unused entries are only pruned on full runs. Partial runs still sort the files and add newly fetched entries, but don't drop anything. Stale entries for the updated packages stick around until the next full run.

Unused cache entries were pruned at the end of every run. Integrations
skipped via --only/--skip never access their cache entries, so a partial
run wiped most of releases.jsonl and package_dependencies.jsonl. Only
prune on full runs.
@sentrivana
sentrivana marked this pull request as ready for review November 11, 2026 08:58
@sentrivana
sentrivana requested a review from a team as a code owner November 11, 2026 08:58
@sentrivana sentrivana changed the title fix(toxgen): Preserve caches when running with --only or --skip fix(toxgen): Preserve caches on --only and --skip Nov 11, 2026
@sentrivana
sentrivana enabled auto-merge (squash) November 11, 2026 09:04
@github-actions

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ 137444 passed | ⏭️ 7671 skipped | Total: 145115 | Pass Rate: 94.71% | Execution Time: 454m 56s

📊 Comparison with Base Branch

Metric Change
Total Tests —
Passed Tests —
Failed Tests —
Skipped Tests —

✨ Test counts unchanged from base.

All tests are passing successfully.

✅ Patch coverage is 100.00% (no changed executable lines found; target 80%).
Project statement coverage is 90.24% (unchanged from base (843958d) to head (e552fba)).

Coverage diff
@@            Coverage Diff             @@
##        master     #8240       +/-##
==========================================
  Coverage    90.24%    90.24%        —%
==========================================
  Files          203       203         —
  Tracked lines     27114     27114         —
  Branches     10136     10136         —
==========================================
- Hits         24469     24468        -1
- Misses        2645      2646        +1
- Partials      1539      1540        +1

Generated by Coverage Action

@sentrivana
sentrivana merged commit 768abc4 into master Nov 11, 2026
171 checks passed
@sentrivana
sentrivana deleted the ivana/toxgen-preserve-cache-on-partial-run branch November 11, 2026 09:09
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.

2 participants