Repository navigation
Scripts: require the current smoke baseline - #2406
mokkamokacaffe wants to merge 2 commits into
Conversation
The PR checker treated missing or malformed crash, device-removal, exit, and peak-commit lines as clean values. Require the generated safety fields, parse counters and memory strictly, and accept only a successful 0x0 exit for the PR run.\n\nFixes xcl-dev#2213\n\nAssisted-by: OpenAI Codex (GPT-5)
The description check accepted any ancestor of main, including old or dirty runs, and silently selected the first of several matching baselines. Pass the PR's exact base SHA into the checker, require a clean block from that revision, and reject ambiguous same-title/time baselines.\n\nFixes xcl-dev#2226\n\nAssisted-by: OpenAI Codex (GPT-5)
|
Tested commit Environment
Results
|
|
Tested
These are synthetic local CLI checks. No hosted workflow, retail game, Rust suite or GPU workload ran. OpenAI Codex (GPT-6) ran the checks and prepared the documentation change and report. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Two contributors checked independently and found that #2230 solves the same problem (for #2226) in a different way: #1607, group D117. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table. |
|
Thanks @throny for flagging the overlap, and @RavenCurseBurg for testing both checkers on the same Git history. The case that separates them is a contributor who already has a clean smoke run from one commit behind the PR base. #2230 accepts that baseline and reports its age. #2406 requires a run from the base SHA recorded in the PR event, so the contributor has to rerun it. I’m keeping this as a draft pending one maintainer decision on #2226: should an older clean baseline be accepted with its age visible, or should the check require the recorded PR base? If the former is preferred, I’m happy to close this in favor of #2230. |
Fixes #2226 by requiring a runtime PR’s smoke baseline to come from the base commit recorded in the pull request event. If that base moves, the contributor needs a clean run on the new base for the same title and duration.
What is in it
.github/workflows/pr-check.ymlpassesgithub.event.pull_request.base.shatoscripts/pr_check.pyas--base. The checker can verify the baseline without a GitHub ancestry lookup.82bc450. The branch also contains8968118from Scripts: require complete successful smoke runs #2388, which closed in favor of PR checks: the PR's smoke block must show how its run ended (#2213) #2219. If maintainers select the exact-base rule, only the baseline change needs to be carried forward.Tested
python -I -m unittest discover -s scripts -p "test_*.py" -vreported 30 passed, 0 failed.git diff --checkpassed.82bc4503a6d56f3ef88bc731c22f823d02150880on Windows 11 with Python 3.14.3. All 38 local CLI cases returned the expected status and diagnostic. Against a synthetic baseline of 100 frames and 1,000 MB, 80 frames and 1,250 MB passed. Lowering the count to 79 or raising memory to 1,251 MB failed. The cases also covered stale, dirty, duplicate and mismatched baselines. CLI reportmainon Windows 11 and an RTX 3060 Ti. The parallel library run reported 1,038 passed, 1 failed. The single-threaded rerun reported 1,039 passed, 0 failed. The tester linked the intermittent failure to Test suite: parallel cargo test intermittently dies with 0xc0000005 (hle::d3d12x queue_tests × list_x race) #1978. Merged-tree reportRegression run
A paired retail
xcl-smokerun is exempt under the PR template. This diff changes the description workflow, its Python checker and its tests.Not tested
pull_request_targetrun executing the proposed workflow and checker together.AI use
OpenAI Codex with GPT-5 implemented the baseline check and regression tests and ran the original Linux checks. OpenAI Codex (GPT-6) prepared this description update from the diff and the linked contributor reports.