Scripts: accept UTF-8 BOM in PR checker file lists #2720
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!2720
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2720"
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?
@luckyteagirl on GitHub · 2026-11-26 08:20 UTC · original
luckyteagirl:codex/pr-check-files-bom→main· +23 −1 · 2 files · 1 commits · draftOn Windows, a UTF-8 BOM in the file list passed to
scripts/pr_check.py --filesbecomes part of the first path. If that path is a runtime file, the checker misses it and can incorrectly accept a PR description with no required smoke runs. Decode the list with BOM detection.What is in it
scripts/pr_check.py: read the file-list TSV asutf-8-sig, which also accepts ordinary UTF-8.scripts/test_pr_check.py: run the local checker CLI with the same runtime-file row in plain and BOM-marked TSV files and require identical missing-smoke diagnostics.Tested
description ok.python -B -m unittest discover -s scripts -p 'test_pr_check.py': 14 passed, 0 failed, exit 0.python -B -m unittest discover -s scripts -p 'test_*.py': 26 passed, 0 failed, exit 0.git diff HEAD^ HEAD --check: passed.Not tested
AI use
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.