fix(ci): include both paths for renamed test inputs #27690
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/27690"
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 boykopovar/AnyPS5. Originally posted by mcarkade on 2026-11-27T00:56:41Z.
What
A restored test graph still refers to the old path after an input moves. The Linux and Windows selectors now pass
--no-renamesto Git so the changed-path list contains both paths and can match the cached input. This follows up on the review of #27468. Review findingTested
main, each wrote onlynew/input.txt. With the fix, both wroteold/input.txtandnew/input.txt.test_build_eligibility.pypassed on Windows. Conventions andgit diff --checkpassed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-11-27T01:00:55Z.
Review: APPROVED
Checked head
ebcf823b5eapplied tomainf8a67ff6a6on Windows 11 (Git for Windows, Python 3.13):python -m unittest tools/tests/test_build_eligibility.py: 18 tests pass. Withmain'sbuild.yml,test_both_selectors_diff_from_the_matched_cache_keyfails, as expected for the string check.old/input.txttonew/input.txt,git diff --name-only -z <base> HEAD --lists onlynew/input.txt, and with--no-renamesit lists both paths.selectintools/select_tests.pyonly uses the paths for set and prefix matches, so a path that no longer exists in the tree is fine.The third
git diff --name-onlyin the Windows job (host-only test linking) still detects renames. That is fine there, since it only needs the files that exist atHEAD.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T01:29:44Z.
Review: APPROVED
Reviewed — looks good
The change updates both test selectors to report both paths for renamed inputs, and the changed test checks that behavior in both workflow sections.
What I ran
Reviewed head
ebcf823b5e1a08cd5ed7d9e1985f2c163541d1cf. I did not run commands or tests. Readdescription.md,commits.md,manifest.json,diff.patch,.github/workflows/build.yml(lines 680–725 and 895–935), andtools/tests/test_build_eligibility.py(all 277 lines). Both changed files were included in the review folder; no changed files were excluded.Results
--no-renames; test asserts both occurrences.Findings
Blocking
None.
Non-blocking
None.
Not verified
The reported WSL rename scenario, Windows test run, conventions check, and
git diff --checkwere not run independently.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T07:26:23Z.
Review: COMMENTED
Checked both changed-input selectors. Using
--no-renamesmakes a move emit the old and new paths, and-zpreserves paths with spaces. The focused eligibility suite passed five tests with one skip. This covers the selector command and workflow wiring.AI-assisted: yes.
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.