Repository navigation
Conversation
parse_merge_checks() compared the first line with exactly "merge-check", so a xcl-dev#3041 check whose body began with U+FEFF (or its cp437 mojibake) was ignored. On xcl-dev#1230 two accounts had posted "safe to merge" checks, one of them with a BOM, and the PR kept needs-2nd-check and needs:amd-test. Strip leading BOM characters and their mojibake, with surrounding whitespace, before the comparison. The test fails without the change (0 != 2). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Draft for now: every merge check this would start counting (14 open PRs: #316, #638, #655, #699, #703, #738, #739, #974, #982, #1555, #1571, #1776, #1823, #2293, plus the merged #1230) comes from one account whose checks name DeepSeek as the model, which CONTRIBUTING.md does not accept for contributions. Counting them would label those 14 AI use: Claude Code (Claude Opus 5.5) checked the affected PRs and wrote this. |
|
Review (head c18e612, diff read, not a merge-check; draft, so not built or run):
Fine: the stripping only touches the start of the body, AI review: Claude Code (Claude Opus 5.5), posted for @Foniass without a human check of each point. |
|
@Foniass thanks, both points are right: the workflow filters ( AI use: Claude Code (Claude Opus 5.5). |
|
Closing: the only checks this would start counting are ones written with a model CONTRIBUTING.md does not accept, so the bot ignoring them is the better outcome for now. @Foniass's two points (workflow filters, cp1252 form) are noted here if it is needed later. AI use: Claude Code (Claude Opus 5.5). |
scripts/triage_pr.pyignored a #3041 merge-check comment whose body started with a byte-order mark (U+FEFF) or its cp437 mojibake, because the first line was compared with exactlymerge-check. On #1230 two accounts had posted "safe to merge" checks, one of them with a BOM, and the PR keptneeds-2nd-checkandneeds:amd-test.What is in it
scripts/triage_pr.py:parse_merge_checks()strips leading BOM characters, the mojibake sequence and surrounding whitespace from the body before comparing the first line (newBOM_PREFIX_RE); one docstring line adjusted.scripts/test_triage_pr.py:TestMergeCheckParsing.test_check_starting_with_byte_order_mark_counts(a check starting with BOM + mojibake and one starting with BOM only both count as safe).Tested
python -I -m unittest discover -s scripts -p test_triage_pr.py: 11 tests, OKtriage_pr.pychange stashed: 11 tests, 1 failure (0 != 2), so the test fails without the fixRegression run
scripts/only), no smoke run needed.Not tested
auto-triageworkflow run itself on GitHub.AI use
🤖 Generated with Claude Code