Repository navigation
🤖 Merge 'main' => 'xcode27.0' - #25891
Conversation
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.2 to 7.0.0.
…FS on large merge PRs (#25831) Code Radiator reported an incomplete result because `create_pull_request` failed while processing a large `main -> net11.0` merge. The merge commit was prepared, but safe-outputs failed during `format-patch` with `ENOBUFS` due to patch output size. - **What changed** - Increased Code Radiator safe-outputs patch budget from `10240` to `51200`. - Applied the update in both workflow source and generated lock workflow to keep runtime config aligned. - **Files updated** - `.github/workflows/code-radiator.md` - `.github/workflows/code-radiator.lock.yml` - **Configuration update** - `max-patch-size` / `max_patch_size`: `10240` → `51200` - Applies to: - `create_pull_request` - `push_to_pull_request_branch` ```yaml safe-outputs: max-patch-files: 1000 max-patch-size: 51200 ``` --------- Co-authored-by: rolfbjarne <249268+rolfbjarne@users.noreply.github.com>
…n configured for an exception. (#25856)
) The _CreateInstaller target creates a .pkg installer, which is only useful for desktop platforms (macOS and Mac Catalyst). Previously, setting CreatePackage=true for an iOS or tvOS project would attempt to create a .pkg, which is useless and would fail if /usr/bin/productbuild is not available. Add a 'SdkIsDesktop' == 'true' condition to the target so it only runs for macOS and Mac Catalyst projects. Fixes #19790 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ates. Fixes #15136. (#25863) Add "Desktop" to the `classifications` array in all Mac Catalyst and macOS template.json files so they appear in the appropriate Desktop template category in Visual Studio and `dotnet new` filtering. Fixes #15136 🤖 Pull request created by Copilot --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ropertyInspector project (#25862) Replace the fragile approach of creating a temporary PropertyInspector.csproj that imports the target project with a direct 'dotnet build -getProperty:...' invocation. This avoids the SIGSEGV crashes (exit code 139) seen in CI. The new approach: - Runs 'dotnet build <project> -getProperty:<prop> -t:<target>' directly - Captures stdout separately (with Timestamp=false) to get clean output - No longer needs temporary files (PropertyInspector.csproj/.txt) - Adds MSBuildSDKsPath=null to env vars (matching other dotnet invocations) Fixes #25860 --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Improve XML documentation for the `WebNavigationPolicyEventArgs` type: - Replace 'To be added.' placeholders with meaningful descriptions - Remove empty `<remarks>` nodes - Add proper documentation for all properties and constructor parameters 🤖 Pull request created by Copilot --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ut to the test's output instead of the Console. (#25858) Also: * Bump launch timeout to 30s (first time on Rosetta can take a little while to start). * Fix race condition by always calling the non-argument version of `Process.WaitForExit ()` to make sure all output buffers are flushed.
--------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Rolf Bjarne Kvinge <rokvin@microsoft.com>
…ink MSBuild task. (#25742) ## Summary This continues the work to replace our custom ILLink trimmer steps with standalone solutions, so that we no longer depend on the linker's custom-step support (which the ILLink and NativeAOT teams want to remove, and which prevents us from running the trimmer on Windows). Several of our custom trimmer steps currently run *after* the trimmer has finished sweeping (the "post-sweep" / "pre-output" / "post-output" steps). This PR moves those steps out of the trimmer pipeline and into a new MSBuild task that runs as a separate post-ILLink step (the "assembly preparer" / post-processor), driven by the `PostProcessAssemblies` property. When `PrepareAssemblies` (and therefore `PostProcessAssemblies`) is enabled, these steps are no longer registered as `_TrimmerCustomSteps` in `Xamarin.Shared.Sdk.targets`; instead they're executed by the new `_PostprocessAssemblies` target, which runs after `ILLink` and before native/AOT/R2R compilation. ## Changes ### MSBuild - **`Xamarin.Shared.targets`**: Added the `PostProcessAssemblies` property (defaults to the value of `PrepareAssemblies`), and two new targets: - `_PrepareAssembliesForPostProcessing` — collects all managed assemblies (including the platform assembly, matching what the trimmer resolves internally) and computes the output directory. - `_PostprocessAssemblies` — runs after `ILLink` and before `NativeCompile`/`CreateReadyToRunImages`, invokes the `PrepareAssemblies` task in post-processing mode, and swaps the post-processed assemblies into `ResolvedFileToPublish` (and `FileWrites`). - **`Xamarin.Shared.Sdk.targets`**: The post-sweep / pre-output / post-output custom trimmer steps are now conditioned on `'$(PostProcessAssemblies)' != 'true'`, so they no longer run inside the trimmer when post-processing is enabled. - **`PrepareAssemblies.cs`**: Added a `PostProcessing` parameter that selects between `Prepare()` and the new `PostProcess()` path, plus a generic fallback error (`E0192`) when the task fails without logging a specific error. ### Tools / assembly-preparer - **`AssemblyPreparer.cs`**: Added the `PostProcess()` method, which runs the same set of steps (in the same order) that previously ran as post-sweep/pre-output/post-output custom trimmer steps, including registrar, exported-symbol listing, framework gathering, AOT argument computation, etc. Also added `InlineClassGetHandleStep` to the existing `Prepare()` path. - **`PopulateApplicationAssembliesStep.cs`** (new): Populates `Application.Assemblies` from the loaded assemblies (equivalent to `LoadNonSkippedAssembliesStep`), so later steps like `ComputeAOTArguments` and `GatherFrameworksStep` can find the assemblies. Runs after `SaveAssembliesStep` so `OutputPath` is set. - **`SaveAssembliesStep.cs`**: When post-processing, copy unchanged (`Copy`/`CopyUsed`) assemblies (plus `.pdb`/`.config`) into the output directory so all assemblies live together for AOT compilation, instead of just pointing `OutputPath` at the input. - **`CollectFieldsStep.cs`**: Now also populates the `ExportedFields` annotation (used by `ListExportedSymbols`), not just `FieldSymbols`, and runs regardless of `InlineDlfcnMethodsEnabled`. - **`assembly-preparer.csproj`**: Linked in the additional shared source files needed by the new post-processing steps (`ComputeAOTArguments`, `ComputeNativeBuildFlagsStep`, `DoneStep`, `ExtractBindingLibrariesStep`, `GatherFrameworksStep`, `GenerateMainStep`, `GenerateReferencesStep`, `InlineClassGetHandleStep`, `RegistrarStep`, `ListExportedSymbols`, `RemoveUserResourcesSubStep`, `CompilerFlags`). ### Shared steps made `ASSEMBLY_PREPARER`-aware - **`ListExportedSymbols.cs`** and **`RemoveUserResourcesSubStep.cs`**: Refactored to derive from `ConfigurationAwareStep` / `AssemblyModifierStep` when built for the assembly preparer, while keeping the existing trimmer-based behavior otherwise. - **`InlineClassGetHandleStep.cs`**: Added a `ConditionToProcess()` guard so it only runs when inline class-get-handle is not disabled. - **`RegistrarStep.cs`**, **`ComputeAOTArguments.cs`**, **`StaticRegistrar.cs`**, **`Application.cs`**, **`Assembly.cs`**, **`LinkerConfiguration.cs`**, **`GenerateReferencesStep.cs`**, **`ExtractBindingLibrariesStep.cs`**: Various `#if ASSEMBLY_PREPARER` adjustments so the shared code compiles and behaves correctly in the post-processor (e.g. `IsPostProcessingAssemblies` becomes a settable field, `CompilerFlags` is always available, the output items directory is created on demand). ### Tests - **`WindowsTest.cs`**: Added `AssemblyPreparerRemoteTest`, a `RemoteWindows` test that builds with `AssemblyPreparer=true`, copies the app bundle back to Windows, and validates the `Info.plist` and the changed-output-files reporting (only built when not `NET11_0_OR_GREATER`, since the assembly-preparer mode is the default there). ## Notes This is an incremental step; the post-processing path is gated behind `PostProcessAssemblies`/`PrepareAssemblies` and does not change the default build for shipping configurations. Contributes towards #17693.
) When ObjC declares a block with nullable parameters (e.g., `void (^)(BOOL success, NSError * _Nullable error)`), sharpie previously produced `Action<bool, NSError>`, losing the nullability information. This PR teaches sharpie to produce `Action<bool, NSError?>` instead. ## Approach The fix operates at two levels in the sharpie pipeline: - **TypeBinder.VisitFunctionType** -- After resolving each block parameter type, checks for `CX_AttrKind_TypeNullable` in the `AttributedType` annotations (which clang already attaches). If found, wraps the resolved type with `ComposedType.HasNullableSpecifier = true` to produce the `?` suffix in type arguments. This handles the inline `Action<>`/`Func<>` case. - **CustomDelegateMassager + BindingGenerator** -- When converting inline delegates to named delegate declarations, unwraps the nullable `ComposedType` back to its base type while preserving annotations. This allows the existing `NullabilityMassager` to add `[NullAllowed]` to the delegate parameter (the correct representation for binding definition delegates). ## xtro-sharpie validation Extends `NullabilityCheck` to validate block parameter nullability: - Detects `BlockPointerType` parameters and inspects the underlying `FunctionProtoType` - For each block parameter, compares native nullability against the managed `NullableAttribute` byte array positions - Reports `!missing-null-allowed!` / `!extra-null-allowed!` for mismatches This addresses the existing TODO in `NullabilityCheck`: "check the generics (don't think we have such cases yet)". 🤖 Pull request created by Copilot --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Rolf Bjarne Kvinge <rokvin@microsoft.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
## Summary - add the shared GH-AW PAT pool import and its repository setup documentation - update `code-radiator`, `ci-postmortem`, and `macios-reviewer` to source `COPILOT_GITHUB_TOKEN` from the selected PAT slot while continuing to use the existing `gh-aw-environment` - add a workflow that validates the configured `COPILOT_PAT_0` through `COPILOT_PAT_9` entries and regenerate the affected lock files Recreated from #25838. --------- Co-authored-by: vitek-karas <10670590+vitek-karas@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This pull request updates the following dependencies ## From https://github.com/dotnet/xharness - **Subscription**: [02e03784-16b3-4ced-b02a-3715797fc7da](https://maestro.dot.net/subscriptions?search=02e03784-16b3-4ced-b02a-3715797fc7da) - **Build**: [20260630.1](https://dev.azure.com/dnceng/internal/_build/results?buildId=3011571) ([320875](https://maestro.dot.net/channel/2/github:dotnet:xharness/build/320875)) - **Date Produced**: June 30, 2026 11:47:04 AM UTC - **Commit**: [5d58a231a8a5e322bdd27da674a7059e4d2e7220](dotnet/xharness@5d58a23) - **Branch**: [main](https://github.com/dotnet/xharness/tree/main) - **Dependency Updates**: - From [11.0.0-prerelease.26319.2 to 11.0.0-prerelease.26330.1][1] - Microsoft.DotNet.XHarness.iOS.Shared [1]: dotnet/xharness@a0534ae...5d58a23
…avoid a race. (#25878) The `__XAMARIN_DEBUG_*` environment variables were read and unset inside monotouch_configure_debugging, which runs on a separate thread that's started just before the runtime (and the managed Main method) is initialized. This created a race: depending on thread scheduling, the managed app could observe these environment variables (if it read the environment before the debugging thread unset them) or not. Capture and unset these environment variables on the main thread (in the new xamarin_capture_debugging_settings function, called right before the debugging thread is started) so that they're consistently removed before any managed code runs. Every present `__XAMARIN_DEBUG_*` variable is captured and unset (so none leak, even empty ones), while the original 'non-null and non-empty' check is preserved where the captured values are used. monotouch_configure_debugging now reads the captured values instead of the environment. This makes the behavior deterministic on all platforms (the debug environment variables never leak to the app), so update DotNetProjectTest.Run accordingly - it previously asserted that macOS leaked these variables, which was just the racy behavior. --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…Fixes #25491 (#25494) When `_ExportSymbolsExplicitly=false`, the `strip` command was running without any flags on the main executable, stripping all symbols including ones the runtime needs, causing the app to crash at launch. ## Changes 1. **`msbuild/Xamarin.Shared/Xamarin.Shared.targets`** — Always pass the symbol file to strip (revert the condition from PR #24800 that removed it when `_ExportSymbolsExplicitly=false`). 2. **`msbuild/Xamarin.MacDev.Tasks/Tasks/SymbolStrip.cs`** — Implement `GetAdditionalItemsToBeCopied()` to ensure the symbol file is transferred to the remote Mac for Windows→Mac builds, so remote builds behave identically to local builds. 3. **`tests/dotnet/UnitTests/ProjectTest.cs`** — Add `StrippedWithExportSymbolsExplicitlyFalse` test that builds with `_ExportSymbolsExplicitly=false`, executes the app, and verifies required symbols remain in the binary. ## Root cause PR #24800 fixed a build failure for remote Windows builds by removing the symbol file from the `strip` command when `_ExportSymbolsExplicitly=false`. However, running bare `strip` (without `-i -s <symbolfile>`) removes all symbols from the main executable, including ones the .NET runtime needs at launch. ## Fix approach Instead of conditionally omitting the symbol file, we now: - Always pass the symbol file to strip (it's always written unconditionally by `WriteLinesToFile`) - Ensure it gets transferred to the remote Mac via `GetAdditionalItemsToBeCopied()` This ensures consistent behavior between local and remote builds. Fixes #25491 🤖 Pull request created by Copilot --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Rolf Bjarne Kvinge <rokvin@microsoft.com>
…s null. Fixes #25877 (#25885) The `SecProtocolMetadataTest.TlsDefaults` test intermittently fails in CI because `SecProtocolMetadata.ServerName` returns `null` even though the TLS connection itself succeeds. This happens when a corporate proxy or network appliance strips SNI (Server Name Indication) from the TLS handshake. The fix adds a null-check that marks the test as inconclusive in CI when `ServerName` is null, while still asserting the correct value in normal conditions. Fixes #25877 🤖 Pull request created by Copilot --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
#25873 (#25875) The `MessageHandlerTest.AcceptSslCertificatesServicePointManager` test intermittently fails in CI because httpbin.org drops the TCP connection mid-response, producing an `HttpIOException: The response ended prematurely`. The existing `IgnoreInCIIfBadNetwork` helper didn't handle this exception type, so the test was reported as a hard failure rather than being marked inconclusive. This adds an `IgnoreInCIIfResponseEndedPrematurely` check that catches `HttpIOException` and marks the test `Inconclusive` when running in CI, matching the pattern used for other transient network errors (DNS failures, timeouts, connection lost). Fixes #25873 --- 🤖 Pull request created by Copilot --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Bumps [zizmorcore/zizmor-action](https://github.com/zizmorcore/zizmor-action) from 0.5.6 to 0.5.7.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The code-radiator workflow was able to prepare the `main` → `net11.0` merge locally, but `safeoutputs create_pull_request` failed while generating the PR patch. It was deriving the patch via `format-patch`, which expanded to the full commit range against `main` and overflowed the safeoutputs buffer.
- **Workflow behavior**
- Set `safe-outputs.create-pull-request.patch-format: bundle` in `code-radiator.md`
- This switches PR creation away from `format-patch`-based serialization and preserves merge commits without expanding the patch across the full shared history
- **Compiled workflow**
- Regenerated `code-radiator.lock.yml` so the safeoutputs handler config includes the explicit `patch_format: "bundle"` setting
- **Result**
- Merge PR creation remains enabled for `net*.0` / `xcode*` targets
- The workflow no longer depends on `git format-patch` for these merge branches, avoiding the buffer overflow path that filed the manual-follow-up issue
```yaml
safe-outputs:
create-pull-request:
max: 10
draft: false
patch-format: bundle
signed-commits: false
```
---------
Co-authored-by: rolfbjarne <249268+rolfbjarne@users.noreply.github.com>
Improve XML documentation for the `TWTweetComposeViewControllerResult` enum: - Replace 'To be added.' placeholders with meaningful descriptions - Remove empty `<remarks>` nodes - Fix `see cref` to use unqualified type name - Add proper documentation for `Cancelled` and `Done` values 🤖 Pull request created by Copilot --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…25903) Actions like actions/cache/save, actions/cache/restore, actions/download-artifact, and actions/setup-node are only used in gh-aw generated workflow files (*.lock.yml and agentics-maintenance.yml). Dependabot should not bump these since they are managed by the gh-aw compiler. Fixes #25897 Fixes #25899 🤖 Pull request created by Copilot --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ssemblies=true (#25894) When the assembly-preparer is used to post-process assemblies (PrepareAssemblies/PostProcessAssemblies=true), the set of assemblies that gets AOT-compiled - and which is used to detect AOT generic instantiation deduplication - is computed from ResolvedFileToPublish (via the assembly-preparer's ComputeAOTArguments step) instead of from the linker's own in-memory assembly collection. The dedup container assembly (aot-instances.dll) is only added to the linker's assembly collection (ManagedAssemblyToLink/TrimmerRootAssembly in _CreateAOTDedupAssembly), so it was never part of ResolvedFileToPublish. As a result, the assembly-preparer never saw the dedup assembly, deduplication was disabled, and every assembly was AOT-compiled with 'full' (compiling all generic instantiations redundantly) instead of 'dedup-skip'. This roughly doubled the AOT compiler's work (e.g. _AOTCompile for monotouch-test went from ~48s to ~76s). Fix this with two changes: * Add the dedup assembly to ResolvedFileToPublish when the assembly-preparer post-process path is used and deduplication is enabled, so it's included in the set of assemblies the assembly-preparer processes (and AOT-compiles). The add is guarded so it doesn't duplicate an entry that's already present. * Set Assembly.IsDedupAssembly in the assembly-preparer's PopulateApplicationAssembliesStep, exactly like LoadNonSkippedAssembliesStep does in the ILLink path, so the dedup container is recognized as AOT-compiled and gets the 'dedup-include' flag (while the other assemblies get 'dedup-skip'). Also improved the perf test. Before build times: | Project | Runtime identifier | Link mode | Disabled (average) | Enabled (average) | Difference (of average) | | -------------- | ------------------ | --------- | ------------------ | ----------------- | ----------------------- | | monotouch-test | ios-arm64 | None | 00:02:07.0742190 | 00:02:48.9871886 | 00:00:41.9129696 | | monotouch-test | ios-arm64 | SdkOnly | 00:01:20.4693850 | 00:01:56.3924870 | 00:00:35.9231020 | | monotouch-test | iossimulator-arm64 | None | 00:01:37.4725223 | 00:02:16.4294141 | 00:00:38.9568918 | | monotouch-test | iossimulator-arm64 | SdkOnly | 00:01:11.8543345 | 00:01:27.3413050 | 00:00:15.4869705 | | MySimpleApp | ios-arm64 | None | 00:01:18.7859068 | 00:01:54.7023664 | 00:00:35.9164596 | | MySimpleApp | ios-arm64 | SdkOnly | 00:00:21.7704550 | 00:00:53.0059895 | 00:00:31.2355345 | | MySimpleApp | iossimulator-arm64 | None | 00:00:54.6666308 | 00:01:26.3723282 | 00:00:31.7056974 | | MySimpleApp | iossimulator-arm64 | SdkOnly | 00:00:19.7740878 | 00:00:34.5455132 | 00:00:14.7714254 | After build times: | Project | Runtime identifier | Link mode | Disabled (average) | Enabled (average) | Difference (of average) | | -------------- | ------------------ | --------- | ------------------ | ----------------- | ----------------------- | | monotouch-test | ios-arm64 | None | 00:02:05.4666859 | 00:02:09.6491832 | 00:00:04.1824973 | | monotouch-test | ios-arm64 | SdkOnly | 00:01:20.1368215 | 00:01:45.1826245 | 00:00:25.0458030 | | monotouch-test | iossimulator-arm64 | None | 00:01:34.2666644 | 00:01:38.9737062 | 00:00:04.7070418 | | monotouch-test | iossimulator-arm64 | SdkOnly | 00:01:06.9120929 | 00:01:18.3662064 | 00:00:11.4541135 | | MySimpleApp | ios-arm64 | None | 00:01:20.3001297 | 00:01:23.2613776 | 00:00:02.9612479 | | MySimpleApp | ios-arm64 | SdkOnly | 00:00:20.4954960 | 00:00:47.6480467 | 00:00:27.1525507 | | MySimpleApp | iossimulator-arm64 | None | 00:00:53.6472697 | 00:00:55.3882440 | 00:00:01.7409743 | | MySimpleApp | iossimulator-arm64 | SdkOnly | 00:00:19.2538091 | 00:00:31.0467173 | 00:00:11.7929082 | --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Commit pushed:
|
✅ [PR Build #908cb9a] Build passed (Detect API changes) ✅Pipeline on Agent |
✅ [PR Build #908cb9a] Build passed (Build packages) ✅Pipeline on Agent |
✅ [PR Build #908cb9a] Build passed (Build macOS tests) ✅Pipeline on Agent |
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🚀 [CI Build #908cb9a] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 196 tests passed 🎉 Tests counts✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
Caution
Protected files were modified in this change.
This pull request is in
request_reviewmode and requires explicit human scrutiny before merge.Protected files:
README.mdAutomated merge of
mainintoxcode27.0.Merge Conflicts Resolved
Created by the code-radiator workflow.