Skip to content

test(libkernel): stub the located NotImplemented entry point in the pipe-write fixture - #17962

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
JJenkx:windows/pipe-write-located-stub
Nov 12, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
JJenkx:windows/pipe-write-located-stub

Conversation

@JJenkx

@JJenkx JJenkx commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

What

The macOS pipe-write fixture no longer links. Its CI job runs only when a PR touches Udp.cpp, SocketRuntime.hpp or the fixture itself.

  • What changed upstream: since 5 November, General.hpp defines NotImplemented_nid_no_patch(name) as a macro for NotImplementedAt_nid_no_patch(name, __FILE__, __LINE__).
  • Why the link fails: Udp.cpp's PipeWriteState reaches it through that macro. The fixture builds Udp.cpp without libc and stubs only the old name, so NotImplementedAt_nid_no_patch is undefined.
  • Example: run 42728336878 for fix(libkernel): bind an unbound stream socket on listen on Windows #16585 failed on both macos-15 and macos-15-intel:
    Undefined symbols for architecture arm64:
      "_NotImplementedAt_nid_no_patch", referenced from:
          GuestSockets::PipeWriteState(int, long long*, bool*, bool*) in Udp.cpp.o
    

This adds the located stub next to the existing one, as 573333c did for EmscriptenModuleUnwind.cpp. It throws the same std::runtime_error(name).

Tested

  • Not built here: the fixture requires macOS (if(NOT APPLE) fails in its CMakeLists.txt), so I can't build it on Windows or Linux.
  • Stub compiles: the two stubs compile on their own with WinLibs GCC 15.2 (-std=c++20 -fsyntax-only -Wall -Wextra, no warnings).
  • Real test: this PR touches PipeWrite.cpp, so it runs the pipe-write job on macos-15 and macos-15-intel.

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
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

…ipe-write fixture

NotImplemented_nid_no_patch became a macro for NotImplementedAt_nid_no_patch, so the macOS pipe_write_tests link of Udp.cpp needs that symbol.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JJenkx

JJenkx commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

The pipe-write jobs now pass on head 12a210fab2, on both macos-15 and macos-15-intel (run 42734123486). The same job failed to link on run 42728336878 before this change.

AI-assisted: yes.

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 17584 core/libs/tests/PipeWrite.cpp
PR 17585 core/libs/tests/PipeWrite.cpp
PR 17603 core/libs/tests/PipeWrite.cpp

@gabichuuuuu

Copy link
Copy Markdown
Contributor

Windows check of head 12a210fab2, merged onto main f57c971559 (clean merge, built together with other open PRs that touch different files).

Setup: Windows 11 x64, WinLibs GCC 15.2.0 (r7), Ninja, Release, BUILD_TESTING=ON, Python 3.15.

  • No ctest test runs this PR's test files, so this check only confirms that the merged tree configures and builds.

AI-assisted: yes.

@oneandonlydean
oneandonlydean merged commit bf23c00 into boykopovar:main Nov 12, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants