PR checks: a rename out of runtime still needs smoke runs #952
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!952
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-952"
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?
@vedantdadhich21 on GitHub · 2026-11-24 09:25 UTC · original
vedantdadhich21:scripts/check-renamed-runtime→main· +60 −5 · 3 files · 1 commits · openThe PR checker decided whether smoke runs were required from only the destination path of each changed file. The Files API row discarded
previous_filename, so renaming a runtime file intotests/ordocs/made the change look non-runtime and bypassed the regression-run gate without maintainer approval.What is in it
.github/workflows/pr-check.yml: retain GitHub'sprevious_filenameas an optional fifth TSV column.scripts/pr_check.py: represent the old side of a rename as a removed entry. Removed files remain part of the runtime scan but are still skipped by the game-data/binary checks. Four-column local TSV input remains supported.scripts/test_pr_check.py: cover runtime-to-tests renames, the--test-onlywaiver, docs renames, legacy four-column input, and renaming game data out of the repository.Tested
47c120d649490c4acce3ad528e2d9ad242e3c45d, rebased onto currentmain.python3 -B -m unittest discover -s scripts -p 'test_pr_check.py' -v: 13 passed, 0 failed, including the existing smoke-block, template-placeholder, and runtime-build-input tests.test_rename_out_of_runtime_still_requires_smokefailed because the CLI printeddescription ok.--test-onlyexits 0.python3 -B -m py_compile scripts/pr_check.py scripts/test_pr_check.py: passed.git diff --check origin/main...HEAD: passed.Regression run
crates/xcl/srcis untouched.Not tested
PR checksworkflow itself.AI use
@DavidM1911 on GitHub · 2026-11-24 12:40 UTC · original
Independent verification on current
main384f7f7(branch already contains it — clean).Machine: Windows 11, Ryzen 9 7900X; Python 3.
python scripts/test_pr_check.py: 13 tests OK — including the new rename-out-of-runtime cases.status == "renamed"with a previous path, a synthetic(previous, "removed", …)entry is appended, soruntime(previous)still triggers the smoke-run requirement when runtime code moves out ofcrates/xcl/src. Thelen(parts) >= 5guard keeps old 4-column files.tsv working.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
@DavidM1911 on GitHub · 2026-11-24 13:51 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Thanks!
@futurepro62 on GitHub · 2026-11-24 14:15 UTC · original
Tested exact head
47c120d, script tests only, since this PR has no test report yet.Tested
python -m pytest scripts/test_pr_check.pyat the head: 13 passed.930e8b4): 1 failed:test_rename_out_of_runtime_still_requires_smoke. So the new test catches the problem the PR fixes.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-26 03:11 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
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.