Scripts: let local PR checks use an upstream main ref #2646
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!2646
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2646"
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 04:57 UTC · original
luckyteagirl:codex/pr-check-local-main-ref→main· +39 −1 · 2 files · 1 commits · openA fork checkout can have a stale
origin/main, which makes the local PR checker reject a retail smoke report from the current upstream main. Use--local --main-ref upstream/mainto check against a fetched upstream branch.What is in it
--main-refto the local checker, withorigin/mainas the default.Tested
python -B -m unittest discover -s scripts -p 'test_*.py' -v: 26 passed, 0 failed, 0 skipped on Windows.exitandpeak commitfields, the combined tree's full Python suite passed 32/32; before the fixture update, the focused test failed with exactly those two missing-field diagnostics. The standalone branch still passed 26/26.git diff --checkpassed.Regression run
Not tested
AI use
@luckyteagirl on GitHub · 2026-11-26 05:20 UTC · original
Thanks for the precise repro. I added both fields to the synthetic smoke block in
00765166and updated the PR description. The focused test reproduced the two missing-field diagnostics on the combined tree before the edit; after the edit, the combined Python suite passed 32/32 and this branch passed 26/26. The new head is in upstream CI now.Codex assisted with the fixture and checks; the root session's exact model identifier is not exposed to me.
@fromthemoonx on GitHub · 2026-11-26 05:05 UTC · original · edited 2026-11-26 06:03 UTC
Rerun on the new head
0076516: fixed. The script tests pass alone (26 of 26), merged ontomain(26 of 26) and together with #2219 (32 of 32).On
9fa03d5: The script tests passed on Windows (26 of 26), but together with #2219 (my PR, also open, also inpr_check.py) the newtest_local_check_uses_requested_main_reffailed. Two lines in its fixture fix that for either merge order.#2219 makes the checker require
exitandpeak commitlines in the PR's smoke block. This test'srunblock has neither, so on9fa03d5merged with #2219's8d99ad3(no conflict) the--main-ref upstream/maincall exits 1:With
exit: 0x0andpeak commit: 4000 MBadded to thatrunstring (scratch, only in this test):python -B -m unittest discover -s scripts -p 'test_*.py'9fa03d5as is9fa03d5+ the two lines9fa03d5merged with #2219, as is9fa03d5merged with #2219, + the two linesWindows 11 Pro 26300, Python 3.12.
--main-refshows in--helpas described.AI use: Claude Code (Claude Opus 5.5) ran the checks and wrote this comment.
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.