Scripts: require peak commit measurements for smoke comparisons #1103
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!1103
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1103"
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?
@anakatt on GitHub · 2026-11-24 11:35 UTC · original
anakatt:scripts/require-smoke-memory-metrics→main· +50 −4 · 4 files · 1 commits · openI fixed the PR checker accepting a memory comparison when either smoke run has no usable
peak commit. Missing, empty andn/ameasurements parsed asNone, so the 125% memory-growth check was skipped.What is in it
CONTRIBUTING.md.Tested
macOS Darwin 24.6.0, arm64; Python 3.15.2. No GPU used.
Before the fix,
python3 -B -m unittest discover -s scripts -p test_pr_check_memory.py -vexposed 8 accepted invalid subcases.After the fix,
python3 -B -m unittest discover -s scripts -p 'test_pr_check*.py' -v: 11 passed, 0 failed, 0 skipped.Windows 11 Pro ARM64 10.0.26100.1742 in UTM, Python 3.14.0 ARM64; no GPU used. Exact source archive
49b30dc1f2333361a94ff739912b2d6a78dbe04c:C:\xcl-tests\python\python.exe -B -m unittest discover -s scripts -p "test_pr_check*.py" -v: 11 passed, 0 failed, 0 skipped.Not tested
AI use
openai-codex/gpt-6-astra) to identify the gap, write the checker change and regressions, run the Python tests, and prepare this description.@futurepro62 on GitHub · 2026-11-24 14:15 UTC · original
Tested exact head
49b30dc, script tests only, since this PR has no test report yet.Tested
python -m pytest scripts/test_pr_check.py scripts/test_pr_check_memory.pyat the head: 9 passed and 2 passed.930e8b4):test_pr_check_memory.py: 8 subtests oftest_both_runs_need_a_memory_measurementfail (both sides, peakNone,'',n/a MB,unknown);test_pr_check.pystill passes. So the new test catches the problem the PR fixes.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 08:21 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.@RavenCurseBurg on GitHub · 2026-11-26 03:27 UTC · original · edited 2026-11-26 07:45 UTC
Confirmed the reported merge conflict at
49b30dc1f2333361a94ff739912b2d6a78dbe04cagainst mainb49be1836844. Onlyscripts/test_pr_check.pyconflicted. Rebased commit keeps the PR’s memory check and the newer frame and error counters in main’s shared fixture.git merge-tree --write-tree --name-onlycompleted cleanly for the rebase against that main.I ran
python -B scripts/pr_check.py --local --head <sha> --body <body.md> --files <files.tsv>with eight synthetic comparisons per revision. The PR and rebase gave the same result in all eight. With an 800 MB baseline both accepted 999 and 1,000 MB and rejected 1,001 MB. With a 1,200 MB baseline both accepted 1,500 MB and rejected 1,501 MB. When one or both measurements were absent, each named the corresponding missing measurement.The two targeted test methods passed on the author head. On the rebase,
python -B -m unittest discover -s scripts -p "test_*.py"passed all 27 tests, with no failures or skips. Windows build 26100, i7-13700, Python 3.14.3. OpenAI Codex (GPT-6) resolved the conflict and ran the checks. Only synthetic data was used. Retail smoke, GPU tests and the Rust build were outside this run.Follow-up on review feedback
I checked the positive-peak review through
python -B scripts/pr_check.py --local --head <sha> --body <fixture.md> --files <fixture.tsv>with a private Git repository and two matched synthetic runs. The PR head accepted main/PR peak pairs of 0/400, 100/0 and 0/0 MB. The candidate on the exact PR head rejects each and identifies the run with the unusable measurement.I repeated the eight CLI cases on the candidate on the earlier main-based rebase. Both candidates rejected either missing peak, kept 100/125 MB at the limit, rejected 100/126 MB, and accepted 1/1 MB. Python test discovery passed 12 tests on the PR-based candidate and 28 on the main-based one. This verifies the checker on synthetic input only.
Parent of the PR-based candidate:
49b30dc1f2333361a94ff739912b2d6a78dbe04c. OpenAI Codex (GPT-6) prepared the changes and ran the Windows CPU fixtures. No game, Rust workspace build or GPU workload.@luckyteagirl on GitHub · 2026-11-26 05:41 UTC · original · reviewed
Could a matched main run require a positive
peak commitvalue?0 MBpasses theNonecheck and disables the 125% comparison atif pc and mc. With otherwise valid matched 60-second, 100-frame smoke blocks, main0 MB/ PR400 MBcurrently passes without a memory finding. I reproduced this on the exact head, and it also remains after #2219, whose nonzero check covers only the PR side. A baseline-zero fixture and an explicit rejection of that unusable measurement would close the comparison bypass. Synthetic checker run only at49b30dc1f2333361a94ff739912b2d6a78dbe04c; no retail or GPU run. AI-assisted review with Codex.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.