Repository navigation
Conversation
One 60 s run's peak commit is bimodal: the same build of main gave 11,374 to 20,977 MB (xcl-dev#2225), and xcl-dev#2223, a help-text change, came out at 164 % and 55 % of main on two pairs of the same two commits. So one pair cannot carry the 125 % limit: a clean PR fails by chance and a real regression can pass on main's high draw. pr_check now compares the medians of the PR's and main's blocks of the same title and time. With 3 or more runs on each side the 125 % limit holds as before; with fewer, the ratio is printed as a note and only more than 200 % of main's fails, beyond the observed ~1.84x spread. Fixes xcl-dev#2225 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested
Cherry-pickable fix and regression test. The two new subcases failed on the PR head. With the change, both CLI inputs exited 1, the exact-limit inputs kept their expected results, and all eight comparisons matched expectations. Windows 11 build 26100.9711, i7-13700, RTX 4060, Python 3.14.3. These inputs test the checker arithmetic. No retail memory measurements, GPU workload or Rust suite. OpenAI Codex (GPT-6) ran the checks, prepared the patch and wrote the report. Retested after the cherry-pick. At |
An even number of integer-MB samples can produce a half-MB median. Compare the actual medians at both memory thresholds and cover values just above them. Assisted-by: OpenAI Codex (GPT-6) (cherry picked from commit f52fbdb)
|
@RavenCurseBurg thanks, that's a real bug: AI use: Claude Code (Claude Opus 5.5). |
|
Independent Windows check of Tested
Not tested Hosted GitHub Actions, real game smoke data, or the Rust workspace suite. AI use OpenAI Codex (GPT-6.2 Sol) prepared and ran the checks, verified the results, and wrote this report. |
|
Tested current head Tested
Two small notes from checking multi-block edge cases & metadata
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
pr_check.pyrejects a runtime PR when its one smoke run shows more than 125 % of main's peak commit, but one run's peak commit is bimodal: the same release build of main gave 11,374 to 20,977 MB on one machine, and #2223 (a help-text change) came out at 164 % and 55 % of main on two pairs of the same two commits (numbers in #2225). So a clean PR fails by chance, and a regression can pass on main's high draw. This keeps the 125 % rule but applies it to the medians of 3 runs a side, as the issue suggests; with fewer runs the ratio is printed and only more than twice main's fails. Fixes #2225.The 200 % single-pair ceiling is my choice, set above the largest same-build spread in the issue (20,977 / 11,435 = 1.84x) so a doubling still fails without repeats; if you would rather have the single-pair check purely advisory (as suggested in the issue comments), that is a one-constant change (
COMMIT_NOISE).What is in it
scripts/pr_check.py: the peak-commit comparison takes the median of the PR's clean blocks and of main's blocks of the same title and time. With at leastCOMMIT_RUNS = 3on each side the 125 % limit fails the PR as before; with fewer, over 125 % is printed as anote:line (the check passes) and overCOMMIT_NOISE = 2.0times main's still fails.check()takes an optionalnoteslist for that. Crash, device-removal, exit and frames checks are unchanged (they still look at the last PR block and the first matching main block).scripts/test_pr_check.py:PeakCommitTestswith the issue's numbers: one pair inside the spread passes with a note (Shaders: list offline precompile options in CLI help #2223's 11,952 / 19,558 MB), one pair under 125 % passes silently, one pair over 200 % fails, 3 runs a side with medians over 125 % fail, Creaa's run with one low draw among three passes, 3 + 1 runs are judged as one pair, and nopeak commitline compares nothing.CONTRIBUTING.md: the 125 % sentence says how it is applied now.Tested
python -B -m unittest discover -s scripts -p "test_*.py": 32 passed, 0 failed (20 intest_pr_check.py, 7 new). The 7 new tests fail on main'spr_check.py.python scripts/pr_check.py --localon a synthetic body with one pair at 11,952 / 19,558 MB: prints the note with 163 % anddescription ok, exit 0; the same body at 25,000 MB: "commits much more memory than main's", exit 1.cargo build --workspace && cargo test --workspace -- --test-threads=4: 1250 passed, 0 failed, 46 ignoredgpu::recomp::lower,lower_dxilandrecomp::tests(no wave64; somelower_dxilcases "per-lane form: refused"),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),shaders::tests::pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache),test_title_draws_with_a_root_signature_under_the_debug_layeranduploads_start_from_each_subresources_state(no D3D12 debug layer)Regression run
scripts/andCONTRIBUTING.mdonly).Not tested
xcl-smokeruns: this does not touchcrates/xcl/src, and the numbers in the tests are the ones from PR checks: the 125% peak-commit limit is inside the run-to-run spread; one pair can pass or fail on the same build #2225, not runs of mine.smoke.ps1 -Repeat N(printing several blocks in one go) is not part of this; for now 3 blocks a side means runningsmoke.ps13 times.PR checksworkflow on GitHub before this PR.check().AI use
🤖 Generated with Claude Code