PR checks: a rename out of runtime still needs smoke runs #946
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by vedantdadhich21 on 2026-11-24T09:25:28Z.
The 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
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T12:40:57Z.
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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T13:51:27Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Thanks!
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:15:11Z.
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
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T03:11:29Z.
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
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:41:50Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:33:02Z.
Triage (#1607) – head
47c120dNo open or merged PR makes the same change. #513 also changes how
pr_check.pyreadsfiles.tsv, but it re-checks whether a file is binary. It does not handle renames. Main'scheck()still sees only the new path of a renamed file, so movingcrates/xcl/src/...intocrates/xcl/tests/skips the smoke requirement.The PR adds the previous path as a
removedentry. The smoke check uses it, and the game-data check skips it as it already does for removed files. The tests cover a rename out of the runtime,--test-only, a docs rename and a game-data path renamed away. No problems found in the diff.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.