fix(tests): skip the 1023-byte guest path check on macOS hosts #8284

Merged
mugurc merged 1 commit from upstream-pr/8284 into main 2026-10-23 18:25:46 +00:00
mugurc commented 2026-10-20 08:34:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mugurc on 2026-10-20T08:34:32Z.


What

guest_path_name_length (#8164) fails on macOS at its check that a guest path of exactly 1023 bytes is not too long. The guest check passes it; the host does not. macOS fails a host path of 1024 bytes or more with ENAMETOOLONG, and the host form of a guest path is the root directory followed by the guest path, so a 1023-byte guest path is always longer than that there. In the test the root is the 73-byte build directory, so the host path has 1097 bytes. Part of the macOS series announced on #1 (https://github.com/boykopovar/AnyPS5/issues/1#issuecomment-6124344298).

  • The test skips that one check on macOS. Every other check still runs there, including the 1024-byte path that must fail.
  • A new debt entry gives the macOS limit. The entry for guest path names already says that the host's own limit applies below FreeBSD's and gives the Windows one; it is at the 1000-character limit, so the macOS one has its own entry.

Tested

macOS 26.5.1, Apple M5 Max, Apple clang 21, x86-64 build under Rosetta 2. The libraries do not link on macOS without the rest of the macOS series, so the run is on main 3fd1cc393 with the series (ci/macos-series-2 on my fork), #8279, the open macOS fixes #7524 and #7937, and three changes from #7332.

  • guest_path_name_length aborts without this PR with "a path of exactly 1023 bytes must not be too long (errno 63)" and passes with it.
  • A probe with stat on macOS: an absolute path of 1023 bytes gives ENOENT, one of 1024 bytes ENAMETOOLONG.
  • guest_working_directory, guest_path_case and guest_directory pass. guest_filesystem fails on macOS with and without this PR; it is among the macOS failures #7631 lists, from before #8164.
  • Linux and Windows: not run. Outside macOS the test is unchanged.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4933176825 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8284). Originally posted by [mugurc](https://github.com/mugurc) on 2026-10-20T08:34:32Z. --- ### What `guest_path_name_length` (#8164) fails on macOS at its check that a guest path of exactly 1023 bytes is not too long. The guest check passes it; the host does not. macOS fails a host path of 1024 bytes or more with `ENAMETOOLONG`, and the host form of a guest path is the root directory followed by the guest path, so a 1023-byte guest path is always longer than that there. In the test the root is the 73-byte build directory, so the host path has 1097 bytes. Part of the macOS series announced on #1 (https://github.com/boykopovar/AnyPS5/issues/1#issuecomment-6124344298). - The test skips that one check on macOS. Every other check still runs there, including the 1024-byte path that must fail. - A new debt entry gives the macOS limit. The entry for guest path names already says that the host's own limit applies below FreeBSD's and gives the Windows one; it is at the 1000-character limit, so the macOS one has its own entry. ### Tested macOS 26.5.1, Apple M5 Max, Apple clang 21, x86-64 build under Rosetta 2. The libraries do not link on macOS without the rest of the macOS series, so the run is on `main` 3fd1cc393 with the series (`ci/macos-series-2` on my fork), #8279, the open macOS fixes #7524 and #7937, and three changes from #7332. - `guest_path_name_length` aborts without this PR with "a path of exactly 1023 bytes must not be too long (errno 63)" and passes with it. - A probe with `stat` on macOS: an absolute path of 1023 bytes gives `ENOENT`, one of 1024 bytes `ENAMETOOLONG`. - `guest_working_directory`, `guest_path_case` and `guest_directory` pass. `guest_filesystem` fails on macOS with and without this PR; it is among the macOS failures #7631 lists, from before #8164. - Linux and Windows: not run. Outside macOS the test is unchanged. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source (none added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
ycbuzi commented 2026-10-21 06:58:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ycbuzi on 2026-10-21T06:58:39Z.


Windows run of 381c3b9744 merged onto main ec7eacc62d (f24e2dec3a, clean), one of the hosts the description lists as not run. Windows 11 Home 10.0.26200, MinGW-w64 GCC 15.2.0 (ucrt-posix-seh r7), Release, BUILD_TESTING=ON.

Built guest_path_name_length_tests with no errors or warnings; ctest --repeat until-fail:2 on guest_path_name_length: passes on both repeats. Not run: Linux.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6310063710 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8284#issuecomment-6310063710). Originally posted by [ycbuzi](https://github.com/ycbuzi) on 2026-10-21T06:58:39Z. --- Windows run of 381c3b9744 merged onto `main` ec7eacc62d (f24e2dec3a, clean), one of the hosts the description lists as not run. Windows 11 Home 10.0.26200, MinGW-w64 GCC 15.2.0 (ucrt-posix-seh r7), Release, `BUILD_TESTING=ON`. Built `guest_path_name_length_tests` with no errors or warnings; `ctest --repeat until-fail:2` on `guest_path_name_length`: passes on both repeats. Not run: Linux.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!8284
No description provided.