Scripts: pr_check refuses smoke blocks without a title, time or frames #1124
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1133"
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 emirduran707 on 2026-11-24T12:16:43Z.
check()compares themainand PRxcl-smokeblocks throughnumber(), which returnsNonefor a missing field. The comparisons letNonepass, and the title / seconds match comparesNone == None. So two blocks holding onlyxcl-smoke v1andcommit: <sha>pass every regression check.CONTRIBUTING.md, item 3, asks for "at least 80 % of
main's frames", with blocks "of the same title for the same time". Neither can be checked on such a block.What is in it
scripts/pr_check.py:field_problemsreports a smoke block that lacks atitle,secondsorframes shownline, or has a non-number in one of the last two;mainblock that matches it (on everymainblock when none matches).peak commitis left to #1103.scripts/test_pr_check.py:frames shownis named;two blocks in one fencefixture gets full blocks.Tested
python -I).python -I -m unittest discover -s scripts -p "test_*.py": 11 tests, OK.main'spr_check.pyand these tests: FAILED (failures=2), the two new tests.Not tested
PR checksworkflow itself on a PR with such a block; only the function, locally.AI use
pr_check.py;commitline safe.🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:15:51Z.
Tested exact head
1d83fd1, script tests only, since this PR has no test report yet.Tested
python -m pytest scripts/test_pr_check.pyat the head: 11 passed.930e8b4): 2 failed:test_blocks_with_only_commit_lines_fail,test_non_numeric_frames_shown_fails. So the new test catches the problem the PR fixes.Not tested
AI use
upstream-sync referenced this pull request2026-11-24 19:06:45 +00:00
upstream-sync referenced this pull request2026-11-25 06:04:27 +00:00
upstream-sync referenced this pull request2026-11-25 16:10:51 +00:00