Scripts: pr_check refuses smoke blocks without a title, time or frames #1133
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1133
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1133/head"
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?
@emirduran707 on GitHub · 2026-11-24 12:16 UTC · original
emirduran707:pr-check-smoke-fields→main· +38 −2 · 2 files · 1 commits · merged 2026-11-24 15:51 UTCcheck()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
@futurepro62 on GitHub · 2026-11-24 14:15 UTC · original
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