Repository navigation
Conversation
Creaa
force-pushed
the
scripts/pr-check-same-gpu
branch
from
November 25, 2026 10:58
663d310 to
7a5b2a2
Compare
Member
|
Code review on
|
…line (xcl-dev#2226) The PR's own smoke block already had to be free of "(uncommitted changes)", but a main block with local changes counted as main. When several main blocks had the PR's title and time, the first pasted one was the baseline, so an older, more favourable run could be put first. - A main block whose commit line says "(uncommitted changes)" is not a baseline; when it is the only one, the check says to rerun on a clean main. - With the commit distance known (`main_behind`: git rev-list locally, compare/...main ahead_by on GitHub), the baseline is the matching block of the newest main commit; without it, the first block as before. - How many commits behind main each main block is gets printed, not judged: the cut-off for an old baseline is the maintainer's call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
) The PR's smoke block was matched with a main block on title and time only; the gpu line was neither required nor compared, so a PR run on one GPU could be held against main on another and the 80 % frames and 125 % commit limits said nothing. smoke.ps1 already writes the gpu line, so blocks it made pass as before. - `gpu` joins the lines a block must have. - The baseline is a main block with the PR's title, time and GPU (case and runs of whitespace do not count); when main blocks of that title and time exist only on other GPUs the check says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Creaa
force-pushed
the
scripts/pr-check-same-gpu
branch
from
November 25, 2026 13:53
7a5b2a2 to
5d1b0a0
Compare
|
Verified
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #2230; only the top commit (
5d1b0a0) belongs here.pr_check.pymatched the PR'sxcl-smokeblock with a main block ontitleandsecondsonly. Thegpu:line was neither required nor compared, so a PR run on one GPU could be held against main on another, and the 80 % frames and 125 % peak-commit limits then compare two machines. Fixes the GPU part of #2232; recording the driver and debug/release in the block needssmoke.ps1to write them and is left for a follow-up.What is in it
scripts/pr_check.py:gpujoinsSMOKE_FIELDS(a block without it is incomplete, as withouttitle); the baseline is a main block with the PR's title, time and GPU (compared without case and extra whitespace, as PR checks: the smoke comparison accepts two runs from different GPUs, drivers or build profiles #2232 suggests); when main blocks of that title and time exist only on other GPUs, the check says "the main and PR regression runs are not on the same GPU (… against …): run both on one machine".smoke.ps1already writesgpu:, so blocks it made are unaffected.scripts/test_pr_check.py:test_runs_on_different_gpus_are_not_compared(main only on another GPU is refused even when the PR's numbers would pass against it; with main blocks on both GPUs the one on the PR's GPU is used; the same name in other case or spacing matches; a block withoutgpu:is incomplete); the existing fixtures get agpu:line andtest_blocks_with_only_commit_lines_failchecks for it too.Tested
python -m unittest discover -s scripts -p "test_pr_check.py": 16 tests, OK. Withpr_check.pyfrom Scripts: pr_check takes the newest clean main smoke block as the baseline (#2226) #2230's head the GPU test and the extended field test fail; without the case/whitespace step only the GPU test fails.Regression run
scripts/changes, not the runtime.Not tested
driver:,cpu:,windows:andbuild:lines in the block (needssmoke.ps1), comparing driver and build, and an explicit way to mark an intended GPU mismatch.PR_SMOKE_FIELDSfrom PR checks: the PR's smoke block must show how its run ended (#2213) #2219 is not on main yet; whichever lands second addsgputo it.gpu:line would now be asked for it; blocks fromsmoke.ps1have it.AI use
🤖 Generated with Claude Code