Scripts: require peak commit measurements for smoke comparisons #1094
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by anakatt on 2026-11-24T11:35:40Z.
I 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.Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:15:44Z.
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
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T08:21:55Z.
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-26T03:27:26Z.
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.Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T05:41:29Z.
Review: COMMENTED
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.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:49:33Z.
Triage (#1607) – head
49b30dcNo open or merged PR makes the same change. Main's
field_problems(#1133) requires title, seconds and frames, but notpeak commit. #2268 rewrites the same peak-commit comparison (medians of 3 runs), so the two will conflict incheck().One thing to note in
scripts/pr_check.py:check: a run under Wine reportspeak commit: 0 MB. That counts as numeric and passes the new check, butif pc and mcstill skips the comparison. The new CONTRIBUTING sentence implies the memory comparison then happens, and it does not.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.