prep: count a request as cached when its stride-table variant is #620
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/620"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-12-01T12:14:26Z.
Two preparations of the same build gave different totals: fresh, 49,469 compiled and 1,193 unsupported; cached, 49,213 cached and 1,452 unsupported. A request refused only for the heap stride is prepared as its variant on the root with the stride table, under the variant's digest, and keeps its refusal markers for the runtime's retry. The first preparation counts it compiled; the next finds only the marker and counts it unsupported.
Of 391 requests marked with the stride reason in that cache, 259 have their variant in the cache and 132 do not, which matches the fresh count.
This keeps the variant's digest beside the markers (
<key>.stride) and counts the request as cached when the variant is present and its checksum matches. Runtime lookups are unchanged, and a cache without the note behaves as before, so existing caches keep today's count until those requests are prepared again.Refs #533.
Tests
tests/test_refusal_reasons.py: fresh against cached preparation of a stride-retried request, and the fallbacks (session lookup, malformed note, damaged variant, missing note). Both new tests fail on main.python tuxbox.py check --no-gpu: 13 passed, 0 failed, 0 not run.Not covered
🤖 Generated with Claude Code