Repository navigation
gpu: test texture hashing budgets without pass deadlines - #73
Conversation
simnJS
left a comment
There was a problem hiding this comment.
Reviewed:
- the deadlines are unchanged outside tests;
- the guard restores correctly;
- the test now isolates the byte budget.
The only red check is raw_views_a_submission_in_flight_may_read_stay_until_it_has_run, a known #54 flake outside this diff. I'm rerunning it and will merge once it's green.
|
CI follow-up on exact head 749233d: This is the same descriptor test recorded twice in the original 40-run stress batch and disclosed in issue #54. This PR does not change descriptor/host.rs; fetched main has no newer fix to that file. I have kept the failed run as evidence instead of treating a rerun as a fix. The local fresh full check passed, but remote CI is currently red, so this PR is not merge-ready. The descriptor-owner follow-up in #54 still applies. AI assistance: Codex inspected the Actions failure and compared it with the preserved stress results. |
What and why
The texture hashing-budget regression also depended on the pass's 8 ms upload deadline. On a loaded machine, staging its 4 MiB texture can consume that deadline before the small texture is visited, so an assertion about byte-budget scheduling fails for elapsed-time reasons.
Route the two pass deadline checks through a helper with a test-only thread-local override. The hashing-budget test disables elapsed-time cutoffs on its own thread while retaining the byte budget. An RAII guard restores the previous setting, including nested use. Production deadlines and thresholds remain unchanged.
Part of: #54. Other flaky tests tracked there remain outside this change.
Depends on: none.
Area
crates/xtp-gpu/src/draw.rs: pass deadline checks, hashing-budget regression, and guard-restoration test.Tests
cargo xtask pr-checkpasses on my machine.The guard-restoration test uses an already-expired instant, without sleeps, to check normal, nested-guard, and restored behavior.
On the original patch before its unchanged rebase, both target tests passed standalone and in all 40 parallel WARP library runs. Complete suites passed in 27 of those runs; 13 runs failed in other tests (15 failures total). Those failures are retained in the local evidence and are not claimed fixed by this PR.
Fresh validation of rebased head
749233donfafebe9: strict serial WARP diagnostics passed 633 unit and 3 integration tests; the normal-thread WARP six-stage PR check passed. The first full-check process was interrupted during compilation without an exit marker; the complete resumed check passed with no source edits. Sources were touched and compilation paths, new test names, and binary freshness were checked. The unchanged patch is confirmed by range-diff. No title or hardware run.Provenance
AI assistance: Codex diagnosed the timing dependence, implemented and reviewed the scoped test override, and ran the synthetic checks. No external code was copied or translated. I answer for every line.
Checklist
<area>: <summary>; one topic; under 400 changed lines.