Skip to content

[upstream #1112] Scripts: skip memory growth limit when main crashed or aborted early - #47

Closed
ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1112
Closed

ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1112

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 24, 2026

Copy link
Copy Markdown
Owner

When main experiences crashes, device removals, or terminates before logging frames, its reported peak commit represents 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

  • In scripts/pr_check.py: detect when main suffered 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.
  • Retain the 125% growth ceiling when main ran and exited cleanly.
  • In scripts/test_pr_check.py: add SmokeComparisonTests covering clean baseline growth limit enforcement, crashed baseline tolerance, and device removal / incomplete run cases.

Tested

  • Host: Windows 11 Pro, Python 3.12.10
  • python -B -m unittest discover -s scripts -p "test_*.py" -v: 11 passed, 0 failed.
  • Verified against the regression smoke report of PR D3D12.X: match default depth views to MSAA textures xcl-dev/xcl#1087 (which was blocked by this exact failure after fixing an early crash): successfully resolves to 0 problems.
  • Verified that clean baselines with >125% memory consumption still trigger the expected problem message.

Not tested

  • Real retail title smoke runs (this change affects only scripts/pr_check.py and scripts/test_pr_check.py; no runtime files modified).

AI use

  • Antigravity (Gemini 3.8 Flash (High)) investigated the false-positive rejection on crash fixes, implemented the checker update and unit tests, and prepared this PR under author review.

Mirror of xcl-dev#1112 (auto-synced, do not edit).

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.
@ufoptg

ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Upstream PR xcl-dev#1112 was closed or merged.

@ufoptg ufoptg closed this Nov 25, 2026
@ufoptg
ufoptg deleted the upstream-pr/1112 branch November 25, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants