Repository navigation
Conversation
Owner
Author
|
Upstream PR xcl-dev#975 was closed or merged. |
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.
Fixes an empty-section bypass in
scripts/pr_check.pywhere a blank**Tested**or**Not tested**heading followed by another template heading (such as**Regression run**or**Not tested**) matched\s*\n\s*\Sagainst the next heading and passed as non-empty, and expandsscripts/test_pr_check.pyto cover all check branches ofpr_check.py.What is in it
scripts/pr_check.py: extract each required section's body up to the next template heading (What is in it,Tested,Regression run,Not tested,AI use) or end of text before checking.strip(), so empty sections followed by another template heading are rejected while bold subheadings (e.g.**Machine:**) inside a section remain accepted.scripts/test_pr_check.py: add 7 unit tests (PrCheckRulesTests) covering empty/adjacent required sections, bold subheadings, banned open-weight models vs frontier models, game files / binary /tests/data/1 MiB limit / removed-file skips, validxcl-smoke v1pairs at exact thresholds (0.8×frames,1.25×peak commit), uncommitted/non-main smoke blocks,device removals/crashes/killed/ title-or-seconds mismatches, and frame-drop / commit-growth rejections.Tested
3.14.6.python -m unittest discover -s scripts -v: 10 passed, 0 failed (before thepr_check.pyfix,test_missing_or_empty_sections_are_reportedfailed with2 != 0).ivall/xcl: 0 diffs vs the previous regex.Regression run
Not needed: this PR changes only
scripts/pr_check.pyandscripts/test_pr_check.pyand does not touchcrates/xcl/src/.Not tested
pull_request_targetworkflow itself (which runsmain's copy ofscripts/pr_check.pyuntil merged) orpr_check.py's--repoGitHub API CLI paths.AI use
gemini-4-neon) wrote the fix, unit tests, and this description, and ran the Python test suite and merged-PR corpus check above.Mirror of xcl-dev#975 (auto-synced, do not edit).