Scripts: skip memory growth limit when main crashed or aborted early #1103
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by heditrigui on 2026-11-24T11:45:33Z.
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
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:15:46Z.
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
upstream-sync referenced this pull request2026-11-25 07:04:28 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T08:16:06Z.
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!
Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-26T00:36:05Z.
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.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:40:36Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:50:53Z.
Triage (#1607) – head
003071fNo open or merged PR skips the peak-commit limit for a crashed main run. #2268 rewrites the same comparison in
scripts/pr_check.py(medians of 3 runs, a different problem), so the two will conflict.Problem: this branch predates main's
field_problemscheck (1d83fd12, #1133). On the merged tree a main block withframes shown: none logged (...)already gets "has a non-numericframes shown", so three of the four cases intest_crashed_baseline_skips_memory_growth_limitwill fail, and themf is Nonebranch never matters. Rebase and adjust the test (or that check) accordingly.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.