Repository navigation
Scripts: skip memory growth limit when main crashed or aborted early - #1112
heditrigui wants to merge 1 commit into
Conversation
When main crashes, experiences device removals, or fails to reach its end before logging full frames, its reported peak commit represents an incomplete run rather than full working-set memory. A PR that fixes the crash runs the full duration and naturally commits more memory than the aborted baseline, triggering a false-positive rejection. Skip the 125% peak commit ceiling check when main did not exit cleanly (crashes, device removals, non-zero exit, or incomplete frame log). Clean baselines continue to enforce the growth limit.
|
Tested exact head Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
I combined Tested integration accepts that exact marker on a matched main run when the PR shows a positive frame count. A zero-frame pair still fails; the marker on the PR or an unrecognized baseline value still reports an error. Clean baselines continue to enforce the 125% peak-memory ceiling. On Windows 11, Core i7-13700, Python 3.14.3, |
When
mainexperiences crashes, device removals, or terminates before logging frames, its reportedpeak commitrepresents an incomplete run rather than full working-set memory. A PR that fixes the crash runs for the full duration and naturally commits more memory than the prematurely aborted baseline, triggering a false-positive rejection ("the PR's run commits much more memory than main's").What is in it
scripts/pr_check.py: detect whenmainsuffered crashes, device removals, non-zero exit status, or incomplete frame logging (frames shown: none logged). Skip the 125% peak commit ceiling check against crashed baselines.mainran and exited cleanly.scripts/test_pr_check.py: addSmokeComparisonTestscovering clean baseline growth limit enforcement, crashed baseline tolerance, and device removal / incomplete run cases.Tested
python -B -m unittest discover -s scripts -p "test_*.py" -v: 11 passed, 0 failed.Not tested
scripts/pr_check.pyandscripts/test_pr_check.py; no runtime files modified).AI use