Skip to content

[msbuild] Add remoting support. - #27406

Draft
rolfbjarne wants to merge 35 commits into
mainfrom
dev/rolf/remote-macios
Draft

rolfbjarne wants to merge 35 commits into
mainfrom
dev/rolf/remote-macios

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

⚠️ This is very much in progress, no reviews yet ⚠️

TODO:

  • Improve this description.

rolfbjarne and others added 28 commits November 19, 2026 19:55
…tests.

The Mac reservation job now copies the built packages into a feed in
~/remote_build_testing/nuget and writes a NuGet.config that uses it. The
config's path is passed to the Windows test job as
MAC_AGENT_REMOTE_NUGET_CONFIG_FILE, so that ConfigureMac can install
workloads on the Mac through RemoteNuGetConfigFile without depending on the
Mac's checkout.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…me is /Users/<user>.

scp and ssh resolve relative paths against the remote user's home directory,
so use relative paths for files in ~/remote_build_testing, and use
MAC_AGENT_USER instead of a hard-coded 'builder' when verifying the ssh
connection.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The Windows test job no longer needs the Mac checkout to collect logs.
Instead, the Mac cleanup job connects to the reserved Mac over SSH after
the Windows tests finish, collects the logs, and publishes them as a
separate 'windows-remote-logs-*' artifact before returning the Mac to the
pool. The zip is no longer included in the Windows HtmlReport.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Require the password-file bridge for remote tests and fail closed for older checkouts that do not have it.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Expose the version chosen by GenerateBuildSessionId so remote setup can install the matching agents.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Escape Azure logging-command characters when publishing the Mac-local NuGet config path.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Stage the private configuration task in both iOS SDKs and expose its remote SDK path to later builds.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Use the iOS ConfigureMac target before remote tests and pass its SDK path to subsequent builds.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Restore Xamarin.Messaging.Remote 1.0.4-release-test-remote-macios.26567.2 from the general-testing feed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Add 'make -C msbuild use-local-messaging-remote MESSAGING_REMOTE_PACKAGE=<nupkg>'.
It checks the package id, version and task assemblies, restores the
Windows task project from the package's directory with a version override,
verifies NuGet used that exact package, and refreshes the ConfigureMac
files in the installed iOS and Windows SDKs. Tracked feed and version
settings don't change.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Reject versions that do not map to a safe normalized cache directory, and avoid deleting the supplied package when it is already in that cache.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Pack the selected devtools checkout during normal builds and consume the exact package path it reports. Reuse local package validation, refresh the installed SDK assets, and restore the tracked version after the override is unset.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@rolfbjarne rolfbjarne self-assigned this Nov 19, 2026
@rolfbjarne rolfbjarne added this to the .NET 12 milestone Nov 19, 2026
rolfbjarne and others added 7 commits November 20, 2026 09:14
Do not pass the macios NuGetPackageRoot environment property into the devtools pack command. Its netstandard build otherwise looks for reference assemblies in a different cache than restore uses.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Reuse the remote-test NuGet config script with configurable source, feed, and config paths. Point install-remote-locally at the built packages and pass the resulting config to ConfigureMac.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
ConfigureMac reads the NuGet config and feed over SSH. macOS doesn't let SSH sessions read external volumes, so when the checkout is on one, copying the config failed with RMAC1050 ('Operation not permitted'). Put the feed in ~/Library/Caches/macios-remote-feed instead (configurable with REMOTE_LOCAL_FEED_DIR).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
SSH access to external volumes can be restricted, but the exact policy depends on the system.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This reverts commits 550457a and 0eed4f9. The RMAC1050 failure came from a local setup (a checkout on an external drive without SSH full disk access), so keep the feed in _build/feed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant