Repository navigation
Provision the macOS SOS host runtime independently - #6240
Merged
Merged
Conversation
Keep the .NET 11 runtime required by the macOS launcher and managed extension independent of the debuggee runtime matrix, including private .NET 12 runs. Co-authored-by: Copilot App <[email protected]>
Port the deployment-aware availability probes from dotnet/runtime#134073 and check pipe2 through unistd.h with scoped GNU feature definitions. Co-authored-by: Copilot App <[email protected]>
max-charlamb
approved these changes
Nov 13, 2026
Member
|
/ba-g flaky test |
This was referenced Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses the macOS SOS/SOS_EnumMemory launcher failures tracked in dotnet/runtime#137493.
The macOS launcher explicitly starts the
net10.0test application with--fx-versionselecting .NET 11. The harness independently selects .NET 11 to host SOS's managed extension because of a CoreCLR hosting fix. However, SOS work items only declared the .NET 10 test-host runtime and the debuggee runtime as dependencies. Private .NET 12 runs no longer incidentally provision .NET 11, so the private overlay succeeds and the launcher exits with code 3 before tests start.Explicitly include the pinned .NET 11 runtime in macOS SOS work-item requirements, independently of the debuggee matrix. Preserve the existing .NET 10, private-runtime, and packaged-tool requirements. Windows and Linux runtime selection is unchanged; the Windows launcher uses normal
net10.0selection rather than the macOS-specific--fx-versionoverride.Unrelated macOS build prerequisite
The second commit ports the native feature-probe approach from dotnet/runtime#134073, the follow-up to dotnet/runtime#134028.
This
pipe2fix is unrelated to the missing-runtime failure, but is necessary to compile diagnostics with recent Xcode on macOS. Symbol-only detection findspipe2in the newer SDK even when the deployment target cannot use it, causing PAL compilation to fail. Make supported availability warnings errors during feature probes and checkpipe2throughunistd.h, with_GNU_SOURCEscoped to that check for Linux compatibility.Validation
./.dotnet/dotnet build src/tests/SOS.Tests/SOS.Tests.csproj -c Release --no-restore -p:TargetArch=arm64 -p:TargetRid=osx-arm64: passed, 0 warnings/errors../build.sh -skipmanaged -configuration Release -architecture arm64: passed, including PAL, native SOS, dbgshim, andsos-lldb.SOS.Tests.TestConfigValidityTests.*: 25/25 passed on real .NET 11, directly and through the actual Unix launcher with the newly built LLDB driver.CreateHelixPayloadmetadata checked in 16 isolated combinations: macOS ARM64/x64, Linux x64, Windows x64, each with normal/private/packaged/servicing inputs. Payload staging was stubbed; runtime requirements, shard identities, and private-overlay commands were evaluated by the real target. The actual shared sender converts the private macOS requirements into .NET 10, .NET 11, and .NET 12 runtime packages.HAVE_PIPE2is the only existing cached feature result that changes (1to false). The sole new result is the compiler availability-warning support check.pipe2for macOS 12, accept it for macOS 27, and accept it with GNU GCC 13.3 on Linux. GNU feature definitions do not leak beyond the probe.git diff --checkand Bash syntax checks passed.Existing CMake build trees need their cached
HAVE_PIPE2result refreshed; native validation used a fresh Release configuration. Windows launcher execution and the full SOS debuggee matrix were not run locally.cc @max-charlamb @steveisok