Scripts: skip memory growth limit when main crashed or aborted early #1112
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1112
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1112"
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?
@heditrigui on GitHub · 2026-11-24 11:45 UTC · original
heditrigui:scripts/smoke-crashed-baseline-memory→main· +51 −1 · 2 files · 1 commits · openWhen
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
@futurepro62 on GitHub · 2026-11-24 14:15 UTC · original
Tested exact head
003071f, script tests only, since this PR has no test report yet.Tested
python -m pytest scripts/test_pr_check.pyat the head: 11 passed, 12 subtests passed.930e8b4): 4 subtests oftest_crashed_baseline_skips_memory_growth_limitfail. So the new test catches the problem the PR fixes.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 08:16 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@RavenCurseBurg on GitHub · 2026-11-26 00:36 UTC · original · edited 2026-11-26 00:43 UTC
I combined
003071f1c9296264ba2343787b29ea67681a8d34with #1496 atd96114c7665879b995a149859ce37bfcd8d0311a. Git merged cleanly, but three recovery subcases failed: the newer field validator rejected the literalnone logged (the run did not reach its end)thatsmoke.ps1emits. The PR block in those cases showed frames.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,
python -B -m unittest discover -s scripts -p "test_*.py"passed 11 tests on #1112, 18 on #1496 and 21 on the candidate. I ran 16 syntheticpr_check.py --local --body BODY --files FILES --head HEADcases on each version (48 executions), checking exit status and diagnostics for crash recovery, zero frames, and the 80% frame and 125% memory boundaries. No retail run or hosted workflow was used. OpenAI Codex (GPT-6) resolved the behavior difference, wrote the regression check and ran the tests.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.