test(tools): skip performance bisect symlink test without Windows symlink privilege #22162
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/22162"
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 RaghavVijayanand on 2026-11-17T07:19:45Z.
What
BuildSymlinkSafetyTests.test_refuses_to_follow_a_build_directory_symlink_outside_the_worktreecreates a directory symlink. On Windows without Developer Mode or the symbolic-link privilege,os.symlinkraisesWinError 1314and the test errors instead of testingreset_build_dir. The test now skips in that case, using the same check astest_annotate_module.py; other errors still fail.Tested
Windows 11, Python 3.14.3, no symlink privilege:
python -m pytest tools/tests/test_performance_bisect.pygives 62 passed, 1 skipped (was 1 failed). Fulltools/testson the same machine: this was the only failure (2982 passed, 385 skipped).python3 tools/check_conventions.py --base origin/mainpasses.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)Imported from boykopovar/AnyPS5. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-17T07:19:53Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T07:43:13Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this; the points below are optional.
What I ran
fd7216af24, base main.tools/tests/test_performance_bisect.pyat the head.repo_read.py searchfor thewinerror == 1314pattern acrosstools/tests, and forosusage in the changed file.Results
os.name == "nt"andwinerror == 1314check as the other test filesimport osis new and used onceFindings
Blocking
None.
Non-blocking
None.
Not verified
tools/testsrun) is the author's report. I did not run it.check_conventions.pyis reported by the author as passing; I did not run it.Sources
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T09:57:41Z.
Review: APPROVED
Reviewed — looks good
The change adds the missing
osimport required by the existing symlink test; its skip behavior already catchesOSErrorandNotImplementedErrorwhile allowing the test to fail for unrelated errors.What I ran
Reviewed head
8e6aec0d47004365433ccdc0b601362cf6b51c5c. I did not run tests or commands.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Did not run the reported Windows test suite or conventions check. Read
tools/tests/test_performance_bisect.py; no files were excluded by the manifest.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by catminou4 on 2026-11-25T05:48:52Z.
Review: COMMENTED
Checked against current
main(61d110125e):mainalready hasimport osintools/tests/test_performance_bisect.py(line 5) and theskipTest("symlinks unavailable: ...")guard. The merge of this branch leavesmainunchanged (git merge-treegives the same tree asmain), so there is nothing left to merge. This can be closed as already inmain.Pull request closed