From 6e8855a20356fe8712bb1527115031eac5a96826 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 09:41:43 +0200 Subject: [PATCH 01/23] [github] Bump actions/checkout from 6.0.2 to 7.0.0 (#25801) Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.2 to 7.0.0. --- .github/workflows/autoformat-v2.yml | 4 ++-- .github/workflows/bump-global-json.yml | 2 +- .github/workflows/copilot-setup-steps.yml | 2 +- .github/workflows/update-single-platform-branches.yml | 2 +- .github/workflows/yamllint.yml | 2 +- .github/workflows/zizmor.yml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/autoformat-v2.yml b/.github/workflows/autoformat-v2.yml index 4681f9c8bea3..b7ead504ef9b 100644 --- a/.github/workflows/autoformat-v2.yml +++ b/.github/workflows/autoformat-v2.yml @@ -14,7 +14,7 @@ jobs: steps: - name: 'Checkout' - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: ref: ${{ github.head_ref }} fetch-depth: 1 @@ -59,7 +59,7 @@ jobs: steps: - name: 'Checkout' - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.event.pull_request.head.sha }} diff --git a/.github/workflows/bump-global-json.yml b/.github/workflows/bump-global-json.yml index 3922c1602456..27cf6e8cb480 100644 --- a/.github/workflows/bump-global-json.yml +++ b/.github/workflows/bump-global-json.yml @@ -21,7 +21,7 @@ jobs: contains(github.event.pull_request.title, 'Update dependencies from dotnet/') steps: - name: 'Checkout repo' - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: fetch-depth: 0 repository: ${{ github.event.pull_request.head.repo.full_name }} diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 7e316bb99972..1c388a470ff8 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: false - name: Install gh-aw extension diff --git a/.github/workflows/update-single-platform-branches.yml b/.github/workflows/update-single-platform-branches.yml index 87dcc95e49df..791e8c7fa446 100644 --- a/.github/workflows/update-single-platform-branches.yml +++ b/.github/workflows/update-single-platform-branches.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Checkout repo - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: fetch-depth: 0 persist-credentials: true # need to push changes diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml index bf8fce2a7e0e..5378ea2555d2 100644 --- a/.github/workflows/yamllint.yml +++ b/.github/workflows/yamllint.yml @@ -13,7 +13,7 @@ jobs: steps: - name: 'Checkout' - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index e758c43258f0..cbcfa25496fd 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -18,7 +18,7 @@ jobs: actions: read steps: - name: Checkout - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: false From bace2b2a4af0acea722cf01e44f0258047ea7509 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Tue, 30 Jun 2026 09:42:27 +0200 Subject: [PATCH 02/23] [aw] Increase Code Radiator safe-outputs patch limit to prevent ENOBUFS on large merge PRs (#25831) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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> --- .github/workflows/code-radiator.lock.yml | 2 +- .github/workflows/code-radiator.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code-radiator.lock.yml b/.github/workflows/code-radiator.lock.yml index 63c26533d019..0ec074070452 100644 --- a/.github/workflows/code-radiator.lock.yml +++ b/.github/workflows/code-radiator.lock.yml @@ -1,4 +1,4 @@ -# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"1e3c85531c2d60941bf0e2a91d49ffc436edd5cbaa4da4a2804e3119302acdce","body_hash":"45ef756cba45af7752ec1432a03d6e147be19220efb74c41b103d9dff20bab56","compiler_version":"v0.80.9","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.5","engine_versions":{"copilot":"1.0.63"}} +# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"53d713e17785469d744b616c5a93e67527ac3fdde37f1d78d86fbf49e57e3d53","body_hash":"45ef756cba45af7752ec1432a03d6e147be19220efb74c41b103d9dff20bab56","compiler_version":"v0.80.9","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.5","engine_versions":{"copilot":"1.0.63"}} # gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_CI_TRIGGER_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/cache/save","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/checkout","sha":"9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0","version":"v7.0.0"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e","version":"v6.4.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"8c7d04ebf1ece56cd381446125da3e0f6896294a","version":"v0.80.9"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.7","digest":"sha256:aae231e4635c8999d039c132f1602d3df850fe9b84a00aa2b5ac981179b5661c","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.7@sha256:aae231e4635c8999d039c132f1602d3df850fe9b84a00aa2b5ac981179b5661c"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.7","digest":"sha256:009caf2e3d88fa77b64e9a03a95a228fc58db0f1701c6d324b29ba5a3c7c79b6","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.7@sha256:009caf2e3d88fa77b64e9a03a95a228fc58db0f1701c6d324b29ba5a3c7c79b6"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.7","digest":"sha256:deb1d4e19de62d51cee0508057a596a19315c3423ada4d675cad136dc8037c96","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.7@sha256:deb1d4e19de62d51cee0508057a596a19315c3423ada4d675cad136dc8037c96"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.27","digest":"sha256:fe984bddde4ec05d756d9043edb0a32912e6b7b72f6a121b1082f29221421cc7","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.3.27@sha256:fe984bddde4ec05d756d9043edb0a32912e6b7b72f6a121b1082f29221421cc7"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b","pinned_image":"ghcr.io/github/gh-aw-node@sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b"},{"image":"ghcr.io/github/github-mcp-server:v1.4.0","digest":"sha256:2afb26356481d1a350e14544a6e160f7f7ec1561a1ea309b823665abf0309036","pinned_image":"ghcr.io/github/github-mcp-server:v1.4.0@sha256:2afb26356481d1a350e14544a6e160f7f7ec1561a1ea309b823665abf0309036"}]} # This file was automatically generated by gh-aw (v0.80.9). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md # diff --git a/.github/workflows/code-radiator.md b/.github/workflows/code-radiator.md index d5e60768c288..e60f9cbbee0e 100644 --- a/.github/workflows/code-radiator.md +++ b/.github/workflows/code-radiator.md @@ -30,7 +30,7 @@ checkout: safe-outputs: github-token: ${{ secrets.GITHUB_TOKEN }} max-patch-files: 1000 - max-patch-size: 10240 + max-patch-size: 10240 # this is the maximum, bigger PRs must be created manually create-pull-request: max: 10 draft: false From 2f96f6452e212f94b31933b1e7283aabb398bb34 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 30 Jun 2026 09:51:25 +0200 Subject: [PATCH 03/23] [tools] Honor the 'ProductException.Warning' field if nothing has been configured for an exception. (#25856) --- tests/common/ErrorHelper.tests.cs | 20 +++++++++++++++----- tools/common/ErrorHelper.tools.cs | 20 +++++++++++++++----- tools/common/error.cs | 17 +++++++++-------- 3 files changed, 39 insertions(+), 18 deletions(-) diff --git a/tests/common/ErrorHelper.tests.cs b/tests/common/ErrorHelper.tests.cs index 495ed26053ff..8623ba907d5d 100644 --- a/tests/common/ErrorHelper.tests.cs +++ b/tests/common/ErrorHelper.tests.cs @@ -27,17 +27,27 @@ public enum WarningLevel { static ConditionalWeakTable> warning_levels = new (); - public static WarningLevel GetWarningLevel (IToolLog log, int code) + public static bool TryGetWarningLevel (IToolLog log, int code, out WarningLevel warningLevel) { + warningLevel = default; + if (warning_levels.TryGetValue (log, out var log_warning_levels)) { // code -1: all codes - if (log_warning_levels.TryGetValue (-1, out var level)) - return level; + if (log_warning_levels.TryGetValue (-1, out warningLevel)) + return true; - if (log_warning_levels.TryGetValue (code, out level)) - return level; + if (log_warning_levels.TryGetValue (code, out warningLevel)) + return true; } + return false; + } + + public static WarningLevel GetWarningLevel (IToolLog log, int code) + { + if (TryGetWarningLevel (log, code, out var warningLevel)) + return warningLevel; + return WarningLevel.Warning; } diff --git a/tools/common/ErrorHelper.tools.cs b/tools/common/ErrorHelper.tools.cs index 7f29a8980733..ae8c8ce88c02 100644 --- a/tools/common/ErrorHelper.tools.cs +++ b/tools/common/ErrorHelper.tools.cs @@ -44,17 +44,27 @@ public enum WarningLevel { return log_warning_levels; } - public static WarningLevel GetWarningLevel (IToolLog log, int code) + public static bool TryGetWarningLevel (IToolLog log, int code, out WarningLevel warningLevel) { + warningLevel = default; + if (warning_levels.TryGetValue (log, out var log_warning_levels)) { // code -1: all codes - if (log_warning_levels.TryGetValue (-1, out var level)) - return level; + if (log_warning_levels.TryGetValue (-1, out warningLevel)) + return true; - if (log_warning_levels.TryGetValue (code, out level)) - return level; + if (log_warning_levels.TryGetValue (code, out warningLevel)) + return true; } + return false; + } + + public static WarningLevel GetWarningLevel (IToolLog log, int code) + { + if (TryGetWarningLevel (log, code, out var warningLevel)) + return warningLevel; + return WarningLevel.Warning; } diff --git a/tools/common/error.cs b/tools/common/error.cs index bca4d935349d..f2a6a0c6ed0f 100644 --- a/tools/common/error.cs +++ b/tools/common/error.cs @@ -51,18 +51,19 @@ public ProductException (int code, bool error, Exception? innerException, string public bool IsError (IToolLog? log) { - if (!Warning) - return true; - if (log is null) - return false; - return ErrorHelper.GetWarningLevel (log, Code) == ErrorHelper.WarningLevel.Error; + return GetWarningLevel (log) == ErrorHelper.WarningLevel.Error; } public ErrorHelper.WarningLevel GetWarningLevel (IToolLog? log) { - if (log is null) - return ErrorHelper.WarningLevel.Warning; - return ErrorHelper.GetWarningLevel (log, Code); + // An error is an error, no matter what. + if (!Warning) + return ErrorHelper.WarningLevel.Error; + + if (log is not null && ErrorHelper.TryGetWarningLevel (log, Code, out var warningLevel)) + return warningLevel; + + return ErrorHelper.WarningLevel.Warning; } void SetValues (int code, bool error) From df9a0f851faa557b7c51ecd0e7ad98f0b7aab2e8 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 30 Jun 2026 09:54:45 +0200 Subject: [PATCH 04/23] [msbuild] Only run _CreateInstaller target for desktop platforms (#25848) 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 https://github.com/dotnet/macios/issues/19790 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- msbuild/Xamarin.Shared/Xamarin.Shared.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msbuild/Xamarin.Shared/Xamarin.Shared.targets b/msbuild/Xamarin.Shared/Xamarin.Shared.targets index bb5616d012fa..7930d61aa2e8 100644 --- a/msbuild/Xamarin.Shared/Xamarin.Shared.targets +++ b/msbuild/Xamarin.Shared/Xamarin.Shared.targets @@ -3382,7 +3382,7 @@ Copyright (C) 2018 Microsoft. All rights reserved. - + $(TargetDir) From 7868b827748047815b72d881683a1e9fa16f846d Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 30 Jun 2026 16:15:40 +0200 Subject: [PATCH 05/23] [dotnet] Add 'Desktop' classification to Mac Catalyst and macOS templates. Fixes #15136. (#25863) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 https://github.com/dotnet/macios/issues/15136 🤖 Pull request created by Copilot --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../maccatalyst-controller/.template.config/template.json | 2 +- .../maccatalyst-storyboard/.template.config/template.json | 2 +- .../maccatalyst-view/.template.config/template.json | 2 +- .../maccatalyst-viewcontroller/.template.config/template.json | 2 +- .../maccatalyst/csharp/.template.config/template.json | 1 + .../maccatalyst/visualbasic/.template.config/template.json | 1 + .../maccatalystbinding/csharp/.template.config/template.json | 2 +- .../maccatalystlib/csharp/.template.config/template.json | 2 +- .../maccatalystlib/visualbasic/.template.config/template.json | 2 +- .../macos-controller/.template.config/template.json | 2 +- .../macos-storyboard/.template.config/template.json | 2 +- .../macos-view/.template.config/template.json | 2 +- .../macos-viewcontroller/.template.config/template.json | 2 +- .../macos/csharp/.template.config/template.json | 1 + .../macos/visualbasic/.template.config/template.json | 1 + .../macosbinding/csharp/.template.config/template.json | 2 +- .../macoslib/csharp/.template.config/template.json | 2 +- .../macoslib/visualbasic/.template.config/template.json | 2 +- 18 files changed, 18 insertions(+), 14 deletions(-) diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst-controller/.template.config/template.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst-controller/.template.config/template.json index 96d4f4d37c3e..0cb2597d7e00 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst-controller/.template.config/template.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst-controller/.template.config/template.json @@ -1,7 +1,7 @@ { "$schema": "http://json.schemastore.org/template", "author": "Microsoft", - "classifications": [ "macOS", "Mac Catalyst" ], + "classifications": [ "Desktop", "macOS", "Mac Catalyst" ], "name": "Mac Catalyst Controller", "description": "A MacCatalyst Controller class", "tags": { diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst-storyboard/.template.config/template.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst-storyboard/.template.config/template.json index b39f5db24751..be935be9bfac 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst-storyboard/.template.config/template.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst-storyboard/.template.config/template.json @@ -1,7 +1,7 @@ { "$schema": "http://json.schemastore.org/template", "author": "Microsoft", - "classifications": [ "macOS", "Mac Catalyst" ], + "classifications": [ "Desktop", "macOS", "Mac Catalyst" ], "name": "Mac Catalyst Storyboard", "description": "A MacCatalyst Storyboard", "tags": { diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst-view/.template.config/template.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst-view/.template.config/template.json index ef16d3471280..fb7099c13b72 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst-view/.template.config/template.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst-view/.template.config/template.json @@ -1,7 +1,7 @@ { "$schema": "http://json.schemastore.org/template", "author": "Microsoft", - "classifications": [ "macOS", "Mac Catalyst" ], + "classifications": [ "Desktop", "macOS", "Mac Catalyst" ], "name": "Mac Catalyst View", "description": "A MacCatalyst View", "tags": { diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst-viewcontroller/.template.config/template.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst-viewcontroller/.template.config/template.json index 6bfb1e7f3561..69bfe3702d95 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst-viewcontroller/.template.config/template.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst-viewcontroller/.template.config/template.json @@ -1,7 +1,7 @@ { "$schema": "http://json.schemastore.org/template", "author": "Microsoft", - "classifications": [ "macOS", "Mac Catalyst" ], + "classifications": [ "Desktop", "macOS", "Mac Catalyst" ], "name": "Mac Catalyst View Controller", "description": "A MacCatalyst View Controller class and xib", "tags": { diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/csharp/.template.config/template.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/csharp/.template.config/template.json index 14f885c50047..1d0617207d71 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/csharp/.template.config/template.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/csharp/.template.config/template.json @@ -2,6 +2,7 @@ "$schema": "http://json.schemastore.org/template", "author": "Microsoft", "classifications": [ + "Desktop", "macOS", "Mac Catalyst" ], diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/visualbasic/.template.config/template.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/visualbasic/.template.config/template.json index 5741ddec3cd4..e5768fb209c7 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/visualbasic/.template.config/template.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalyst/visualbasic/.template.config/template.json @@ -2,6 +2,7 @@ "$schema": "http://json.schemastore.org/template", "author": "Microsoft", "classifications": [ + "Desktop", "macOS", "Mac Catalyst" ], diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/csharp/.template.config/template.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/csharp/.template.config/template.json index 74459e3292af..95103af8e12b 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/csharp/.template.config/template.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystbinding/csharp/.template.config/template.json @@ -1,7 +1,7 @@ { "$schema": "http://json.schemastore.org/template", "author": "Microsoft", - "classifications": [ "macOS", "Mac Catalyst" ], + "classifications": [ "Desktop", "macOS", "Mac Catalyst" ], "groupIdentity": "Microsoft.MacCatalyst.MacCatalystBinding", "identity": "Microsoft.MacCatalyst.MacCatalystBinding.CSharp", "name": "Mac Catalyst Binding Library", diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystlib/csharp/.template.config/template.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystlib/csharp/.template.config/template.json index 0dcfb72137cf..d7a9a111be2a 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystlib/csharp/.template.config/template.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystlib/csharp/.template.config/template.json @@ -1,7 +1,7 @@ { "$schema": "http://json.schemastore.org/template", "author": "Microsoft", - "classifications": [ "macOS", "Mac Catalyst" ], + "classifications": [ "Desktop", "macOS", "Mac Catalyst" ], "groupIdentity": "Microsoft.MacCatalyst.MacCatalystLib", "identity": "Microsoft.MacCatalyst.MacCatalystLib.CSharp", "name": "Mac Catalyst Class Library", diff --git a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystlib/visualbasic/.template.config/template.json b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystlib/visualbasic/.template.config/template.json index 27b4dfd57783..2875550c8a7c 100644 --- a/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystlib/visualbasic/.template.config/template.json +++ b/dotnet/Templates/Microsoft.MacCatalyst.Templates/maccatalystlib/visualbasic/.template.config/template.json @@ -1,7 +1,7 @@ { "$schema": "http://json.schemastore.org/template", "author": "Microsoft", - "classifications": [ "macOS", "Mac Catalyst" ], + "classifications": [ "Desktop", "macOS", "Mac Catalyst" ], "groupIdentity": "Microsoft.MacCatalyst.MacCatalystLib", "identity": "Microsoft.MacCatalyst.MacCatalystLib.VisualBasic", "name": "Mac Catalyst Class Library", diff --git a/dotnet/Templates/Microsoft.macOS.Templates/macos-controller/.template.config/template.json b/dotnet/Templates/Microsoft.macOS.Templates/macos-controller/.template.config/template.json index 1ab7ac62c20c..565c16c9d087 100644 --- a/dotnet/Templates/Microsoft.macOS.Templates/macos-controller/.template.config/template.json +++ b/dotnet/Templates/Microsoft.macOS.Templates/macos-controller/.template.config/template.json @@ -1,7 +1,7 @@ { "$schema": "http://json.schemastore.org/template", "author": "Microsoft", - "classifications": [ "macOS" ], + "classifications": [ "Desktop", "macOS" ], "name": "macOS Controller", "description": "A macOS View Controller with UI implemented in code", "tags": { diff --git a/dotnet/Templates/Microsoft.macOS.Templates/macos-storyboard/.template.config/template.json b/dotnet/Templates/Microsoft.macOS.Templates/macos-storyboard/.template.config/template.json index c3bbc77a3f31..ca80ca20f819 100644 --- a/dotnet/Templates/Microsoft.macOS.Templates/macos-storyboard/.template.config/template.json +++ b/dotnet/Templates/Microsoft.macOS.Templates/macos-storyboard/.template.config/template.json @@ -1,7 +1,7 @@ { "$schema": "http://json.schemastore.org/template", "author": "Microsoft", - "classifications": [ "macOS" ], + "classifications": [ "Desktop", "macOS" ], "name": "macOS Storyboard", "description": "A macOS Storyboard", "tags": { diff --git a/dotnet/Templates/Microsoft.macOS.Templates/macos-view/.template.config/template.json b/dotnet/Templates/Microsoft.macOS.Templates/macos-view/.template.config/template.json index 6831a378867f..092d735f2e7a 100644 --- a/dotnet/Templates/Microsoft.macOS.Templates/macos-view/.template.config/template.json +++ b/dotnet/Templates/Microsoft.macOS.Templates/macos-view/.template.config/template.json @@ -1,7 +1,7 @@ { "$schema": "http://json.schemastore.org/template", "author": "Microsoft", - "classifications": [ "macOS" ], + "classifications": [ "Desktop", "macOS" ], "name": "macOS View", "description": "A macOS View with UI implemented in Xcode's Interface Builder (XIB file)", "tags": { diff --git a/dotnet/Templates/Microsoft.macOS.Templates/macos-viewcontroller/.template.config/template.json b/dotnet/Templates/Microsoft.macOS.Templates/macos-viewcontroller/.template.config/template.json index d4005819b942..3b3948bae52d 100644 --- a/dotnet/Templates/Microsoft.macOS.Templates/macos-viewcontroller/.template.config/template.json +++ b/dotnet/Templates/Microsoft.macOS.Templates/macos-viewcontroller/.template.config/template.json @@ -1,7 +1,7 @@ { "$schema": "http://json.schemastore.org/template", "author": "Microsoft", - "classifications": [ "macOS" ], + "classifications": [ "Desktop", "macOS" ], "name": "macOS View Controller", "description": "A macOS View Controller with UI implemented in Xcode's Interface Builder (XIB file)", "tags": { diff --git a/dotnet/Templates/Microsoft.macOS.Templates/macos/csharp/.template.config/template.json b/dotnet/Templates/Microsoft.macOS.Templates/macos/csharp/.template.config/template.json index 22c6fea90c97..4f79fd4fe674 100644 --- a/dotnet/Templates/Microsoft.macOS.Templates/macos/csharp/.template.config/template.json +++ b/dotnet/Templates/Microsoft.macOS.Templates/macos/csharp/.template.config/template.json @@ -2,6 +2,7 @@ "$schema": "http://json.schemastore.org/template", "author": "Microsoft", "classifications": [ + "Desktop", "macOS" ], "groupIdentity": "Microsoft.macOS.macOSApp", diff --git a/dotnet/Templates/Microsoft.macOS.Templates/macos/visualbasic/.template.config/template.json b/dotnet/Templates/Microsoft.macOS.Templates/macos/visualbasic/.template.config/template.json index 8ffa15f6be51..e9fd2cb48d68 100644 --- a/dotnet/Templates/Microsoft.macOS.Templates/macos/visualbasic/.template.config/template.json +++ b/dotnet/Templates/Microsoft.macOS.Templates/macos/visualbasic/.template.config/template.json @@ -2,6 +2,7 @@ "$schema": "http://json.schemastore.org/template", "author": "Microsoft", "classifications": [ + "Desktop", "macOS" ], "groupIdentity": "Microsoft.macOS.macOSApp", diff --git a/dotnet/Templates/Microsoft.macOS.Templates/macosbinding/csharp/.template.config/template.json b/dotnet/Templates/Microsoft.macOS.Templates/macosbinding/csharp/.template.config/template.json index bc47e34bd4bc..360a277f51aa 100644 --- a/dotnet/Templates/Microsoft.macOS.Templates/macosbinding/csharp/.template.config/template.json +++ b/dotnet/Templates/Microsoft.macOS.Templates/macosbinding/csharp/.template.config/template.json @@ -1,7 +1,7 @@ { "$schema": "http://json.schemastore.org/template", "author": "Microsoft", - "classifications": [ "macOS" ], + "classifications": [ "Desktop", "macOS" ], "groupIdentity": "Microsoft.macOS.macOSBinding", "identity": "Microsoft.macOS.macOSBinding.CSharp", "name": "macOS Binding Library", diff --git a/dotnet/Templates/Microsoft.macOS.Templates/macoslib/csharp/.template.config/template.json b/dotnet/Templates/Microsoft.macOS.Templates/macoslib/csharp/.template.config/template.json index 64f36a4dcd58..29e72190ac26 100644 --- a/dotnet/Templates/Microsoft.macOS.Templates/macoslib/csharp/.template.config/template.json +++ b/dotnet/Templates/Microsoft.macOS.Templates/macoslib/csharp/.template.config/template.json @@ -1,7 +1,7 @@ { "$schema": "http://json.schemastore.org/template", "author": "Microsoft", - "classifications": [ "macOS" ], + "classifications": [ "Desktop", "macOS" ], "groupIdentity": "Microsoft.macOS.macOSLib", "identity": "Microsoft.macOS.macOSLib.CSharp", "name": "macOS Class Library", diff --git a/dotnet/Templates/Microsoft.macOS.Templates/macoslib/visualbasic/.template.config/template.json b/dotnet/Templates/Microsoft.macOS.Templates/macoslib/visualbasic/.template.config/template.json index 476978e47706..9b4ae09ef978 100644 --- a/dotnet/Templates/Microsoft.macOS.Templates/macoslib/visualbasic/.template.config/template.json +++ b/dotnet/Templates/Microsoft.macOS.Templates/macoslib/visualbasic/.template.config/template.json @@ -1,7 +1,7 @@ { "$schema": "http://json.schemastore.org/template", "author": "Microsoft", - "classifications": [ "macOS" ], + "classifications": [ "Desktop", "macOS" ], "groupIdentity": "Microsoft.macOS.macOSLib", "identity": "Microsoft.macOS.macOSLib.VisualBasic", "name": "macOS Class Library", From 9f5295776c545e9a5041167736d19c6d6d79e436 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 30 Jun 2026 16:16:01 +0200 Subject: [PATCH 06/23] [xharness] Use 'dotnet build -getProperty:...' instead of temporary PropertyInspector 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 -getProperty: -t:' 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 https://github.com/dotnet/macios/issues/25860 --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- tests/xharness/AppBundleLocator.cs | 109 +++++++++++------------------ 1 file changed, 41 insertions(+), 68 deletions(-) diff --git a/tests/xharness/AppBundleLocator.cs b/tests/xharness/AppBundleLocator.cs index 9add4d86f504..1c4514514149 100644 --- a/tests/xharness/AppBundleLocator.cs +++ b/tests/xharness/AppBundleLocator.cs @@ -51,87 +51,60 @@ public AppBundleLocator (IProcessManager processManager, Func getLog, stri } } - // Retrieves a property from an MSBuild project file by executing MSBuild and getting MSBuild to print the property. - // We do this by creating a custom MSBuild file which: - // * Will import the project file we're inspecting - // * Has a target that will print a given property - // and then executing MSBuild on this custom MSBuild file. + // Retrieves a property from an MSBuild project file by executing + // 'dotnet build -getProperty:... -t:...' on the project directly. async Task GetPropertyByMSBuildEvaluationAsync (XmlDocument csproj, string projectPath, string evaluateProperty, string dependsOnTargets = "", Dictionary? properties = null) { - var xml = -@" - - - - - - <_Properties>$(%PROPERTY%) - - - - - - -"; + if (!csproj.IsDotNetProject ()) + throw new NotSupportedException ("Legacy projects not supported anymore"); var dir = Path.GetDirectoryName (projectPath)!; - var inspector = Path.Combine (dir, "PropertyInspector.csproj"); - var output = Path.Combine (dir, "PropertyInspector.txt"); - try { - File.WriteAllText (inspector, xml.Replace ("%PROPERTY%", evaluateProperty).Replace ("%DEPENDSONTARGETS%", dependsOnTargets)); - using (var proc = new Process ()) { - var isDotNetProject = csproj.IsDotNetProject (); - if (!isDotNetProject) - throw new NotSupportedException ("Legacy projects not supported anymore"); + using (var proc = new Process ()) { + proc.StartInfo.FileName = GetDotNetExecutable (projectPath); + proc.StartInfo.WorkingDirectory = dir; + var args = proc.StartInfo.ArgumentList; - proc.StartInfo.FileName = GetDotNetExecutable (projectPath); - var args = new List (); + args.Add ("build"); + args.Add (projectPath); + args.Add ($"-getProperty:{evaluateProperty}"); - if (isDotNetProject) - args.Add ("build"); + if (!string.IsNullOrEmpty (dependsOnTargets)) + args.Add ($"-t:{dependsOnTargets}"); - args.Add ("/p:ProjectFile=" + projectPath); - args.Add ("/p:OutputFile=" + output); + args.Add ("-nologo"); + args.Add ("-verbosity:quiet"); + + if (properties is not null) { + foreach (var prop in properties) + args.Add ($"/p:{prop.Key}={prop.Value}"); + } + + var env = new Dictionary { + { "MSBUILD_EXE_PATH", null }, + { "MSBuildSDKsPath", null }, + }; - if (properties is not null) { - foreach (var prop in properties) - args.Add ($"/p:{prop.Key}={prop.Value}"); - } - args.Add (inspector); - - var env = new Dictionary { - { "MSBUILD_EXE_PATH", null }, - }; - - proc.StartInfo.Arguments = StringUtils.FormatArguments (args); - proc.StartInfo.WorkingDirectory = dir; - - // Don't evaluate in parallel on multiple threads to avoid overloading the mac. - var acquired = await evaluate_semaphore.WaitAsync (TimeSpan.FromMinutes (5)); - try { - var log = getLog () ?? new ConsoleLog (); - var memoryLog = new MemoryLog (); - var aggregated = Log.CreateAggregatedLog (memoryLog, log); - if (!acquired) - aggregated.WriteLine ("Unable to acquire lock to evaluate MSBuild property in 5 minutes; will try to evaluate anyway."); - var rv = await processManager.RunAsync (proc, aggregated, environmentVariables: env, timeout: TimeSpan.FromMinutes (5)); - if (!rv.Succeeded) { - var msg = $"Unable to evaluate the property {evaluateProperty} in {projectPath}, build failed with exit code {rv.ExitCode}. Timed out: {rv.TimedOut}"; - Console.WriteLine (msg + " Output: \n" + memoryLog.ToString ()); - throw new Exception (msg); - } - } finally { - if (acquired) - evaluate_semaphore.Release (); + // Don't evaluate in parallel on multiple threads to avoid overloading the mac. + var acquired = await evaluate_semaphore.WaitAsync (TimeSpan.FromMinutes (5)); + try { + var log = getLog () ?? new ConsoleLog (); + var stdout = new MemoryLog () { Timestamp = false }; + if (!acquired) + log.WriteLine ("Unable to acquire lock to evaluate MSBuild property in 5 minutes; will try to evaluate anyway."); + var rv = await processManager.RunAsync (proc, log, stdoutLog: stdout, stderrLog: log, environmentVariables: env, timeout: TimeSpan.FromMinutes (5)); + if (!rv.Succeeded) { + var msg = $"Unable to evaluate the property {evaluateProperty} in {projectPath}, build failed with exit code {rv.ExitCode}. Timed out: {rv.TimedOut}"; + Console.WriteLine (msg + " Output: \n" + stdout.ToString ()); + throw new Exception (msg); } - return File.ReadAllText (output).Trim (); + return stdout.ToString ().Trim (); + } finally { + if (acquired) + evaluate_semaphore.Release (); } - } finally { - File.Delete (inspector); - File.Delete (output); } } From cd3acb2c221f55e20b0ab6412d680a76e04b8699 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 30 Jun 2026 16:16:18 +0200 Subject: [PATCH 07/23] [docs] Improve XML docs for WebNavigationPolicyEventArgs (#25859) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Improve XML documentation for the `WebNavigationPolicyEventArgs` type: - Replace 'To be added.' placeholders with meaningful descriptions - Remove empty `` 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> --- src/WebKit/WebNavigationPolicyEventArgs.cs | 28 +++++++++------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/src/WebKit/WebNavigationPolicyEventArgs.cs b/src/WebKit/WebNavigationPolicyEventArgs.cs index 9281927bd015..eb9b317d1670 100644 --- a/src/WebKit/WebNavigationPolicyEventArgs.cs +++ b/src/WebKit/WebNavigationPolicyEventArgs.cs @@ -25,29 +25,25 @@ public enum WebActionMouseButton { Right = 2, } - /// To be added. - /// To be added. + /// Provides data for the web navigation policy event, including the navigation type, mouse button, and modifier flags. [ObsoletedOSPlatform ("macos10.14", "No longer supported.")] [SupportedOSPlatform ("macos")] partial class WebNavigationPolicyEventArgs { - /// To be added. - /// To be added. - /// To be added. + /// Gets the type of navigation that triggered this policy decision. + /// The of the action. public WebNavigationType NavigationType { get { return (WebNavigationType) (((NSNumber?) ActionInformation [WebPolicyDelegate.WebActionNavigationTypeKey])?.Int32Value ?? 0); } } - /// To be added. - /// To be added. - /// To be added. + /// Gets the element information dictionary for the action, if available. + /// A dictionary containing information about the element that triggered the action, or if not available. public NSDictionary? ElementInfo { get { return ActionInformation [WebPolicyDelegate.WebActionElementKey] as NSDictionary; } } - /// To be added. - /// To be added. - /// To be added. + /// Gets the mouse button that triggered the navigation action. + /// The that was pressed, or if no button was pressed. public WebActionMouseButton MouseButton { get { var number = ActionInformation [WebPolicyDelegate.WebActionButtonKey] as NSNumber; @@ -59,16 +55,14 @@ public WebActionMouseButton MouseButton { } } - /// To be added. - /// To be added. - /// To be added. + /// Gets the keyboard modifier flags that were active during the navigation action. + /// The modifier flags as an unsigned integer bitmask. public uint Flags { get { return ((NSNumber?) ActionInformation [WebPolicyDelegate.WebActionModifierFlagsKey])?.UInt32Value ?? 0; } } - /// To be added. - /// To be added. - /// To be added. + /// Gets the original URL that triggered the navigation action. + /// The original URL, or if not available. public NSUrl? OriginalUrl { get { return ActionInformation [WebPolicyDelegate.WebActionOriginalUrlKey] as NSUrl; } } From 1186cf925a9134693bb691ff1c8d01f99134e1af Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 30 Jun 2026 16:17:13 +0200 Subject: [PATCH 08/23] [scripts] Improve 'run-packaged-macos-tests' to write diagnostic output 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. --- .../run-packaged-macos-tests.cs | 36 +++++++++++++------ 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/scripts/run-packaged-macos-tests/run-packaged-macos-tests.cs b/scripts/run-packaged-macos-tests/run-packaged-macos-tests.cs index d7f4880d71b2..2bb1fc2ced18 100644 --- a/scripts/run-packaged-macos-tests/run-packaged-macos-tests.cs +++ b/scripts/run-packaged-macos-tests/run-packaged-macos-tests.cs @@ -254,17 +254,18 @@ (int ExitCode, string Output) ExecuteWithTimeout (string executable, string [] arguments, int timeoutSeconds) { - var launchTimeout = TimeSpan.FromSeconds (10); + var launchTimeout = TimeSpan.FromSeconds (30); var executionTimeout = TimeSpan.FromSeconds (timeoutSeconds); var maxLaunchAttempts = 10; var pid = Process.GetCurrentProcess ().Id; + var outputSb = new StringBuilder (); + string output; + for (var attempt = 0; attempt < maxLaunchAttempts; attempt++) { var launchTimeoutFile = Path.GetFullPath ($"launch-timeout-sentinel-{pid}-{attempt}.txt"); using var launchTimedOut = new ManualResetEvent (false); - var outputSb = new StringBuilder (); - var p = new Process (); p.StartInfo.FileName = executable; foreach (var arg in arguments) @@ -289,7 +290,8 @@ if (p.WaitForExit ((int) launchTimeout.TotalMilliseconds)) { // App finished before launch timeout } else if (!File.Exists (launchTimeoutFile)) { - Console.WriteLine ($"Launch timed out after {launchTimeout.TotalSeconds} seconds."); + lock (outputSb) + outputSb.AppendLine ($"Launch timed out after {launchTimeout.TotalSeconds} seconds."); launchTimedOut.Set (); AbortProcess (p); } @@ -298,7 +300,8 @@ }; try { - Console.WriteLine ($"Launching (attempt #{attempt + 1}): {executable} {string.Join (" ", arguments)}"); + lock (outputSb) + outputSb.AppendLine ($"Launching (attempt #{attempt + 1}): {executable} {string.Join (" ", arguments)}"); p.Start (); p.BeginOutputReadLine (); p.BeginErrorReadLine (); @@ -306,27 +309,38 @@ launchTimer.Start (); if (!p.WaitForExit ((int) executionTimeout.TotalMilliseconds)) { - Console.WriteLine ($"Execution timed out after {executionTimeout.TotalSeconds} seconds."); + lock (outputSb) + outputSb.AppendLine ($"Execution timed out after {executionTimeout.TotalSeconds} seconds."); AbortProcess (p); - p.WaitForExit (); } + // this is required, even if 'p.WaitForExit (timeout)' return true, to flush output buffers. + p.WaitForExit (); launchTimer.Join (); if (launchTimedOut.WaitOne (0)) { - Console.WriteLine ("Launching again since the launch timeout triggered."); + lock (outputSb) + outputSb.AppendLine ("Launching again since the launch timeout triggered."); continue; } - Console.WriteLine ($"Execution completed with exit code {p.ExitCode}"); - return (p.ExitCode, outputSb.ToString ()); + lock (outputSb) { + outputSb.AppendLine ($"Execution completed with exit code {p.ExitCode}"); + output = outputSb.ToString (); + } + return (p.ExitCode, output); } finally { File.Delete (launchTimeoutFile); p.Dispose (); } } - return (-1, "Failed to launch after maximum attempts"); + lock (outputSb) { + outputSb.AppendLine ("Failed to launch after maximum attempts"); + output = outputSb.ToString (); + } + + return (-1, output); } void AbortProcess (Process process) From bbf0e4914624af1cc8d3e2c6ff5e496c437c9e1e Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 30 Jun 2026 16:18:04 +0200 Subject: [PATCH 09/23] [build] We can build the dotnet/ directory without Xcode. (#25812) --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Rolf Bjarne Kvinge --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4f8bfa47322b..7cfdb015d832 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ endif SUBDIRS += tools -ifndef NO_XCODE +ifeq ($(UNAME_S),Darwin) SUBDIRS += dotnet endif From ea68df50ef8f4eb8526f01f14b51e1afcd861e39 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 30 Jun 2026 16:56:22 +0200 Subject: [PATCH 10/23] [msbuild/tools] Move post-trimming custom trimmer steps to a post-ILLink MSBuild task. (#25742) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 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. --- dotnet/targets/Xamarin.Shared.Sdk.targets | 34 ++++--- .../MSBStrings.resx | 3 + .../Tasks/PrepareAssemblies.cs | 14 ++- msbuild/Xamarin.Shared/Xamarin.Shared.targets | 46 +++++++++ tests/dotnet/UnitTests/WindowsTest.cs | 95 +++++++++++++++++++ tools/assembly-preparer/AssemblyPreparer.cs | 48 ++++++++++ tools/assembly-preparer/CollectFieldsStep.cs | 27 ++++-- .../PopulateApplicationAssembliesStep.cs | 44 +++++++++ tools/assembly-preparer/SaveAssembliesStep.cs | 36 ++++++- .../assembly-preparer.csproj | 36 +++++++ tools/common/Application.cs | 3 +- tools/common/Assembly.cs | 5 +- tools/common/StaticRegistrar.cs | 6 +- tools/dotnet-linker/LinkerConfiguration.cs | 5 +- .../Steps/ComputeAOTArguments.cs | 4 + .../Steps/ExtractBindingLibrariesStep.cs | 5 +- .../Steps/GenerateReferencesStep.cs | 3 +- .../Steps/InlineClassGetHandleStep.cs | 5 + tools/dotnet-linker/Steps/RegistrarStep.cs | 2 + .../MonoTouch.Tuner/ListExportedSymbols.cs | 25 ++++- tools/linker/RemoveUserResourcesSubStep.cs | 78 ++++++++++----- 21 files changed, 456 insertions(+), 68 deletions(-) create mode 100644 tools/assembly-preparer/PopulateApplicationAssembliesStep.cs diff --git a/dotnet/targets/Xamarin.Shared.Sdk.targets b/dotnet/targets/Xamarin.Shared.Sdk.targets index edf3226b5cae..232d6e16fdeb 100644 --- a/dotnet/targets/Xamarin.Shared.Sdk.targets +++ b/dotnet/targets/Xamarin.Shared.Sdk.targets @@ -781,7 +781,9 @@ > copy + + @@ -832,28 +834,30 @@ - <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" BeforeStep="OutputStep" Type="Xamarin.Linker.LoadNonSkippedAssembliesStep" /> - <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" BeforeStep="OutputStep" Type="Xamarin.Linker.ExtractBindingLibrariesStep" /> + <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" BeforeStep="OutputStep" Condition="'$(PostProcessAssemblies)' != 'true'" Type="Xamarin.Linker.LoadNonSkippedAssembliesStep" /> + <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" BeforeStep="OutputStep" Condition="'$(PostProcessAssemblies)' != 'true'" Type="Xamarin.Linker.ExtractBindingLibrariesStep" /> - <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" BeforeStep="OutputStep" Type="Xamarin.Linker.Steps.ListExportedSymbols" /> - <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" BeforeStep="OutputStep" Type="Xamarin.Linker.Steps.PreOutputDispatcher" /> - <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" BeforeStep="OutputStep" Type="Xamarin.Linker.ClassHandleRewriterStep" Condition="'$(InlineClassGetHandle)' == '' Or '$(InlineClassGetHandle)' == 'disabled'" /> + <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" BeforeStep="OutputStep" Condition="'$(PostProcessAssemblies)' != 'true'" Type="Xamarin.Linker.Steps.ListExportedSymbols" /> + <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" BeforeStep="OutputStep" Condition="'$(PostProcessAssemblies)' != 'true'" Type="Xamarin.Linker.Steps.PreOutputDispatcher" /> + <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" BeforeStep="OutputStep" Condition="'$(PostProcessAssemblies)' != 'true' And ('$(InlineClassGetHandle)' == '' Or '$(InlineClassGetHandle)' == 'disabled')" Type="Xamarin.Linker.ClassHandleRewriterStep" /> - <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.Linker.ManagedRegistrarStep" Condition="'$(PrepareAssemblies)' == 'true' And ('$(Registrar)' == 'managed-static' Or '$(Registrar)' == 'trimmable-static')" /> - <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.Linker.TrimmableRegistrarStep" Condition="'$(PrepareAssemblies)' == 'true' And '$(Registrar)' == 'trimmable-static'" /> - <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.Linker.ManagedRegistrarLookupTablesStep" Condition="'$(PrepareAssemblies)' == 'true' And '$(Registrar)' == 'managed-static'" /> - <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.Linker.RegistrarStep" /> - <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.GenerateMainStep" /> - <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.GenerateReferencesStep" /> - <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.GatherFrameworksStep" /> - <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.Linker.ComputeNativeBuildFlagsStep" /> - <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.Linker.ComputeAOTArguments" /> + <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.Linker.ManagedRegistrarStep" Condition="'$(PrepareAssemblies)' == 'true' And '$(PostProcessAssemblies)' != 'true' And ('$(Registrar)' == 'managed-static' Or '$(Registrar)' == 'trimmable-static')" /> + <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.Linker.TrimmableRegistrarStep" Condition="'$(PrepareAssemblies)' == 'true' And '$(PostProcessAssemblies)' != 'true' And '$(Registrar)' == 'trimmable-static'" /> + <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.Linker.ManagedRegistrarLookupTablesStep" Condition="'$(PrepareAssemblies)' == 'true' And '$(PostProcessAssemblies)' != 'true' And '$(Registrar)' == 'managed-static'" /> + <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.Linker.RegistrarStep" Condition="'$(PostProcessAssemblies)' != 'true'" /> + <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.GenerateMainStep" Condition="'$(PostProcessAssemblies)' != 'true'" /> + <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.GenerateReferencesStep" Condition="'$(PostProcessAssemblies)' != 'true'" /> + <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.GatherFrameworksStep" Condition="'$(PostProcessAssemblies)' != 'true'" /> + <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.Linker.ComputeNativeBuildFlagsStep" Condition="'$(PostProcessAssemblies)' != 'true'" /> + <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.Linker.ComputeAOTArguments" Condition="'$(PostProcessAssemblies)' != 'true'" /> - <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.Linker.DoneStep" /> + <_TrimmerCustomSteps Include="$(_AdditionalTaskAssembly)" Type="Xamarin.Linker.DoneStep" Condition="'$(PostProcessAssemblies)' != 'true'" /> + + diff --git a/msbuild/Xamarin.Localization.MSBuild/MSBStrings.resx b/msbuild/Xamarin.Localization.MSBuild/MSBStrings.resx index 0602550cda86..630ccdbb75e3 100644 --- a/msbuild/Xamarin.Localization.MSBuild/MSBStrings.resx +++ b/msbuild/Xamarin.Localization.MSBuild/MSBStrings.resx @@ -1690,4 +1690,7 @@ Shown when a binding resource package's manifest contains a native reference whose 'Name' attribute is missing or empty. {0} - The path to the binding resource package. + + The PrepareAssemblies task failed without reporting a specific error. Please rebuild with increased verbosity for more details. + diff --git a/msbuild/Xamarin.MacDev.Tasks/Tasks/PrepareAssemblies.cs b/msbuild/Xamarin.MacDev.Tasks/Tasks/PrepareAssemblies.cs index 6c5b49233278..9a94d2bb4cb8 100644 --- a/msbuild/Xamarin.MacDev.Tasks/Tasks/PrepareAssemblies.cs +++ b/msbuild/Xamarin.MacDev.Tasks/Tasks/PrepareAssemblies.cs @@ -14,6 +14,7 @@ using Xamarin.Build; using Xamarin.Bundler; +using Xamarin.Localization.MSBuild; using Xamarin.Utils; #nullable enable @@ -35,6 +36,8 @@ public class PrepareAssemblies : XamarinTask { public ITaskItem? OptionsFile { get; set; } #endregion + public bool PostProcessing { get; set; } + #region Outputs [Output] public ITaskItem [] OutputAssemblies { get; set; } = []; @@ -63,7 +66,14 @@ public override bool Execute () var infos = InputAssemblies.Select (GetAssemblyInfo).ToArray (); using var preparer = new AssemblyPreparer (this, infos, OptionsFile?.ItemSpec ?? ""); preparer.MakeReproPath = MakeReproPath; - var rv = preparer.Prepare (out var exceptions); + bool rv; + List exceptions; + + if (PostProcessing) { + rv = preparer.PostProcess (out exceptions); + } else { + rv = preparer.Prepare (out exceptions); + } foreach (var pe in exceptions) { if (pe.IsError (this)) { @@ -100,6 +110,8 @@ public override bool Execute () })); OutputAssemblies = outputAssemblies.ToArray (); + if (!rv && !Log.HasLoggedErrors) + Log.LogError (MSBStrings.E0192); return rv && !Log.HasLoggedErrors; } catch (Exception e) { ((IToolLog) this).LogException (e); diff --git a/msbuild/Xamarin.Shared/Xamarin.Shared.targets b/msbuild/Xamarin.Shared/Xamarin.Shared.targets index 7930d61aa2e8..74747fb67620 100644 --- a/msbuild/Xamarin.Shared/Xamarin.Shared.targets +++ b/msbuild/Xamarin.Shared/Xamarin.Shared.targets @@ -3460,6 +3460,7 @@ Copyright (C) 2018 Microsoft. All rights reserved. false + $(PrepareAssemblies) @@ -3509,6 +3510,51 @@ Copyright (C) 2018 Microsoft. All rights reserved. + + + + <_AssembliesToPostProcess Include="@(ResolvedFileToPublish)" Condition="'%(ResolvedFileToPublish.Extension)' == '.dll' And '%(ResolvedFileToPublish.Culture)' == '' And !$([System.String]::Copy ('%(Filename)').EndsWith ('.resources'))" /> + + + <_PostprocessedAssembliesDirectory>$([MSBuild]::EnsureTrailingSlash('$(DeviceSpecificIntermediateOutputPath)postprocessed-assemblies')) + + + + + + + + + + + + + + + + diff --git a/tests/dotnet/UnitTests/WindowsTest.cs b/tests/dotnet/UnitTests/WindowsTest.cs index b7b9d9a2e25f..e156da865385 100644 --- a/tests/dotnet/UnitTests/WindowsTest.cs +++ b/tests/dotnet/UnitTests/WindowsTest.cs @@ -341,6 +341,101 @@ public void StripTest (ApplePlatform platform, string runtimeIdentifiers, string DotNet.AssertBuild (project_path, properties, timeout: TimeSpan.FromMinutes (15)); } +#if !NET11_0_OR_GREATER // in .NET the assembly preparer mode is the default, so no need for a separate test. + [Category ("RemoteWindows")] + [TestCase (ApplePlatform.iOS, "ios-arm64")] + public void AssemblyPreparerRemoteTest (ApplePlatform platform, string runtimeIdentifiers) + { + var project = "MySimpleApp"; + var configuration = "Debug"; + + Configuration.IgnoreIfIgnoredPlatform (platform); + Configuration.AssertRuntimeIdentifiersAvailable (platform, runtimeIdentifiers); + Configuration.IgnoreIfNotOnWindows (); + + var project_path = GetProjectPath (project, runtimeIdentifiers: runtimeIdentifiers, platform: platform, out var appPath); + var project_dir = Path.GetDirectoryName (project_path)!; + Clean (project_path); + + var properties = GetDefaultProperties (runtimeIdentifiers); + + // Copy the app bundle to Windows so that we can inspect the results. + properties ["CopyAppBundleToWindows"] = "true"; + // Check for updated files on the remote output and update them locally so the app is ready for debug + properties ["KeepLocalOutputUpToDate"] = "true"; + // Don't clean the zip file with the updated files from the remote side so they can be asserted + properties ["CleanChangedOutputFilesZipFile"] = "false"; + // Enable the assembly preparer + properties ["AssemblyPreparer"] = "true"; + + var result = DotNet.AssertBuild (project_path, properties, timeout: TimeSpan.FromMinutes (15)); + AssertThatLinkerExecuted (result); + + var objDir = GetObjDir (project_path, platform, runtimeIdentifiers, configuration); + + var zippedAppBundlePath = Path.Combine (objDir, "AppBundle.zip"); + Assert.That (zippedAppBundlePath, Does.Exist, "AppBundle.zip"); + + // Open the zipped app bundle and get the Info.plist + using var zip = ZipFile.OpenRead (zippedAppBundlePath); + ZipHelpers.DumpZipFile (zip, zippedAppBundlePath); + var infoPlistEntry = zip.Entries.SingleOrDefault (v => v.Name == "Info.plist"); + Assert.That (infoPlistEntry, Is.Not.Null, "Info.plist"); + + // Parse the Info.plist + // PDictionary.FromStream requires a seekable stream, but the zip stream isn't seekable, so copy to a + // MemoryStream and use that. Info.plist files aren't big, so this shouldn't become a memory consumption problem. + using var memoryStream = new MemoryStream ((int) infoPlistEntry!.Length); + using var plistStream = infoPlistEntry.Open (); + plistStream.CopyTo (memoryStream); + + var infoPlist = (PDictionary) PDictionary.FromStream (memoryStream)!; + Assert.That (infoPlist.GetString ("CFBundleIdentifier").Value, Is.EqualTo ("com.xamarin.mysimpleapp"), "CFBundleIdentifier"); + Assert.That (infoPlist.GetString ("CFBundleDisplayName").Value, Is.EqualTo ("MySimpleApp"), "CFBundleDisplayName"); + Assert.That (infoPlist.GetString ("CFBundleVersion").Value, Is.EqualTo ("3.14"), "CFBundleVersion"); + Assert.That (infoPlist.GetString ("CFBundleShortVersionString").Value, Is.EqualTo ("3.14"), "CFBundleShortVersionString"); + + //Validate that the output assemblies report file with the list of local assemblies, lengths and MVIDs has been created + var outputAssembliesReportFileName = "OutputAssembliesReport.txt"; + var outputAssembliesReportFile = Path.Combine (objDir, outputAssembliesReportFileName); + Assert.That (outputAssembliesReportFile, Does.Exist, outputAssembliesReportFileName); + + //Validate that the file with the updated assemblies to replace locally has been created + var zippedChangedOutputFilesFileName = "ChangedOutputFiles.zip"; + var zippedChangedOutputFiles = Path.Combine (objDir, zippedChangedOutputFilesFileName); + Assert.That (zippedChangedOutputFiles, Does.Exist, zippedChangedOutputFilesFileName); + + //Create a directory in the obj to extract the updated assemblies + var changedOutputFilesDirectory = Path.Combine (objDir, "ChangedOutputFiles"); + Directory.CreateDirectory (changedOutputFilesDirectory); + + //Extract the updated assemblies from the zip file + using var changedOutputFilesZip = ZipFile.OpenRead (zippedChangedOutputFiles); + ZipHelpers.DumpZipFile (changedOutputFilesZip, zippedChangedOutputFiles); + changedOutputFilesZip.ExtractToDirectory (changedOutputFilesDirectory, overwriteFiles: true); + + //Reads the output assemblies report file + var outputAssembliesReportFileList = GetOutputAssembliesReportFileList (outputAssembliesReportFile); + var changedOutputAssemblies = Directory.GetFiles (changedOutputFilesDirectory, "*.dll", SearchOption.TopDirectoryOnly); + + foreach (var file in changedOutputAssemblies) { + var fileName = Path.GetFileName (file); + var fileInReport = outputAssembliesReportFileList.TryGetValue (fileName, out (long length, Guid mvid) localInfo); + + if (fileInReport) { + var fileInfo = new FileInfo (file); + using Stream stream = fileInfo.OpenRead (); + using var peReader = new PEReader (stream); + MetadataReader metadataReader = peReader.GetMetadataReader (); + Guid mvid = metadataReader.GetGuid (metadataReader.GetModuleDefinition ().Mvid); + var fileWasUpdated = fileInfo.Length != localInfo.length || mvid != localInfo.mvid; + + Assert.That (fileWasUpdated, Is.True, $"The file '{fileName}' is identical to the one present in the output assemblies report file '{outputAssembliesReportFile}'"); + } + } + } +#endif // NET11_0_OR_GREATER + [Category ("RemoteWindows")] [TestCase (ApplePlatform.iOS, "ios-arm64")] public void RemoteTest (ApplePlatform platform, string runtimeIdentifiers) diff --git a/tools/assembly-preparer/AssemblyPreparer.cs b/tools/assembly-preparer/AssemblyPreparer.cs index 9fd1c37c5c25..53caadb1dd1d 100644 --- a/tools/assembly-preparer/AssemblyPreparer.cs +++ b/tools/assembly-preparer/AssemblyPreparer.cs @@ -136,11 +136,59 @@ public bool Prepare (out List exceptions) new ManagedRegistrarStep (), new TrimmableRegistrarStep (), new ManagedRegistrarLookupTablesStep (), + new InlineClassGetHandleStep (), new SaveAssembliesStep (), }; return RunSteps (steps, out exceptions); } + public bool PostProcess (out List exceptions) + { + configuration.Application.IsPostProcessingAssemblies = true; + + var steps = new ConfigurationAwareStep [] { + // All the same steps as the custom trimmer steps that are run after sweeping in Xamarin.Shared.Sdk.targets (and in the same order). + new LoadAssembliesStep (), // LoadNonSkippedAssembliesStep + + // post-sweep + new CollectFieldsStep (), // Must run before ListExportedSymbols to populate ExportedFields annotation + new ExtractBindingLibrariesStep (), + // The ListExportedSymbols must run after ExtractBindingLibrariesStep, otherwise we won't properly list exported Objective-C classes from binding libraries + new ListExportedSymbols (), + new RemoveUserResourcesSubStep (), // from PreOutputDispatcher. + // We're not doing ClassHandleRewriterStep, that's replaced by InlineClassGetHandleStep, which is run in Prepare(). + + // ManagedRegistrarStep/TrimmableRegistrarStep/ManagedRegistrarLookupTablesStep + // must run before SaveAssembliesStep because they modify assemblies (adding + // lookup tables and ldtoken instructions). SaveAssembliesStep writes the final + // versions to disk with correct metadata tokens. + new ManagedRegistrarStep (), + new TrimmableRegistrarStep (), + new ManagedRegistrarLookupTablesStep (), + + new SaveAssembliesStep (), + + // PopulateApplicationAssembliesStep must run after SaveAssembliesStep so that + // OutputPath is set correctly (used by ComputeAOTArguments and GatherFrameworksStep). + new PopulateApplicationAssembliesStep (), + + // post-output + + new RegistrarStep (), + + new GenerateMainStep (), + new GenerateReferencesStep (), + new GatherFrameworksStep (), + new ComputeNativeBuildFlagsStep (), + new ComputeAOTArguments (), + + // Must be the last step. + new DoneStep (), + }; + + return RunSteps (steps, out exceptions); + } + bool RunSteps (IList steps, out List exceptions) { exceptions = configuration.Exceptions; diff --git a/tools/assembly-preparer/CollectFieldsStep.cs b/tools/assembly-preparer/CollectFieldsStep.cs index de339289e565..65c59358b51c 100644 --- a/tools/assembly-preparer/CollectFieldsStep.cs +++ b/tools/assembly-preparer/CollectFieldsStep.cs @@ -2,21 +2,22 @@ // Licensed under the MIT License. using Mono.Cecil; +using Mono.Linker; using Mono.Tuner; +using Xamarin.Linker; + namespace MonoTouch.Tuner { - // Populate FieldSymbols for InlineDlfcnMethodsStep's compatibility mode. - // This is equivalent to what ProcessExportedFields does in the ILLink pipeline. + // Populate FieldSymbols and ExportedFields annotation for InlineDlfcnMethodsStep + // and ListExportedSymbols. This is equivalent to what ProcessExportedFields does + // in the ILLink pipeline. public class CollectFieldsStep : ConfigurationAwareStep { protected override string Name { get; } = "CollectFields"; protected override int ErrorCode { get; } = 2480; protected override bool IsActiveFor (AssemblyDefinition assembly) { - if (!Configuration.InlineDlfcnMethodsEnabled) - return false; - if (!assembly.MainModule.HasTypeReference (Namespaces.Foundation + ".FieldAttribute")) return false; @@ -49,7 +50,21 @@ void CollectFieldSymbols (TypeDefinition type) continue; if (attrib.ConstructorArguments.Count < 1) continue; - Configuration.FieldSymbols.Add ((string) attrib.ConstructorArguments [0].Value); + + var symbolName = (string) attrib.ConstructorArguments [0].Value; + + // Populate FieldSymbols for InlineDlfcnMethodsStep's compatibility mode. + if (Configuration.InlineDlfcnMethodsEnabled) + Configuration.FieldSymbols.Add (symbolName); + + // Populate ExportedFields annotation for ListExportedSymbols + // (so native linker keeps __Internal field symbols for dlsym). + if (attrib.ConstructorArguments.Count == 2) { + var libraryName = (string) attrib.ConstructorArguments [1].Value; + if (libraryName == "__Internal") + Annotations.GetCustomAnnotations ("ExportedFields") [property] = symbolName; + } + break; } } diff --git a/tools/assembly-preparer/PopulateApplicationAssembliesStep.cs b/tools/assembly-preparer/PopulateApplicationAssembliesStep.cs new file mode 100644 index 000000000000..59c25473d317 --- /dev/null +++ b/tools/assembly-preparer/PopulateApplicationAssembliesStep.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using System.IO; + +using Mono.Cecil; +using Mono.Linker; + +using Xamarin.Build; +using Xamarin.Bundler; +using Xamarin.Linker; + +namespace MonoTouch.Tuner { + // Populate Application.Assemblies with the loaded assemblies. + // This is needed so that steps like ComputeAOTArguments and GatherFrameworksStep + // can find the assemblies they need to process. + // This is equivalent to LoadNonSkippedAssembliesStep in the ILLink path. + // This step must run after SaveAssembliesStep, so that OutputPath is set correctly. + public class PopulateApplicationAssembliesStep : ConfigurationAwareStep { + protected override string Name { get; } = "PopulateApplicationAssemblies"; + protected override int ErrorCode { get; } = 2520; + + protected override void TryProcess () + { + foreach (var assembly in Configuration.AssemblyInfos) { + if (!assembly.IsCILAssembly) + continue; + var assemblyDefinition = assembly.Assembly; + if (assemblyDefinition is null) + continue; + var action = Context.Annotations.GetAction (assemblyDefinition); + switch (action) { + case AssemblyAction.Delete: + case AssemblyAction.Skip: + break; + default: + var ad = Configuration.Application.AddAssembly (assemblyDefinition); + ad.FullPath = assembly.OutputPath; + break; + } + } + } + } +} diff --git a/tools/assembly-preparer/SaveAssembliesStep.cs b/tools/assembly-preparer/SaveAssembliesStep.cs index 2c8878b5a962..1b23b2f5bd97 100644 --- a/tools/assembly-preparer/SaveAssembliesStep.cs +++ b/tools/assembly-preparer/SaveAssembliesStep.cs @@ -22,8 +22,10 @@ protected override void TryProcess () var log = Configuration; foreach (var assembly in configuration.AssemblyInfos) { - if (!assembly.IsCILAssembly) + if (!assembly.IsCILAssembly) { + // Non-managed assembly, already handled by LoadAssembliesStep (OutputPath = InputPath). continue; + } var assemblyDefinition = assembly.Assembly; if (assemblyDefinition is null) { @@ -35,7 +37,13 @@ protected override void TryProcess () switch (action) { case AssemblyAction.Copy: case AssemblyAction.CopyUsed: - assembly.OutputPath = assembly.InputPath; + if (configuration.Application.IsPostProcessingAssemblies && assembly.InputPath != assembly.OutputPath) { + // During post-processing, copy unchanged assemblies to the output directory + // so all assemblies are in the same directory (required for AOT compilation). + CopyAssemblyToOutput (assembly.InputPath, assembly.OutputPath); + } else { + assembly.OutputPath = assembly.InputPath; + } continue; case AssemblyAction.Link: case AssemblyAction.Save: @@ -88,5 +96,29 @@ void RemoveCrossGen (AssemblyDefinition assemblyDefinition) } } } + + void CopyAssemblyToOutput (string source, string target) + { + PathUtils.CreateDirectoryForFile (target); + + CopyIfNeeded (source, target); + CopyIfNeeded (Path.ChangeExtension (source, ".pdb"), Path.ChangeExtension (target, ".pdb")); + CopyIfNeeded (source + ".config", target + ".config"); + } + + void CopyIfNeeded (string source, string target) + { + if (!File.Exists (source)) + return; + + // Skip if target is already up-to-date. + if (File.Exists (target) && File.GetLastWriteTimeUtc (source) <= File.GetLastWriteTimeUtc (target)) { + Configuration.Log ($"Not copying '{source}' to '{target}' because it's already up-to-date."); + return; + } + + Configuration.Log ($"Copying '{source}' to '{target}'."); + File.Copy (source, target, true); + } } } diff --git a/tools/assembly-preparer/assembly-preparer.csproj b/tools/assembly-preparer/assembly-preparer.csproj index 89a35b82fccf..803c0b76e09c 100644 --- a/tools/assembly-preparer/assembly-preparer.csproj +++ b/tools/assembly-preparer/assembly-preparer.csproj @@ -165,9 +165,33 @@ external/tools/dotnet-linker/Steps/AssemblyModifierStep.cs + + external/tools/dotnet-linker/Steps/ComputeAOTArguments.cs + + + external/tools/dotnet-linker/Steps/ComputeNativeBuildFlagsStep.cs + external/tools/dotnet-linker/Steps/ConfigurationAwareStep.cs + + external/tools/dotnet-linker/Steps/DoneStep.cs + + + external/tools/dotnet-linker/Steps/ExtractBindingLibrariesStep.cs + + + external/tools/dotnet-linker/Steps/GatherFrameworksStep.cs + + + external/tools/dotnet-linker/Steps/GenerateMainStep.cs + + + external/tools/dotnet-linker/Steps/GenerateReferencesStep.cs + + + external/tools/dotnet-linker/Steps/InlineClassGetHandleStep.cs + external/tools/dotnet-linker/Steps/InlineDlfcnMethodsStep.cs @@ -180,6 +204,9 @@ external/tools/dotnet-linker/Steps/PreserveBlockCodeStep.cs + + external/tools/dotnet-linker/Steps/RegistrarStep.cs + external/tools/dotnet-linker/Steps/SetBeforeFieldInitStep.cs @@ -201,6 +228,9 @@ external/tools/linker/MonoTouch.Tuner/Extensions.cs + + external/tools/linker/MonoTouch.Tuner/ListExportedSymbols.cs + external/tools/linker/ObjCExtensions.cs @@ -210,6 +240,9 @@ external/tools/linker/RegistrarRemovalTrackingStep.cs + + external/tools/linker/RemoveUserResourcesSubStep.cs + external/src/Foundation/ExportAttribute.cs @@ -261,6 +294,9 @@ external/tools/dotnet-linker/DocumentionComments.cs + + external/tools/common/CompilerFlags.cs + external/tools/common/SdkVersions.cs diff --git a/tools/common/Application.cs b/tools/common/Application.cs index 8da7ac74c63a..00f6d75fa8b2 100644 --- a/tools/common/Application.cs +++ b/tools/common/Application.cs @@ -83,10 +83,11 @@ public partial class Application : IToolLog { public bool PrepareAssemblies; // True if '$(PrepareAssemblies)' == 'true' #if ASSEMBLY_PREPARER public bool InCustomTrimmerStep = false; + public bool IsPostProcessingAssemblies; #else public bool InCustomTrimmerStep = true; -#endif public bool IsPostProcessingAssemblies => PrepareAssemblies && InCustomTrimmerStep; +#endif #if !LEGACY_TOOLS public DlsymOptions DlsymOptions; diff --git a/tools/common/Assembly.cs b/tools/common/Assembly.cs index c03e249d68d3..ccced30f5948 100644 --- a/tools/common/Assembly.cs +++ b/tools/common/Assembly.cs @@ -66,10 +66,7 @@ public string FullPath { set { full_path = value; if (!is_framework_assembly.HasValue && !string.IsNullOrEmpty (full_path)) { -#if ASSEMBLY_PREPARER - is_framework_assembly = false; // silence compiler warning - throw new InvalidOperationException (); -#elif !LEGACY_TOOLS +#if !LEGACY_TOOLS is_framework_assembly = App.Configuration.FrameworkAssemblies.Contains (GetIdentity (full_path)); #else var real_full_path = Application.GetRealPath (App, full_path); diff --git a/tools/common/StaticRegistrar.cs b/tools/common/StaticRegistrar.cs index fc2f5d3f7da3..e3a74b016563 100644 --- a/tools/common/StaticRegistrar.cs +++ b/tools/common/StaticRegistrar.cs @@ -3964,7 +3964,7 @@ void Specialize (AutoIndentStringBuilder sb, ObjCMethod method, List nslog_start.AppendLine (");"); } -#if !LEGACY_TOOLS && !ASSEMBLY_PREPARER +#if !LEGACY_TOOLS // Generate the native trampoline to call the generated UnmanagedCallersOnly method if we're using the managed static registrar. if (LinkContext.App.Registrar == RegistrarMode.ManagedStatic || LinkContext.App.Registrar == RegistrarMode.TrimmableStatic) { GenerateCallToUnmanagedCallersOnlyMethod (sb, method, isCtor, isVoid, num_arg, descriptiveMethodName, exceptions); @@ -4194,7 +4194,7 @@ void Specialize (AutoIndentStringBuilder sb, ObjCMethod method, List } } -#if !LEGACY_TOOLS && !ASSEMBLY_PREPARER +#if !LEGACY_TOOLS void GenerateCallToUnmanagedCallersOnlyMethod (AutoIndentStringBuilder sb, ObjCMethod method, bool isCtor, bool isVoid, int num_arg, string descriptiveMethodName, List exceptions) { // Generate the native trampoline to call the generated UnmanagedCallersOnly method. @@ -5170,7 +5170,7 @@ bool TryCreateTokenReferenceUncached (MemberReference member, TokenType implied_ { var token = member.MetadataToken; -#if !LEGACY_TOOLS && !ASSEMBLY_PREPARER +#if !LEGACY_TOOLS if (App.Registrar == RegistrarMode.TrimmableStatic) throw ErrorHelper.CreateError (99, $"Can't create a token reference when using the trimmable static registrar (for: {member.FullName})"); diff --git a/tools/dotnet-linker/LinkerConfiguration.cs b/tools/dotnet-linker/LinkerConfiguration.cs index d5800c84b753..a5f94cceb61d 100644 --- a/tools/dotnet-linker/LinkerConfiguration.cs +++ b/tools/dotnet-linker/LinkerConfiguration.cs @@ -65,9 +65,7 @@ public class LinkerConfiguration { public IList RegistrationMethods { get; set; } = new List (); public List NativeCodeToCompileAndLink { get; private set; } = new List (); -#if !ASSEMBLY_PREPARER public CompilerFlags CompilerFlags; -#endif #if ASSEMBLY_PREPARER List exceptions = new List (); @@ -653,9 +651,7 @@ public LinkerConfiguration (IToolLog log, List lines, string linker_file configurations.Add (this.Context, this); #endif -#if !ASSEMBLY_PREPARER CompilerFlags = new CompilerFlags (Application); -#endif var configurator = GetConfigurator (linker_file); @@ -872,6 +868,7 @@ public void WriteOutputForMSBuild (string itemName, List items) public void FlushOutputForMSBuild () { + Directory.CreateDirectory (ItemsDirectory); foreach (var kvp in msbuild_items) { var itemName = kvp.Key; var items = kvp.Value; diff --git a/tools/dotnet-linker/Steps/ComputeAOTArguments.cs b/tools/dotnet-linker/Steps/ComputeAOTArguments.cs index d287bc62155d..1314771fe387 100644 --- a/tools/dotnet-linker/Steps/ComputeAOTArguments.cs +++ b/tools/dotnet-linker/Steps/ComputeAOTArguments.cs @@ -28,7 +28,11 @@ protected override void TryEndProcess () if (!isAOTCompiled) continue; +#if ASSEMBLY_PREPARER + var item = new MSBuildItem (asm.FullPath); +#else var item = new MSBuildItem (Path.Combine (Configuration.IntermediateLinkDir, asm.FileName)); +#endif var input = asm.FullPath; bool? isDedupAssembly = null; diff --git a/tools/dotnet-linker/Steps/ExtractBindingLibrariesStep.cs b/tools/dotnet-linker/Steps/ExtractBindingLibrariesStep.cs index 2d305516686a..b85efecb7e53 100644 --- a/tools/dotnet-linker/Steps/ExtractBindingLibrariesStep.cs +++ b/tools/dotnet-linker/Steps/ExtractBindingLibrariesStep.cs @@ -77,8 +77,9 @@ protected override void TryEndProcess () // Store a relative path if possible, it makes things easier with XVS. var fwkDirectory = fwk; - if (Path.IsPathRooted (fwkDirectory)) - fwkDirectory = Path.GetRelativePath (Environment.CurrentDirectory, PathUtils.ResolveSymbolicLinks (fwkDirectory)); + if (Path.IsPathRooted (fwkDirectory)) { + fwkDirectory = PathUtils.AbsoluteToRelative (Environment.CurrentDirectory, PathUtils.ResolveSymbolicLinks (fwkDirectory)); + } var executable = Path.Combine (fwkDirectory, Path.GetFileNameWithoutExtension (fwkDirectory)); diff --git a/tools/dotnet-linker/Steps/GenerateReferencesStep.cs b/tools/dotnet-linker/Steps/GenerateReferencesStep.cs index 4a3959aa0f80..98c52ea8deb1 100644 --- a/tools/dotnet-linker/Steps/GenerateReferencesStep.cs +++ b/tools/dotnet-linker/Steps/GenerateReferencesStep.cs @@ -7,6 +7,7 @@ using Xamarin.Bundler; using Xamarin.Linker; +using Xamarin.Utils; #nullable enable @@ -30,7 +31,7 @@ protected override void TryEndProcess () case SymbolMode.Code: var reference_m = Path.Combine (Configuration.CacheDirectory, "reference.m"); reference_m = Configuration.Application.GenerateReferencingSource (reference_m, required_symbols); - if (!string.IsNullOrEmpty (reference_m)) { + if (!StringUtils.IsNullOrEmpty (reference_m)) { var item = new MSBuildItem (reference_m); items.Add (item); } diff --git a/tools/dotnet-linker/Steps/InlineClassGetHandleStep.cs b/tools/dotnet-linker/Steps/InlineClassGetHandleStep.cs index 11e8dd1996b8..84eb9833cd17 100644 --- a/tools/dotnet-linker/Steps/InlineClassGetHandleStep.cs +++ b/tools/dotnet-linker/Steps/InlineClassGetHandleStep.cs @@ -41,6 +41,11 @@ public class InlineClassGetHandleStep : AssemblyModifierStep { public const string PInvokePrefix = "xamarin_Class_GetHandle_"; public const string PInvokeSuffix = "_Native"; + protected override bool ConditionToProcess () + { + return Configuration.InlineClassGetHandle != InlineClassGetHandleMode.Disabled; + } + protected override void TryProcess () { strictMode = Configuration.InlineClassGetHandle == InlineClassGetHandleMode.Strict; diff --git a/tools/dotnet-linker/Steps/RegistrarStep.cs b/tools/dotnet-linker/Steps/RegistrarStep.cs index 4f9473d64b54..3638a2629cf2 100644 --- a/tools/dotnet-linker/Steps/RegistrarStep.cs +++ b/tools/dotnet-linker/Steps/RegistrarStep.cs @@ -35,12 +35,14 @@ protected override void TryEndProcess () var dir = Configuration.CacheDirectory; var header = Path.Combine (dir, "registrar.h"); var code = Path.Combine (dir, "registrar.mm"); +#if !ASSEMBLY_PREPARER if (app.Registrar == RegistrarMode.ManagedStatic || app.Registrar == RegistrarMode.TrimmableStatic) { // Every api has been registered if we're using the managed registrar // (since we registered types before the trimmer did anything), // so we need to remove those that were later trimmed away by the trimmer. Configuration.Application.StaticRegistrar.FilterTrimmedApi (Annotations); } +#endif Configuration.Application.StaticRegistrar.Generate (header, code, out var initialization_method); var items = new List (); diff --git a/tools/linker/MonoTouch.Tuner/ListExportedSymbols.cs b/tools/linker/MonoTouch.Tuner/ListExportedSymbols.cs index bb2193ab35ad..fb5575b4e3d4 100644 --- a/tools/linker/MonoTouch.Tuner/ListExportedSymbols.cs +++ b/tools/linker/MonoTouch.Tuner/ListExportedSymbols.cs @@ -16,7 +16,13 @@ #nullable enable namespace Xamarin.Linker.Steps { +#if ASSEMBLY_PREPARER + public class ListExportedSymbols : ConfigurationAwareStep { + protected override string Name { get; } = "List Exported Symbols"; + protected override int ErrorCode { get; } = 2510; +#else public class ListExportedSymbols : BaseStep { +#endif PInvokeWrapperGenerator? state; PInvokeWrapperGenerator? State { @@ -34,16 +40,23 @@ public class ListExportedSymbols : BaseStep { } } +#if ASSEMBLY_PREPARER + protected override void TryEndProcess () +#else protected override void EndProcess () +#endif { if (state?.Started == true) { // The generator is 'started' by the linker, which means it may not // be started if the linker was not executed due to re-using cached results. state.End (); } +#if !ASSEMBLY_PREPARER base.EndProcess (); +#endif } +#if !ASSEMBLY_PREPARER public LinkerConfiguration Configuration { get { return LinkerConfiguration.GetInstance (Context); @@ -55,15 +68,20 @@ public DerivedLinkContext DerivedLinkContext { return Configuration.DerivedLinkContext; } } +#endif public ListExportedSymbols () { } +#if ASSEMBLY_PREPARER + protected override void TryProcessAssembly (AssemblyDefinition assembly) + { +#else protected override void ProcessAssembly (AssemblyDefinition assembly) { base.ProcessAssembly (assembly); - +#endif if (Annotations.GetAction (assembly) == AssemblyAction.Delete) return; @@ -176,10 +194,11 @@ bool ProcessMethod (MethodDefinition method) // * with and without a "lib" prefix // * with and without the ".dylib" extension var app = LinkerConfiguration.GetInstance (Context).Application; - var monoLibraryVariations = app.MonoLibraries. + var monoLibraryVariationsEnumerable = app.MonoLibraries. Where (v => v.EndsWith (".dylib", StringComparison.OrdinalIgnoreCase) || v.EndsWith (".a", StringComparison.OrdinalIgnoreCase)). Select (v => Path.GetFileNameWithoutExtension (v)). - Select (v => v.StartsWith ("lib", StringComparison.OrdinalIgnoreCase) ? v.Substring (3) : v).ToHashSet (); + Select (v => v.StartsWith ("lib", StringComparison.OrdinalIgnoreCase) ? v.Substring (3) : v); + var monoLibraryVariations = new HashSet (monoLibraryVariationsEnumerable); monoLibraryVariations.Add ("System.Globalization.Native"); // System.Private.CoreLib has P/Invokes pointing to libSystem.Globalization.Native, but they're actually in libmonosgen-2.0 monoLibraryVariations.UnionWith (monoLibraryVariations.Select (v => "lib" + v).ToArray ()); monoLibraryVariations.UnionWith (monoLibraryVariations.Select (v => v + ".dylib").ToArray ()); diff --git a/tools/linker/RemoveUserResourcesSubStep.cs b/tools/linker/RemoveUserResourcesSubStep.cs index 6dce5223f7cd..2ee9791a1ff9 100644 --- a/tools/linker/RemoveUserResourcesSubStep.cs +++ b/tools/linker/RemoveUserResourcesSubStep.cs @@ -9,59 +9,87 @@ using Mono.Tuner; using Xamarin.Bundler; +using Xamarin.Linker.Steps; using Xamarin.Utils; #nullable enable namespace Xamarin.Linker { +#if ASSEMBLY_PREPARER + public class RemoveUserResourcesSubStep : AssemblyModifierStep { +#else public class RemoveUserResourcesSubStep : ExceptionalSubStep { - string [] prefixes = Array.Empty (); - +#endif + static string [] monotouch_prefixes = new string [] { + "__monotouch_content_", + "__monotouch_page_", + "__monotouch_item_", + }; + + static string [] xammac_prefixes = new string [] { + "__xammac_content_", + "__xammac_page_", + "__xammac_item_", + }; + +#if !ASSEMBLY_PREPARER public override SubStepTargets Targets { get { return SubStepTargets.Assembly; } } +#endif + + ApplePlatform Platform { + get { return Configuration.Platform; } + } +#if ASSEMBLY_PREPARER + public bool Simulator { get { return Configuration.IsSimulatorBuild; } } +#else public bool Simulator { get { return LinkContext.App.IsSimulatorBuild; } } + public Application App { get { return LinkContext.App; } } +#endif protected override string Name { get; } = "Removing User Resources"; protected override int ErrorCode { get; } = 2030; - public override void Initialize (LinkContext context) + public string [] GetPrefixes (ApplePlatform platform) { - base.Initialize (context); - - switch (LinkContext.App.Platform) { + switch (platform) { case ApplePlatform.iOS: case ApplePlatform.TVOS: case ApplePlatform.MacCatalyst: - prefixes = new string [] { - "__monotouch_content_", - "__monotouch_page_", - "__monotouch_item_", - }; - break; + return monotouch_prefixes; case ApplePlatform.MacOSX: - prefixes = new string [] { - "__xammac_content_", - "__xammac_page_", - "__xammac_item_", - }; - break; + return xammac_prefixes; default: - Report (ErrorHelper.CreateError (71, Errors.MX0071, LinkContext.App.Platform, LinkContext.App.ProductName)); + Report (ErrorHelper.CreateError (71, Errors.MX0071, platform, App.ProductName)); break; } + return Array.Empty (); } +#if ASSEMBLY_PREPARER + protected override bool ModifyAssembly (AssemblyDefinition assembly) +#else protected override void Process (AssemblyDefinition assembly) { - if (Profile.IsProductAssembly (assembly) || Profile.IsSdkAssembly (assembly)) - return; + var modified = ModifyAssembly (assembly); + + // we'll need to save (if we're not linking) this assembly + if (modified && Annotations.GetAction (assembly) != AssemblyAction.Link) + Annotations.SetAction (assembly, AssemblyAction.Save); + } + + bool ModifyAssembly (AssemblyDefinition assembly) +#endif + { + if (App.Profile.IsProductAssembly (assembly) || App.Profile.IsSdkAssembly (assembly)) + return false; var module = assembly.MainModule; if (!module.HasResources) - return; + return false; HashSet? libraries = null; if (assembly.HasCustomAttributes) { @@ -93,9 +121,7 @@ protected override void Process (AssemblyDefinition assembly) found = true; } - // we'll need to save (if we're not linking) this assembly - if (found && Annotations.GetAction (assembly) != AssemblyAction.Link) - Annotations.SetAction (assembly, AssemblyAction.Save); + return found; } bool IsMonoTouchResource (string resourceName) @@ -104,7 +130,7 @@ bool IsMonoTouchResource (string resourceName) if (Simulator) return false; - foreach (var prefix in prefixes) { + foreach (var prefix in GetPrefixes (Platform)) { if (resourceName.StartsWith (prefix, StringComparison.OrdinalIgnoreCase)) return true; } From 8cbe6f920bd8260b043b73e9b49403fdabb359e7 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 30 Jun 2026 17:49:24 +0200 Subject: [PATCH 11/23] [sharpie] Emit correct nullability for block/delegate parameters (#25837) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When ObjC declares a block with nullable parameters (e.g., `void (^)(BOOL success, NSError * _Nullable error)`), sharpie previously produced `Action`, losing the nullability information. This PR teaches sharpie to produce `Action` 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 --- tests/sharpie/Tests/Nullability.iphoneos.cs | 3 +- tests/sharpie/Tests/Nullability.macosx.cs | 3 +- .../MacCatalyst-AVFoundation.ignore | 18 +++ .../MacCatalyst-AppClip.ignore | 2 + .../MacCatalyst-AuthenticationServices.ignore | 10 ++ .../MacCatalyst-CallKit.ignore | 9 ++ .../MacCatalyst-ClassKit.ignore | 8 ++ .../MacCatalyst-CloudKit.ignore | 3 + .../MacCatalyst-CoreAudioKit.ignore | 2 + .../MacCatalyst-CoreData.ignore | 1 + .../MacCatalyst-CoreMotion.ignore | 6 + .../MacCatalyst-CoreNFC.ignore | 3 + .../MacCatalyst-CoreSpotlight.ignore | 9 ++ .../MacCatalyst-EventKit.ignore | 3 + .../MacCatalyst-Foundation.ignore | 7 ++ .../MacCatalyst-GameController.ignore | 2 + .../MacCatalyst-GameKit.ignore | 11 ++ .../MacCatalyst-HealthKit.ignore | 31 +++++ .../MacCatalyst-HomeKit.ignore | 54 +++++++++ .../MacCatalyst-IdentityLookup.ignore | 3 + .../MacCatalyst-Intents.ignore | 4 + .../MacCatalyst-LocalAuthentication.ignore | 2 + .../MacCatalyst-MediaPlayer.ignore | 9 ++ .../MacCatalyst-Messages.ignore | 9 ++ .../MacCatalyst-NetworkExtension.ignore | 25 ++++ .../MacCatalyst-PassKit.ignore | 13 +++ .../MacCatalyst-Photos.ignore | 1 + .../MacCatalyst-QuickLookThumbnailing.ignore | 8 ++ .../MacCatalyst-ReplayKit.ignore | 4 + .../MacCatalyst-SafariServices.ignore | 5 + .../MacCatalyst-ScreenCaptureKit.ignore | 19 +++ ...acCatalyst-SensitiveContentAnalysis.ignore | 7 ++ .../MacCatalyst-SensorKit.ignore | 2 + .../MacCatalyst-ServiceManagement.ignore | 3 + .../MacCatalyst-SharedWithYou.ignore | 4 + .../MacCatalyst-Speech.ignore | 3 + .../MacCatalyst-StoreKit.ignore | 8 ++ .../MacCatalyst-ThreadNetwork.ignore | 13 +++ .../MacCatalyst-UIKit.ignore | 25 ++++ .../common-AVFoundation.ignore | 50 ++++++++ .../common-Accelerate.ignore | 1 - .../common-AudioToolbox.ignore | 4 + .../common-AuthenticationServices.ignore | 3 + .../common-BackgroundAssets.ignore | 5 + .../common-Cinematic.ignore | 8 ++ .../common-CloudKit.ignore | 50 ++++++++ .../common-CoreData.ignore | 4 + .../common-CoreLocation.ignore | 5 + .../common-CoreML.ignore | 20 ++++ .../common-CryptoTokenKit.ignore | 6 + .../common-DeviceCheck.ignore | 8 ++ .../common-Foundation.ignore | 29 +++++ .../common-GameKit.ignore | 46 ++++++++ .../common-Intents.ignore | 6 + .../common-LinkPresentation.ignore | 6 + .../common-MultipeerConnectivity.ignore | 3 + .../common-NaturalLanguage.ignore | 4 + .../common-NetworkExtension.ignore | 16 +++ .../common-Photos.ignore | 8 ++ .../common-ReplayKit.ignore | 14 +++ .../common-SharedWithYou.ignore | 4 + .../common-ShazamKit.ignore | 6 + .../common-UIKit.ignore | 1 - .../common-UserNotifications.ignore | 5 + .../common-Vision.ignore | 1 - .../api-annotations-dotnet/iOS-ARKit.ignore | 10 ++ .../iOS-AVFoundation.ignore | 18 +++ .../api-annotations-dotnet/iOS-AppClip.ignore | 2 + .../iOS-AuthenticationServices.ignore | 10 ++ .../api-annotations-dotnet/iOS-CallKit.ignore | 9 ++ .../api-annotations-dotnet/iOS-CarPlay.ignore | 8 ++ .../iOS-ClassKit.ignore | 8 ++ .../iOS-CloudKit.ignore | 3 + .../iOS-CoreAudioKit.ignore | 2 + .../iOS-CoreData.ignore | 2 + .../iOS-CoreLocation.ignore | 2 + .../iOS-CoreMotion.ignore | 6 + .../api-annotations-dotnet/iOS-CoreNFC.ignore | 3 + .../iOS-CoreSpotlight.ignore | 9 ++ .../iOS-EventKit.ignore | 3 + .../iOS-FileProvider.ignore | 40 +++++++ .../iOS-Foundation.ignore | 7 ++ .../iOS-GameController.ignore | 2 + .../api-annotations-dotnet/iOS-GameKit.ignore | 11 ++ .../iOS-HealthKit.ignore | 32 +++++ .../api-annotations-dotnet/iOS-HomeKit.ignore | 56 +++++++++ .../iOS-IdentityLookup.ignore | 3 + .../api-annotations-dotnet/iOS-Intents.ignore | 4 + .../iOS-IntentsUI.ignore | 2 + .../iOS-LocalAuthentication.ignore | 2 + .../iOS-MediaPlayer.ignore | 9 ++ .../iOS-Messages.ignore | 9 ++ .../iOS-NetworkExtension.ignore | 24 ++++ .../api-annotations-dotnet/iOS-PassKit.ignore | 14 +++ .../api-annotations-dotnet/iOS-Photos.ignore | 1 + .../iOS-PushToTalk.ignore | 8 ++ .../iOS-QuickLookThumbnailing.ignore | 8 ++ .../iOS-ReplayKit.ignore | 5 + .../iOS-SafariServices.ignore | 5 + .../iOS-SensitiveContentAnalysis.ignore | 7 ++ .../iOS-SensorKit.ignore | 3 + .../iOS-SharedWithYou.ignore | 4 + .../api-annotations-dotnet/iOS-Speech.ignore | 3 + .../iOS-StoreKit.ignore | 8 ++ .../iOS-ThreadNetwork.ignore | 13 +++ .../api-annotations-dotnet/iOS-UIKit.ignore | 25 ++++ .../iOS-VideoSubscriberAccount.ignore | 7 ++ .../macOS-AVFoundation.ignore | 18 +++ .../macOS-AppKit.ignore | 23 ++++ .../macOS-AuthenticationServices.ignore | 12 ++ .../macOS-ClassKit.ignore | 8 ++ .../macOS-CloudKit.ignore | 3 + .../macOS-CoreAudioKit.ignore | 2 + .../macOS-CoreData.ignore | 2 + .../macOS-CoreSpotlight.ignore | 9 ++ .../macOS-EventKit.ignore | 2 + .../macOS-FileProvider.ignore | 22 ++++ .../macOS-Foundation.ignore | 7 ++ .../macOS-GameKit.ignore | 10 ++ .../macOS-HealthKit.ignore | 35 ++++++ .../macOS-Intents.ignore | 3 + .../macOS-LocalAuthentication.ignore | 2 + .../macOS-MailKit.ignore | 3 + .../macOS-NetworkExtension.ignore | 20 ++++ .../macOS-PassKit.ignore | 13 +++ .../macOS-Photos.ignore | 1 + .../macOS-PhotosUI.ignore | 2 + .../macOS-QuickLookThumbnailing.ignore | 8 ++ .../macOS-ReplayKit.ignore | 2 + .../macOS-SafariServices.ignore | 18 +++ .../macOS-ScreenCaptureKit.ignore | 20 ++++ .../macOS-SensitiveContentAnalysis.ignore | 7 ++ .../macOS-ServiceManagement.ignore | 3 + .../macOS-SharedWithYou.ignore | 4 + .../macOS-Speech.ignore | 3 + .../macOS-StoreKit.ignore | 2 + .../macOS-ThreadNetwork.ignore | 13 +++ .../macOS-VideoSubscriberAccount.ignore | 4 + .../tvOS-AVFoundation.ignore | 2 + .../api-annotations-dotnet/tvOS-AVKit.ignore | 2 + .../tvOS-Foundation.ignore | 2 + .../tvOS-GameKit.ignore | 2 + .../tvOS-HomeKit.ignore | 8 ++ .../tvOS-MediaPlayer.ignore | 4 + .../api-annotations-dotnet/tvOS-Photos.ignore | 1 + .../tvOS-ReplayKit.ignore | 3 + .../tvOS-TVServices.ignore | 2 + .../api-annotations-dotnet/tvOS-UIKit.ignore | 9 ++ .../tvOS-VideoSubscriberAccount.ignore | 7 ++ .../xtro-sharpie/NullabilityCheck.cs | 110 ++++++++++++++++++ .../sharpie/Sharpie.Bind/BindingGenerator.cs | 19 ++- .../Massagers/CustomDelegateMassager.cs | 18 ++- tools/sharpie/Sharpie.Bind/TypeBinder.cs | 28 ++++- 153 files changed, 1561 insertions(+), 9 deletions(-) create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AppClip.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CallKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ClassKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CloudKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreAudioKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreNFC.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreSpotlight.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-GameController.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-GameKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-HealthKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-IdentityLookup.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-LocalAuthentication.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Messages.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Photos.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-QuickLookThumbnailing.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ReplayKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ScreenCaptureKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-SensitiveContentAnalysis.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-SensorKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-SharedWithYou.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Speech.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-StoreKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ThreadNetwork.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/common-AuthenticationServices.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/common-BackgroundAssets.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/common-Cinematic.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/common-CryptoTokenKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/common-DeviceCheck.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/common-LinkPresentation.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/common-MultipeerConnectivity.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/common-NaturalLanguage.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/common-NetworkExtension.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/common-ReplayKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/common-SharedWithYou.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/common-ShazamKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/common-UserNotifications.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-ARKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-AppClip.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-CallKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-CarPlay.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-ClassKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-CloudKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreAudioKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreLocation.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreNFC.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreSpotlight.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-GameController.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-GameKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-HealthKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-IdentityLookup.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-IntentsUI.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-LocalAuthentication.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-Messages.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-Photos.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-PushToTalk.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-QuickLookThumbnailing.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-SensitiveContentAnalysis.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-SharedWithYou.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-StoreKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-ThreadNetwork.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-VideoSubscriberAccount.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-ClassKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-CloudKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreAudioKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreSpotlight.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-EventKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-LocalAuthentication.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-MailKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-Photos.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-PhotosUI.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-QuickLookThumbnailing.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-ReplayKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-SensitiveContentAnalysis.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-SharedWithYou.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-StoreKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-ThreadNetwork.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-VideoSubscriberAccount.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/tvOS-GameKit.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/tvOS-Photos.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/tvOS-TVServices.ignore create mode 100644 tests/xtro-sharpie/api-annotations-dotnet/tvOS-VideoSubscriberAccount.ignore diff --git a/tests/sharpie/Tests/Nullability.iphoneos.cs b/tests/sharpie/Tests/Nullability.iphoneos.cs index 8d7463f2df86..e23090fb9c95 100644 --- a/tests/sharpie/Tests/Nullability.iphoneos.cs +++ b/tests/sharpie/Tests/Nullability.iphoneos.cs @@ -50,7 +50,7 @@ static class CFunctions { // extern void FuncWithNullableBlockParam (void (^ _Nullable)(NSObject * _Nullable) block); [DllImport ("__Internal")] [Verify (PlatformInvoke)] - static extern void FuncWithNullableBlockParam ([NullAllowed] Action block); + static extern void FuncWithNullableBlockParam ([NullAllowed] Action block); // extern void FuncWithNonnullBlock (void (^ _Nonnull)(void) block); [DllImport ("__Internal")] @@ -101,3 +101,4 @@ interface Foo { [return: NullAllowed] NSObject CreateObjectWithObject ([NullAllowed] NSObject otherObject); } + diff --git a/tests/sharpie/Tests/Nullability.macosx.cs b/tests/sharpie/Tests/Nullability.macosx.cs index 8d7463f2df86..e23090fb9c95 100644 --- a/tests/sharpie/Tests/Nullability.macosx.cs +++ b/tests/sharpie/Tests/Nullability.macosx.cs @@ -50,7 +50,7 @@ static class CFunctions { // extern void FuncWithNullableBlockParam (void (^ _Nullable)(NSObject * _Nullable) block); [DllImport ("__Internal")] [Verify (PlatformInvoke)] - static extern void FuncWithNullableBlockParam ([NullAllowed] Action block); + static extern void FuncWithNullableBlockParam ([NullAllowed] Action block); // extern void FuncWithNonnullBlock (void (^ _Nonnull)(void) block); [DllImport ("__Internal")] @@ -101,3 +101,4 @@ interface Foo { [return: NullAllowed] NSObject CreateObjectWithObject ([NullAllowed] NSObject otherObject); } + diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AVFoundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AVFoundation.ignore index 57740b67f44c..a35c2b5ea741 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AVFoundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AVFoundation.ignore @@ -23,3 +23,21 @@ # isEqual: is already exposed from NSObject, no need to expose again !missing-selector! AVCaptionRegion::isEqual: not bound + +!missing-null-allowed! 'System.Void AVFoundation.AVCaptionConversionValidator::ValidateCaptionConversion(System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVCapturePhotoOutput::SetPreparedPhotoSettings(AVFoundation.AVCapturePhotoSettings[],System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedMovie_AVFragmentedMovieTrackInspection::LoadTrack(AVFoundation.AVFragmentedMovie,System.Int32,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedMovie_AVFragmentedMovieTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVFragmentedMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedMovie_AVFragmentedMovieTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVFragmentedMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedMovie_AVFragmentedMovieTrackInspection::LoadTracksWithMediaType(AVFoundation.AVFragmentedMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedMovie_AVFragmentedMovieTrackInspection::LoadTracksWithMediaType(AVFoundation.AVFragmentedMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMovie_AVMovieTrackInspection::LoadTrack(AVFoundation.AVMovie,System.Int32,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMovie_AVMovieTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVMovie_AVMovieTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMovie_AVMovieTrackInspection::LoadTracksWithMediaType(AVFoundation.AVMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVMovie_AVMovieTrackInspection::LoadTracksWithMediaType(AVFoundation.AVMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTrack(System.Int32,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaCharacteristic(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaCharacteristic(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaType(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaType(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AppClip.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AppClip.ignore new file mode 100644 index 000000000000..e2d25fcdb8d5 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AppClip.ignore @@ -0,0 +1,2 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void AppClip.APActivationPayload::ConfirmAcquired(CoreLocation.CLRegion,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AuthenticationServices.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AuthenticationServices.ignore index 2a7d552f9a31..50135011a942 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AuthenticationServices.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AuthenticationServices.ignore @@ -8,3 +8,13 @@ !missing-protocol-conformance! ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest should conform to ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialAssertionRequest (defined in '' category) !missing-protocol-conformance! ASAuthorizationSecurityKeyPublicKeyCredentialProvider should conform to ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialProvider (defined in '' category) !missing-protocol-conformance! ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest should conform to ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialRegistrationRequest (defined in '' category) + +!missing-null-allowed! 'System.Void AuthenticationServices.ASAccountAuthenticationModificationExtensionContext::GetSignInWithAppleUpgradeAuthorization(System.String,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AuthenticationServices.ASAccountAuthenticationModificationExtensionContext::GetSignInWithAppleUpgradeAuthorization(System.String,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASAuthorizationProviderExtensionAuthorizationRequest::PresentAuthorizationViewController(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASCredentialIdentityStore::RemoveAllCredentialIdentities(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASCredentialIdentityStore::RemoveCredentialIdentityEntries(AuthenticationServices.IASCredentialIdentity[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASCredentialIdentityStore::ReplaceCredentialIdentityEntries(AuthenticationServices.IASCredentialIdentity[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASCredentialIdentityStore::SaveCredentialIdentityEntries(AuthenticationServices.IASCredentialIdentity[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASSettingsHelper::OpenCredentialProviderAppSettings(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AuthenticationServices.ASSettingsHelper::OpenVerificationCodeAppSettings(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CallKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CallKit.ignore new file mode 100644 index 000000000000..406389efe76f --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CallKit.ignore @@ -0,0 +1,9 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void CallKit.CXCallController::RequestTransaction(CallKit.CXAction,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void CallKit.CXCallController::RequestTransaction(CallKit.CXAction[],System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void CallKit.CXCallController::RequestTransaction(CallKit.CXTransaction,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void CallKit.CXCallDirectoryManager::GetEnabledStatusForExtension(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void CallKit.CXCallDirectoryManager::OpenSettings(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void CallKit.CXCallDirectoryManager::ReloadExtension(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void CallKit.CXProvider::ReportNewIncomingCall(Foundation.NSUuid,CallKit.CXCallUpdate,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void CallKit.CXProvider::ReportNewIncomingVoIPPushPayload(Foundation.NSDictionary,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ClassKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ClassKit.ignore new file mode 100644 index 000000000000..569d612c56b5 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ClassKit.ignore @@ -0,0 +1,8 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void ClassKit.CLSContext::FindDescendantMatching(System.String[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ClassKit.CLSContext::FindDescendantMatching(System.String[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ClassKit.CLSDataStore::FetchActivity(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ClassKit.CLSDataStore::FetchActivity(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ClassKit.CLSDataStore::FindContextsMatching(Foundation.NSPredicate,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ClassKit.CLSDataStore::FindContextsMatching(System.String[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ClassKit.CLSDataStore::Save(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CloudKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CloudKit.ignore new file mode 100644 index 000000000000..0794508c536e --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CloudKit.ignore @@ -0,0 +1,3 @@ +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchAllLongLivedOperationIDs(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchAllLongLivedOperationIDs(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchLongLivedOperation(System.String[],System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreAudioKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreAudioKit.ignore new file mode 100644 index 000000000000..e19d6c3d73fc --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreAudioKit.ignore @@ -0,0 +1,2 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void AudioUnit.AUAudioUnit::RequestViewController(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreData.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreData.ignore index b033485afbe9..9b1ff8cf4ce1 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreData.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreData.ignore @@ -2,3 +2,4 @@ !missing-protocol-member! NSFetchedResultsControllerDelegate::controller:didChangeContentWithDifference: not found !missing-protocol-member! NSFetchedResultsControllerDelegate::controller:didChangeContentWithSnapshot: not found +!missing-null-allowed! 'System.Void CoreData.NSCoreDataCoreSpotlightDelegate::DeleteSpotlightIndex(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreMotion.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreMotion.ignore index 0fbad2b4aee2..05ed300f6628 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreMotion.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreMotion.ignore @@ -12,3 +12,9 @@ ## Types that use these are not available on MacCatalyst !missing-enum! CMWaterSubmersionDepthState not bound !missing-enum! CMWaterSubmersionState not bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void CoreMotion.CMBatchedSensorManager::StartAccelerometerUpdates(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void CoreMotion.CMBatchedSensorManager::StartAccelerometerUpdates(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void CoreMotion.CMBatchedSensorManager::StartDeviceMotionUpdates(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void CoreMotion.CMBatchedSensorManager::StartDeviceMotionUpdates(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreNFC.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreNFC.ignore new file mode 100644 index 000000000000..68eb78578891 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreNFC.ignore @@ -0,0 +1,3 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void CoreNFC.NFCNdefReaderSession::ConnectToTag(CoreNFC.INFCNdefTag,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreNFC.NFCTagReaderSession::ConnectTo(CoreNFC.INFCTag,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreSpotlight.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreSpotlight.ignore new file mode 100644 index 000000000000..2149cea40c3f --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreSpotlight.ignore @@ -0,0 +1,9 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex_CSOptionalBatchingExtension::EndIndexBatch(CoreSpotlight.CSSearchableIndex,Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::Delete(System.String[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::DeleteAll(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::DeleteWithDomain(System.String[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::FetchData(System.String,System.String,UniformTypeIdentifiers.UTType,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::FetchData(System.String,System.String,UniformTypeIdentifiers.UTType,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::Index(CoreSpotlight.CSSearchableItem[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchQuery::set_CompletionHandler(System.Action`1)' is missing a '?' on parameter 'value' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-EventKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-EventKit.ignore index be9d3c9dcb09..7bc1f89028dc 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-EventKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-EventKit.ignore @@ -1,2 +1,5 @@ # This is only used as an output in a manual binding so it doesn't need the availability !missing-enum! EKAlarmType not bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.IntPtr EventKit.EKEventStore::FetchReminders(Foundation.NSPredicate,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore index 4a586f013742..5a95299307ec 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore @@ -480,3 +480,10 @@ ## these are implemented in a way that xtro doesn't see !missing-selector! NSAppleEventDescriptor::initListDescriptor not bound !missing-selector! NSAppleEventDescriptor::initRecordDescriptor not bound + +!missing-null-allowed! 'System.Void Foundation.NSBundleResourceRequest::BeginAccessingResources(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSFileManager::GetFileProviderServices(Foundation.NSUrl,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSFileManager::GetFileProviderServices(Foundation.NSUrl,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void Foundation.NSFilePresenter::AccommodatePresentedItemEviction(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSFileProviderService::GetFileProviderConnection(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSFileProviderService::GetFileProviderConnection(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-GameController.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-GameController.ignore new file mode 100644 index 000000000000..b91bd0531a57 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-GameController.ignore @@ -0,0 +1,2 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void GameController.GCVirtualController::Connect(System.Action`1)' is missing a '?' on parameter 'reply' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-GameKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-GameKit.ignore new file mode 100644 index 000000000000..ba473c52d744 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-GameKit.ignore @@ -0,0 +1,11 @@ +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::DeleteSavedGames(System.String,System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::FetchSavedGames(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::FetchSavedGames(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::ResolveConflictingSavedGames(GameKit.GKSavedGame[],Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::ResolveConflictingSavedGames(GameKit.GKSavedGame[],Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::SaveGameData(Foundation.NSData,System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::SaveGameData(Foundation.NSData,System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::set_AuthenticateHandler(System.Action`2)' is missing a '?' on parameter 'value' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::set_AuthenticateHandler(System.Action`2)' is missing a '?' on parameter 'value' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKSavedGame::LoadData(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKSavedGame::LoadData(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-HealthKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-HealthKit.ignore new file mode 100644 index 000000000000..9dab4e04b30f --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-HealthKit.ignore @@ -0,0 +1,31 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'Foundation.NSProgress HealthKit.HKAttachmentStore::GetData(HealthKit.HKAttachment,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'Foundation.NSProgress HealthKit.HKAttachmentStore::GetData(HealthKit.HKAttachment,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKActivitySummaryQuery::.ctor(Foundation.NSPredicate,System.Action`3)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKActivitySummaryQuery::.ctor(Foundation.NSPredicate,System.Action`3)' is missing a '?' on parameter 'handler' block parameter #2 +!missing-null-allowed! 'System.Void HealthKit.HKActivitySummaryQuery::set_UpdateHandler(System.Action`3)' is missing a '?' on parameter 'value' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKActivitySummaryQuery::set_UpdateHandler(System.Action`3)' is missing a '?' on parameter 'value' block parameter #2 +!missing-null-allowed! 'System.Void HealthKit.HKAttachmentStore::AddAttachment(HealthKit.HKObject,System.String,UniformTypeIdentifiers.UTType,Foundation.NSUrl,Foundation.NSDictionary`2,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HealthKit.HKAttachmentStore::AddAttachment(HealthKit.HKObject,System.String,UniformTypeIdentifiers.UTType,Foundation.NSUrl,Foundation.NSDictionary`2,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKDocumentQuery::.ctor(HealthKit.HKDocumentType,Foundation.NSPredicate,System.UIntPtr,Foundation.NSSortDescriptor[],System.Boolean,System.Action`4)' is missing a '?' on parameter 'resultsHandler' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKDocumentQuery::.ctor(HealthKit.HKDocumentType,Foundation.NSPredicate,System.UIntPtr,Foundation.NSSortDescriptor[],System.Boolean,System.Action`4)' is missing a '?' on parameter 'resultsHandler' block parameter #3 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::DeleteObject(HealthKit.HKObject,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::DeleteObjects(HealthKit.HKObject[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::DeleteObjects(HealthKit.HKObjectType,Foundation.NSPredicate,System.Action`3)' is missing a '?' on parameter 'completion' block parameter #2 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::DisableAllBackgroundDelivery(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::DisableBackgroundDelivery(HealthKit.HKObjectType,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::EnableBackgroundDelivery(HealthKit.HKObjectType,HealthKit.HKUpdateFrequency,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::GetPreferredUnits(Foundation.NSSet,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::HandleAuthorizationForExtension(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::RecalibrateEstimates(HealthKit.HKSampleType,Foundation.NSDate,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::RequestAuthorizationToShare(Foundation.NSSet,Foundation.NSSet,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::SaveObject(HealthKit.HKObject,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::SaveObjects(HealthKit.HKObject[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::StartWatchApp(HealthKit.HKWorkoutConfiguration,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHeartbeatSeriesBuilder::FinishSeries(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HealthKit.HKHeartbeatSeriesBuilder::FinishSeries(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKVerifiableClinicalRecordQuery::.ctor(System.String[],HealthKit.HKVerifiableClinicalRecordSourceType[],Foundation.NSPredicate,System.Action`3)' is missing a '?' on parameter 'resultsHandler' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKVerifiableClinicalRecordQuery::.ctor(System.String[],HealthKit.HKVerifiableClinicalRecordSourceType[],Foundation.NSPredicate,System.Action`3)' is missing a '?' on parameter 'resultsHandler' block parameter #2 +!missing-null-allowed! 'System.Void HealthKit.HKWorkoutRouteBuilder::FinishRoute(HealthKit.HKWorkout,Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HealthKit.HKWorkoutRouteBuilder::FinishRoute(HealthKit.HKWorkout,Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKWorkoutRouteBuilder::InsertRouteData(CoreLocation.CLLocation[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-HomeKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-HomeKit.ignore index 77be8826a6da..b21851ebfce8 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-HomeKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-HomeKit.ignore @@ -1,2 +1,56 @@ # Apple removed this enum value from native headers in Xcode 26.4 !extra-enum-value! Managed value 106 for HMError.QuotaExceeded not found in native headers + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void HomeKit.HMAccessory::Identify(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMAccessory::UpdateName(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMCameraStream::UpdateAudioStreamSetting(HomeKit.HMCameraAudioStreamSetting,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMCharacteristic::EnableNotification(System.Boolean,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMCharacteristic::ReadValue(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMCharacteristic::UpdateAuthorizationData(Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMCharacteristic::WriteValue(Foundation.NSObject,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMCharacteristicWriteAction::UpdateTargetValue(Foundation.INSCopying,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMEventTrigger::UpdateEndEvents(HomeKit.HMEvent[],System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMEventTrigger::UpdateEvents(HomeKit.HMEvent[],System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMEventTrigger::UpdateExecuteOnce(System.Boolean,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMEventTrigger::UpdatePredicate(Foundation.NSPredicate,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMEventTrigger::UpdateRecurrences(Foundation.NSDateComponents[],System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddAccessory(HomeKit.HMAccessory,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddActionSet(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddActionSet(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddRoom(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddRoom(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddServiceGroup(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddServiceGroup(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddTrigger(HomeKit.HMTrigger,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddZone(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddZone(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AssignAccessory(HomeKit.HMAccessory,HomeKit.HMRoom,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::ExecuteActionSet(HomeKit.HMActionSet,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::ManageUsers(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::RemoveAccessory(HomeKit.HMAccessory,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::RemoveActionSet(HomeKit.HMActionSet,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::RemoveRoom(HomeKit.HMRoom,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::RemoveServiceGroup(HomeKit.HMServiceGroup,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::RemoveTrigger(HomeKit.HMTrigger,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::RemoveZone(HomeKit.HMZone,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::UnblockAccessory(HomeKit.HMAccessory,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::UpdateName(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHomeManager::AddHome(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHomeManager::AddHome(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HomeKit.HMHomeManager::RemoveHome(HomeKit.HMHome,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMRoom::UpdateName(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMService::UpdateAssociatedServiceType(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMService::UpdateName(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMServiceGroup::AddService(HomeKit.HMService,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMServiceGroup::RemoveService(HomeKit.HMService,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMServiceGroup::UpdateName(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMTimerTrigger::UpdateFireDate(Foundation.NSDate,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMTimerTrigger::UpdateRecurrence(Foundation.NSDateComponents,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMTrigger::AddActionSet(HomeKit.HMActionSet,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMTrigger::Enable(System.Boolean,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMTrigger::RemoveActionSet(HomeKit.HMActionSet,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMTrigger::UpdateName(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMZone::AddRoom(HomeKit.HMRoom,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMZone::RemoveRoom(HomeKit.HMRoom,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMZone::UpdateName(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-IdentityLookup.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-IdentityLookup.ignore new file mode 100644 index 000000000000..6bf075ff6234 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-IdentityLookup.ignore @@ -0,0 +1,3 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void IdentityLookup.ILMessageFilterExtensionContext::DeferQueryRequestToNetwork(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void IdentityLookup.ILMessageFilterExtensionContext::DeferQueryRequestToNetwork(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Intents.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Intents.ignore index 019d4e868b27..c502d78f8b1c 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Intents.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Intents.ignore @@ -1,3 +1,7 @@ ## The following were deprecated in ios(10.0, 10.0) !missing-selector! INRideOption::identifier not bound !missing-selector! INRideOption::setIdentifier: not bound + +!missing-null-allowed! 'System.Void Intents.INRelevantShortcutStore::SetRelevantShortcuts(Intents.INRelevantShortcut[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Intents.INVoiceShortcutCenter::GetVoiceShortcut(Foundation.NSUuid,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Intents.INVoiceShortcutCenter::GetVoiceShortcut(Foundation.NSUuid,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-LocalAuthentication.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-LocalAuthentication.ignore new file mode 100644 index 000000000000..c6268b7d86b1 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-LocalAuthentication.ignore @@ -0,0 +1,2 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void LocalAuthentication.LAContext::EvaluateAccessControl(Security.SecAccessControl,LocalAuthentication.LAAccessControlOperation,System.String,System.Action`2)' is missing a '?' on parameter 'reply' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-MediaPlayer.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-MediaPlayer.ignore index a4bdb96209dd..1c93f9673e2e 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-MediaPlayer.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-MediaPlayer.ignore @@ -43,3 +43,12 @@ !missing-selector! MPMediaItem::title not bound !missing-selector! MPMediaItem::userGrouping not bound !missing-selector! MPMediaItem::isPreorder not bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void MediaPlayer.MPMediaLibrary::AddItem(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void MediaPlayer.MPMediaLibrary::GetPlaylist(Foundation.NSUuid,MediaPlayer.MPMediaPlaylistCreationMetadata,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void MediaPlayer.MPMediaLibrary::GetPlaylist(Foundation.NSUuid,MediaPlayer.MPMediaPlaylistCreationMetadata,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void MediaPlayer.MPMediaPlaylist::AddItem(System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void MediaPlayer.MPMediaPlaylist::AddMediaItems(MediaPlayer.MPMediaItem[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void MediaPlayer.MPMusicPlayerApplicationController::Perform(System.Action`1,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void MediaPlayer.MPMusicPlayerController::PrepareToPlay(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Messages.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Messages.ignore new file mode 100644 index 000000000000..01844318f7a6 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Messages.ignore @@ -0,0 +1,9 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void Messages.MSConversation::InsertAttachment(Foundation.NSUrl,System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Messages.MSConversation::InsertMessage(Messages.MSMessage,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Messages.MSConversation::InsertSticker(Messages.MSSticker,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Messages.MSConversation::InsertText(System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Messages.MSConversation::SendAttachment(Foundation.NSUrl,System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Messages.MSConversation::SendMessage(Messages.MSMessage,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Messages.MSConversation::SendSticker(Messages.MSSticker,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Messages.MSConversation::SendText(System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-NetworkExtension.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-NetworkExtension.ignore index 67c5c1380188..8cba9d7dac73 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-NetworkExtension.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-NetworkExtension.ignore @@ -7,3 +7,28 @@ # Headers say this method is available on Mac Catalyst, but the AccessorySetupKit framework (thus the ASAccessory type) is not, so we can't expose it in Mac Catalyst for now. !missing-selector! NEHotspotConfigurationManager::joinAccessoryHotspot:passphrase:completionHandler: not bound !missing-selector! NEHotspotConfigurationManager::joinAccessoryHotspotWithoutSecurity:completionHandler: not bound + +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyProvider::StartProxy(Foundation.NSDictionary`2,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyProviderManager::LoadAllFromPreferences(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyProviderManager::LoadAllFromPreferences(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyTcpFlow::ReadData(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyTcpFlow::ReadData(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyTcpFlow::WriteData(Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppPushManager::LoadAllFromPreferences(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppPushManager::LoadAllFromPreferences(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppPushManager::LoadFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppPushManager::RemoveFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppPushManager::SaveToPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsProxyManager::LoadFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsProxyManager::RemoveFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsProxyManager::SaveToPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsProxyProvider::StartProxy(Foundation.NSDictionary,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsSettingsManager::LoadFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsSettingsManager::RemoveFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsSettingsManager::SaveToPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEFilterManager::LoadFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEFilterManager::RemoveFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEFilterManager::SaveToPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEFilterProvider::StartFilter(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEHotspotConfigurationManager::ApplyConfiguration(NetworkExtension.NEHotspotConfiguration,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEHotspotNetwork::FetchCurrent(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-PassKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-PassKit.ignore index b457d98ac386..68d052736560 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-PassKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-PassKit.ignore @@ -13,3 +13,16 @@ # No longer used enum, will be removed in XAMCORE_5_0 !unknown-native-enum! PKDisbursementRequestSchedule bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void PassKit.PKAddShareablePassConfiguration::GetConfiguration(PassKit.PKShareablePassMetadata[],PassKit.PKAddShareablePassConfigurationPrimaryAction,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void PassKit.PKAddShareablePassConfiguration::GetConfiguration(PassKit.PKShareablePassMetadata[],PassKit.PKAddShareablePassConfigurationPrimaryAction,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void PassKit.PKIdentityAuthorizationController::RequestDocument(PassKit.PKIdentityRequest,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void PassKit.PKIdentityAuthorizationController::RequestDocument(PassKit.PKIdentityRequest,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void PassKit.PKPassLibrary::ActivateSecureElementPass(PassKit.PKSecureElementPass,Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void PassKit.PKPassLibrary::GetEncryptedServiceProviderData(PassKit.PKSecureElementPass,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void PassKit.PKPassLibrary::GetEncryptedServiceProviderData(PassKit.PKSecureElementPass,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void PassKit.PKPassLibrary::GetServiceProviderData(PassKit.PKSecureElementPass,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void PassKit.PKPassLibrary::GetServiceProviderData(PassKit.PKSecureElementPass,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void PassKit.PKVehicleConnectionSession::GetSession(PassKit.PKSecureElementPass,PassKit.IPKVehicleConnectionDelegate,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void PassKit.PKVehicleConnectionSession::GetSession(PassKit.PKSecureElementPass,PassKit.IPKVehicleConnectionDelegate,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Photos.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Photos.ignore new file mode 100644 index 000000000000..cd2d272fee1b --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Photos.ignore @@ -0,0 +1 @@ +!missing-null-allowed! 'System.Int32 Photos.PHLivePhoto::RequestLivePhoto(Foundation.NSUrl[],UIKit.UIImage,CoreGraphics.CGSize,Photos.PHImageContentMode,System.Action`2)' is missing a '?' on parameter 'resultHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-QuickLookThumbnailing.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-QuickLookThumbnailing.ignore new file mode 100644 index 000000000000..70508d3fd511 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-QuickLookThumbnailing.ignore @@ -0,0 +1,8 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailGenerator::GenerateBestRepresentation(QuickLookThumbnailing.QLThumbnailGenerationRequest,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailGenerator::GenerateBestRepresentation(QuickLookThumbnailing.QLThumbnailGenerationRequest,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailGenerator::GenerateRepresentations(QuickLookThumbnailing.QLThumbnailGenerationRequest,System.Action`3)' is missing a '?' on parameter 'updateHandler' block parameter #0 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailGenerator::GenerateRepresentations(QuickLookThumbnailing.QLThumbnailGenerationRequest,System.Action`3)' is missing a '?' on parameter 'updateHandler' block parameter #2 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailGenerator::SaveBestRepresentationAsContent(QuickLookThumbnailing.QLThumbnailGenerationRequest,Foundation.NSUrl,System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailProvider::ProvideThumbnail(QuickLookThumbnailing.QLFileThumbnailRequest,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailProvider::ProvideThumbnail(QuickLookThumbnailing.QLFileThumbnailRequest,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ReplayKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ReplayKit.ignore new file mode 100644 index 000000000000..6229b58b47d1 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ReplayKit.ignore @@ -0,0 +1,4 @@ +!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-SafariServices.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-SafariServices.ignore index 503891afcf16..ade57608f885 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-SafariServices.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-SafariServices.ignore @@ -3,3 +3,8 @@ ## this member references a framework which isn't available on Mac Catalyst !missing-protocol-member! SFAddToHomeScreenActivityItem::getWebAppManifestWithCompletionHandler: not found + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void SafariServices.SFContentBlockerManager::GetStateOfContentBlocker(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SafariServices.SFContentBlockerManager::GetStateOfContentBlocker(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void SafariServices.SFContentBlockerManager::ReloadContentBlocker(System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ScreenCaptureKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ScreenCaptureKit.ignore new file mode 100644 index 000000000000..a06c6fe6630c --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ScreenCaptureKit.ignore @@ -0,0 +1,19 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCScreenshotManager::CaptureImage(ScreenCaptureKit.SCContentFilter,ScreenCaptureKit.SCStreamConfiguration,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCScreenshotManager::CaptureImage(ScreenCaptureKit.SCContentFilter,ScreenCaptureKit.SCStreamConfiguration,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCScreenshotManager::CaptureSampleBuffer(ScreenCaptureKit.SCContentFilter,ScreenCaptureKit.SCStreamConfiguration,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCScreenshotManager::CaptureSampleBuffer(ScreenCaptureKit.SCContentFilter,ScreenCaptureKit.SCStreamConfiguration,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetCurrentProcessShareableContent(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetCurrentProcessShareableContent(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetShareableContent(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetShareableContent(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetShareableContent(System.Boolean,System.Boolean,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetShareableContent(System.Boolean,System.Boolean,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetShareableContentAboveWindow(System.Boolean,ScreenCaptureKit.SCWindow,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetShareableContentAboveWindow(System.Boolean,ScreenCaptureKit.SCWindow,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetShareableContentBelowWindow(System.Boolean,ScreenCaptureKit.SCWindow,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetShareableContentBelowWindow(System.Boolean,ScreenCaptureKit.SCWindow,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCStream::StartCapture(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCStream::StopCapture(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCStream::UpdateConfiguration(ScreenCaptureKit.SCStreamConfiguration,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCStream::UpdateContentFilter(ScreenCaptureKit.SCContentFilter,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-SensitiveContentAnalysis.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-SensitiveContentAnalysis.ignore new file mode 100644 index 000000000000..03a43065cba7 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-SensitiveContentAnalysis.ignore @@ -0,0 +1,7 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'Foundation.NSProgress SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeVideo(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'Foundation.NSProgress SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeVideo(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeImage(CoreGraphics.CGImage,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeImage(CoreGraphics.CGImage,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeImage(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeImage(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-SensorKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-SensorKit.ignore new file mode 100644 index 000000000000..a94b321ba8c2 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-SensorKit.ignore @@ -0,0 +1,2 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void SensorKit.SRSensorReader::RequestAuthorization(Foundation.NSSet`1,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ServiceManagement.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ServiceManagement.ignore index 28cd0ed153fa..9e040e7207a9 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ServiceManagement.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ServiceManagement.ignore @@ -2,3 +2,6 @@ !missing-field! kSMDomainSystemLaunchd not bound !missing-field! kSMDomainUserLaunchd not bound !missing-field! SMAppServiceErrorDomain not bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void ServiceManagement.SMAppService::Unregister(System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-SharedWithYou.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-SharedWithYou.ignore new file mode 100644 index 000000000000..4f83e399b0df --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-SharedWithYou.ignore @@ -0,0 +1,4 @@ +!missing-null-allowed! 'System.Void SharedWithYou.SWHighlightCenter::GetCollaborationHighlight(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SharedWithYou.SWHighlightCenter::GetCollaborationHighlight(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void SharedWithYou.SWHighlightCenter::GetSignedIdentityProof(SharedWithYou.SWCollaborationHighlight,Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SharedWithYou.SWHighlightCenter::GetSignedIdentityProof(SharedWithYou.SWCollaborationHighlight,Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Speech.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Speech.ignore new file mode 100644 index 000000000000..0d9b598cb4d0 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Speech.ignore @@ -0,0 +1,3 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'Speech.SFSpeechRecognitionTask Speech.SFSpeechRecognizer::GetRecognitionTask(Speech.SFSpeechRecognitionRequest,System.Action`2)' is missing a '?' on parameter 'resultHandler' block parameter #0 +!missing-null-allowed! 'Speech.SFSpeechRecognitionTask Speech.SFSpeechRecognizer::GetRecognitionTask(Speech.SFSpeechRecognitionRequest,System.Action`2)' is missing a '?' on parameter 'resultHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-StoreKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-StoreKit.ignore new file mode 100644 index 000000000000..ff1d2cff5f0f --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-StoreKit.ignore @@ -0,0 +1,8 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void StoreKit.SKAdNetwork::EndImpression(StoreKit.SKAdImpression,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void StoreKit.SKAdNetwork::StartImpression(StoreKit.SKAdImpression,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void StoreKit.SKAdNetwork::UpdatePostback(System.IntPtr,StoreKit.SKAdNetworkCoarseConversionValue,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void StoreKit.SKAdNetwork::UpdatePostback(System.IntPtr,StoreKit.SKAdNetworkCoarseConversionValue,System.Boolean,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void StoreKit.SKAdNetwork::UpdatePostback(System.IntPtr,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void StoreKit.SKStoreProductViewController::LoadProduct(Foundation.NSDictionary,StoreKit.SKAdImpression,System.Action`2)' is missing a '?' on parameter 'callback' block parameter #1 +!missing-null-allowed! 'System.Void StoreKit.SKStoreProductViewController::LoadProduct(Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'callback' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ThreadNetwork.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ThreadNetwork.ignore new file mode 100644 index 000000000000..07dd24042ca8 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ThreadNetwork.ignore @@ -0,0 +1,13 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::DeleteCredentialsForBorderAgent(Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveAllActiveCredentials(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveAllActiveCredentials(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveAllCredentials(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveAllCredentials(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveCredentialsForBorderAgent(Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveCredentialsForBorderAgent(Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveCredentialsForExtendedPanId(Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveCredentialsForExtendedPanId(Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrievePreferredCredentials(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrievePreferredCredentials(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::StoreCredentialsForBorderAgent(Foundation.NSData,Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-UIKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-UIKit.ignore index fc6cd3acc842..d2a66c03d226 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-UIKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-UIKit.ignore @@ -385,3 +385,28 @@ !missing-protocol-conformance! UIDocument should conform to UINavigationItemRenameDelegate (defined in '' category) !missing-protocol-conformance! UITextView should conform to UIFindInteractionDelegate (defined in '' category) !missing-protocol-conformance! UITextView should conform to UITextSearching (defined in '' category) + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void UIKit.NSTextContentManager::SynchronizeTextLayoutManagers(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIApplication::SetAlternateIconName(System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIApplicationDelegate::HandleWatchKitExtensionRequest(UIKit.UIApplication,Foundation.NSDictionary,System.Action`1)' is missing a '?' on parameter 'reply' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIDocumentBrowserViewController::ImportDocument(Foundation.NSUrl,Foundation.NSUrl,UIKit.UIDocumentBrowserImportMode,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIDocumentBrowserViewController::ImportDocument(Foundation.NSUrl,Foundation.NSUrl,UIKit.UIDocumentBrowserImportMode,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void UIKit.UIDocumentBrowserViewController::RenameDocument(Foundation.NSUrl,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIDocumentBrowserViewController::RenameDocument(Foundation.NSUrl,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void UIKit.UIDocumentBrowserViewController::RevealDocument(Foundation.NSUrl,System.Boolean,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIDocumentBrowserViewController::RevealDocument(Foundation.NSUrl,System.Boolean,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void UIKit.UIDocumentBrowserViewControllerDelegate::DidRequestDocumentCreation(UIKit.UIDocumentBrowserViewController,System.Action`2)' is missing a '?' on parameter 'importHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIImage::PrepareForDisplay(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIImage::PrepareThumbnail(CoreGraphics.CGSize,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIImageReader::GetImage(Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIImageReader::GetImage(Foundation.NSUrl,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIIndirectScribbleInteractionDelegate::FocusElementIfNeeded(UIKit.UIIndirectScribbleInteraction,Foundation.NSObject,CoreGraphics.CGPoint,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIPasteboard::DetectPatterns(Foundation.NSSet`1,Foundation.NSIndexSet,System.Action`2[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIPasteboard::DetectPatterns(Foundation.NSSet`1,Foundation.NSIndexSet,System.Action`2[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void UIKit.UIPasteboard::DetectPatterns(Foundation.NSSet`1,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIPasteboard::DetectPatterns(Foundation.NSSet`1,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void UIKit.UIPasteboard::DetectValues(Foundation.NSSet`1,Foundation.NSIndexSet,System.Action`2[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIPasteboard::DetectValues(Foundation.NSSet`1,Foundation.NSIndexSet,System.Action`2[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void UIKit.UIPasteboard::DetectValues(Foundation.NSSet`1,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIPasteboard::DetectValues(Foundation.NSSet`1,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-AVFoundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-AVFoundation.ignore index 584c2479208c..63cd24fb0a65 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-AVFoundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-AVFoundation.ignore @@ -49,3 +49,53 @@ !missing-selector! AVAudioEngine::connectMIDI:to:format:eventListBlock: not bound !missing-selector! AVAudioEngine::connectMIDI:toNodes:format:eventListBlock: not bound !missing-selector! AVAudioUnitMIDIInstrument::sendMIDIEventList: not bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void AVFoundation.AVAsset::FindUnusedTrackId(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAsset::LoadChapterMetadataGroups(Foundation.NSLocale,System.String[],System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVAsset::LoadChapterMetadataGroups(Foundation.NSLocale,System.String[],System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAsset::LoadChapterMetadataGroups(System.String[],System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVAsset::LoadChapterMetadataGroups(System.String[],System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAsset::LoadMediaSelectionGroup(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAsset::LoadMetadata(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVAsset::LoadMetadata(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAsset::LoadTrack(System.Int32,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAsset::LoadTracksWithMediaType(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVAsset::LoadTracksWithMediaType(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAsset::LoadTrackWithMediaCharacteristics(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVAsset::LoadTrackWithMediaCharacteristics(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAssetExportSession::EstimateMaximumDuration(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAssetExportSession::EstimateOutputFileLength(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAssetTrack::LoadAssociatedTracks(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVAssetTrack::LoadAssociatedTracks(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAssetTrack::LoadMetadata(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVAssetTrack::LoadMetadata(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAssetTrack::LoadSamplePresentationTime(CoreMedia.CMTime,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAssetTrack::LoadSegment(CoreMedia.CMTime,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAudioUnit::FromComponentDescription(AudioUnit.AudioComponentDescription,AudioUnit.AudioComponentInstantiationOptions,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVAudioUnit::FromComponentDescription(AudioUnit.AudioComponentDescription,AudioUnit.AudioComponentInstantiationOptions,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVComposition_AVCompositionTrackInspection::LoadTrack(AVFoundation.AVComposition,System.Int32,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVComposition_AVCompositionTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVComposition,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVComposition_AVCompositionTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVComposition,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVComposition_AVCompositionTrackInspection::LoadTracksWithMediaType(AVFoundation.AVComposition,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVComposition_AVCompositionTrackInspection::LoadTracksWithMediaType(AVFoundation.AVComposition,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVContentKeyRequest::MakeStreamingContentKeyRequestData(Foundation.NSData,Foundation.NSData,Foundation.NSDictionary`2,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVContentKeyRequest::MakeStreamingContentKeyRequestData(Foundation.NSData,Foundation.NSData,Foundation.NSDictionary`2,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVContentKeySession::InvalidateAllPersistableContentKeys(Foundation.NSData,Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVContentKeySession::InvalidateAllPersistableContentKeys(Foundation.NSData,Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVContentKeySession::InvalidatePersistableContentKey(Foundation.NSData,Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVContentKeySession::InvalidatePersistableContentKey(Foundation.NSData,Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVContentKeySession::MakeSecureToken(Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVContentKeySession::MakeSecureToken(Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedAsset_AVFragmentedAssetTrackInspection::LoadTrack(AVFoundation.AVFragmentedAsset,System.Int32,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedAsset_AVFragmentedAssetTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVFragmentedAsset,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedAsset_AVFragmentedAssetTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVFragmentedAsset,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedAsset_AVFragmentedAssetTrackInspection::LoadTracksWithMediaType(AVFoundation.AVFragmentedAsset,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedAsset_AVFragmentedAssetTrackInspection::LoadTracksWithMediaType(AVFoundation.AVFragmentedAsset,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableComposition_AVMutableCompositionTrackInspection::LoadTrack(AVFoundation.AVMutableComposition,System.Int32,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableComposition_AVMutableCompositionTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVMutableComposition,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableComposition_AVMutableCompositionTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVMutableComposition,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableComposition_AVMutableCompositionTrackInspection::LoadTracksWithMediaType(AVFoundation.AVMutableComposition,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableComposition_AVMutableCompositionTrackInspection::LoadTracksWithMediaType(AVFoundation.AVMutableComposition,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVSampleBufferGenerator::NotifyOfDataReady(CoreMedia.CMSampleBuffer,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVUrlAsset::FindCompatibleTrack(AVFoundation.AVCompositionTrack,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-Accelerate.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-Accelerate.ignore index 9e86b99b1d44..02edf09897b5 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-Accelerate.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-Accelerate.ignore @@ -580,4 +580,3 @@ !missing-pinvoke! vImagePerspectiveWarp_Planar8 is not bound !missing-pinvoke! vImageConvolveFloatKernel_ARGB8888 is not bound !missing-pinvoke! vImageSepConvolve_ARGB8888 is not bound - diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-AudioToolbox.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-AudioToolbox.ignore index d70264440b4b..18940ca5c9b6 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-AudioToolbox.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-AudioToolbox.ignore @@ -98,3 +98,7 @@ # We can't provide any realtime guarantees, so we should probably not bind any APIs that require/give realtiem guarantees !missing-pinvoke! AudioConverterFillComplexBufferRealtimeSafe is not bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void AudioUnit.AUAudioUnit::FromComponentDescription(AudioUnit.AudioComponentDescription,AudioUnit.AudioComponentInstantiationOptions,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AudioUnit.AUAudioUnit::FromComponentDescription(AudioUnit.AudioComponentDescription,AudioUnit.AudioComponentInstantiationOptions,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-AuthenticationServices.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-AuthenticationServices.ignore new file mode 100644 index 000000000000..d9368e1fe98e --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-AuthenticationServices.ignore @@ -0,0 +1,3 @@ + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void AuthenticationServices.ASAuthorizationAppleIdProvider::GetCredentialState(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-BackgroundAssets.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-BackgroundAssets.ignore new file mode 100644 index 000000000000..438884f91e9d --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-BackgroundAssets.ignore @@ -0,0 +1,5 @@ + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void BackgroundAssets.BADownloadManager::FetchCurrentDownloads(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void BackgroundAssets.BADownloadManager::PerformWithExclusiveControlBeforeDate(Foundation.NSDate,System.Action`2)' is missing a '?' on parameter 'performHandler' block parameter #1 +!missing-null-allowed! 'System.Void BackgroundAssets.BADownloadManagerDelegate::DidReceiveChallenge(BackgroundAssets.BADownload,Foundation.NSUrlAuthenticationChallenge,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-Cinematic.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-Cinematic.ignore new file mode 100644 index 000000000000..094a9b7acbca --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-Cinematic.ignore @@ -0,0 +1,8 @@ + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void Cinematic.CNAssetInfo::LoadFromAsset(AVFoundation.AVAsset,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Cinematic.CNAssetInfo::LoadFromAsset(AVFoundation.AVAsset,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void Cinematic.CNRenderingSessionAttributes::Load(AVFoundation.AVAsset,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Cinematic.CNRenderingSessionAttributes::Load(AVFoundation.AVAsset,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void Cinematic.CNScript::Load(AVFoundation.AVAsset,Cinematic.CNScriptChanges,Foundation.NSProgress,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Cinematic.CNScript::Load(AVFoundation.AVAsset,Cinematic.CNScriptChanges,Foundation.NSProgress,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-CloudKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-CloudKit.ignore index 22ed4f853734..1da3a83400f5 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-CloudKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-CloudKit.ignore @@ -7,3 +7,53 @@ !missing-protocol! CKRecordKeyValueSetting not bound !missing-protocol-conformance! CKRecord should conform to CKRecordKeyValueSetting (defined in 'CKRecordKeyValueSettingConformance' category) !missing-selector! CKRecord::encryptedValues not bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void CloudKit.CKAcceptSharesOperation::set_AcceptSharesCompleted(System.Action`1)' is missing a '?' on parameter 'value' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::AcceptShareMetadata(CloudKit.CKShareMetadata,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::AcceptShareMetadata(CloudKit.CKShareMetadata,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchShareMetadata(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchShareMetadata(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchShareParticipant(CloudKit.CKRecordID,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchShareParticipant(CloudKit.CKRecordID,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchShareParticipantWithEmailAddress(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchShareParticipantWithEmailAddress(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchShareParticipantWithPhoneNumber(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchShareParticipantWithPhoneNumber(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchUserRecordId(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchUserRecordId(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::GetAccountStatus(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::DeleteRecord(CloudKit.CKRecordID,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::DeleteRecord(CloudKit.CKRecordID,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::DeleteRecordZone(CloudKit.CKRecordZoneID,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::DeleteRecordZone(CloudKit.CKRecordZoneID,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::FetchAllRecordZones(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::FetchAllRecordZones(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::FetchAllSubscriptions(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::FetchAllSubscriptions(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::FetchRecord(CloudKit.CKRecordID,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::FetchRecord(CloudKit.CKRecordID,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::FetchRecordZone(CloudKit.CKRecordZoneID,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::FetchRecordZone(CloudKit.CKRecordZoneID,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::FetchSubscription(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::FetchSubscription(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::PerformQuery(CloudKit.CKQuery,CloudKit.CKRecordZoneID,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::PerformQuery(CloudKit.CKQuery,CloudKit.CKRecordZoneID,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::SaveRecord(CloudKit.CKRecord,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::SaveRecord(CloudKit.CKRecord,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::SaveRecordZone(CloudKit.CKRecordZone,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::SaveRecordZone(CloudKit.CKRecordZone,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::SaveSubscription(CloudKit.CKSubscription,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKDatabase::SaveSubscription(CloudKit.CKSubscription,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKFetchRecordsOperation::set_PerRecordCompletion(System.Action`3)' is missing a '?' on parameter 'value' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKFetchRecordsOperation::set_PerRecordCompletion(System.Action`3)' is missing a '?' on parameter 'value' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKFetchRecordsOperation::set_PerRecordCompletion(System.Action`3)' is missing a '?' on parameter 'value' block parameter #2 +!missing-null-allowed! 'System.Void CloudKit.CKFetchRecordZoneChangesOperation::set_ChangesCompleted(System.Action`1)' is missing a '?' on parameter 'value' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKFetchShareMetadataOperation::set_FetchShareMetadataCompleted(System.Action`1)' is missing a '?' on parameter 'value' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKFetchShareParticipantsOperation::set_Completed(System.Action`1)' is missing a '?' on parameter 'value' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKQueryOperation::set_Completed(System.Action`2)' is missing a '?' on parameter 'value' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKQueryOperation::set_Completed(System.Action`2)' is missing a '?' on parameter 'value' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKSyncEngine::FetchChanges(CloudKit.CKSyncEngineFetchChangesOptions,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKSyncEngine::FetchChanges(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKSyncEngine::SendChanges(CloudKit.CKSyncEngineSendChangesOptions,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKSyncEngine::SendChanges(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-CoreData.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-CoreData.ignore index 7ad13fafddef..1d504fb08ac4 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-CoreData.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-CoreData.ignore @@ -36,3 +36,7 @@ !missing-release-attribute-on-return-value! CoreData.NSManagedObjectContext CoreData.NSPersistentContainer::get_NewBackgroundContext()'s selector's ('newBackgroundContext') Objective-C method family ('new') indicates that the native method returns a retained object, and as such a '[return: Release]' attribute is required. !missing-release-attribute-on-return-value! CoreData.NSManagedObjectID CoreData.NSIncrementalStore::NewObjectIdFor(CoreData.NSEntityDescription,Foundation.NSObject)'s selector's ('newObjectIDForEntity:referenceObject:') Objective-C method family ('new') indicates that the native method returns a retained object, and as such a '[return: Release]' attribute is required. !missing-release-attribute-on-return-value! Foundation.NSObject CoreData.NSIncrementalStore::NewValue(CoreData.NSRelationshipDescription,CoreData.NSManagedObjectID,CoreData.NSManagedObjectContext,Foundation.NSError&)'s selector's ('newValueForRelationship:forObjectWithID:withContext:error:') Objective-C method family ('new') indicates that the native method returns a retained object, and as such a '[return: Release]' attribute is required. + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void CoreData.NSPersistentContainer::LoadPersistentStores(System.Action`2)' is missing a '?' on parameter 'block' block parameter #1 +!missing-null-allowed! 'System.Void CoreData.NSPersistentStoreCoordinator::AddPersistentStore(CoreData.NSPersistentStoreDescription,System.Action`2)' is missing a '?' on parameter 'block' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-CoreLocation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-CoreLocation.ignore index b2da9129678d..86d49d90fab6 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-CoreLocation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-CoreLocation.ignore @@ -1,3 +1,8 @@ ## unsorted !missing-field! kCLHeadingFilterNone not bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'CoreLocation.CLLocationUpdater CoreLocation.CLLocationUpdater::CreateLiveUpdates(CoreFoundation.DispatchQueue,System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'CoreLocation.CLLocationUpdater CoreLocation.CLLocationUpdater::CreateLiveUpdates(CoreLocation.CLLiveUpdateConfiguration,CoreFoundation.DispatchQueue,System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void CoreLocation.CLLocationManager::RequestTemporaryFullAccuracyAuthorization(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-CoreML.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-CoreML.ignore index abcfa049bfc6..3a92ec94d727 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-CoreML.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-CoreML.ignore @@ -3,3 +3,23 @@ ## managed version bound using another method !missing-selector! MLDictionaryFeatureProvider::objectForKeyedSubscript: not bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void CoreML.MLComputePlan::Load(CoreML.MLModelAsset,CoreML.MLModelConfiguration,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void CoreML.MLComputePlan::Load(CoreML.MLModelAsset,CoreML.MLModelConfiguration,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void CoreML.MLComputePlan::Load(Foundation.NSUrl,CoreML.MLModelConfiguration,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void CoreML.MLComputePlan::Load(Foundation.NSUrl,CoreML.MLModelConfiguration,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void CoreML.MLModel::CompileModel(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void CoreML.MLModel::CompileModel(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void CoreML.MLModel::GetPrediction(CoreML.IMLFeatureProvider,CoreML.MLPredictionOptions,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreML.MLModel::GetPrediction(CoreML.IMLFeatureProvider,CoreML.MLPredictionOptions,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CoreML.MLModel::GetPrediction(CoreML.IMLFeatureProvider,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreML.MLModel::GetPrediction(CoreML.IMLFeatureProvider,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CoreML.MLModel::Load(CoreML.MLModelAsset,CoreML.MLModelConfiguration,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void CoreML.MLModel::Load(CoreML.MLModelAsset,CoreML.MLModelConfiguration,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void CoreML.MLModel::LoadContents(Foundation.NSUrl,CoreML.MLModelConfiguration,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void CoreML.MLModel::LoadContents(Foundation.NSUrl,CoreML.MLModelConfiguration,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void CoreML.MLModelStructure::Load(CoreML.MLModelAsset,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void CoreML.MLModelStructure::Load(CoreML.MLModelAsset,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void CoreML.MLModelStructure::Load(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void CoreML.MLModelStructure::Load(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-CryptoTokenKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-CryptoTokenKit.ignore new file mode 100644 index 000000000000..dde4f946589f --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-CryptoTokenKit.ignore @@ -0,0 +1,6 @@ + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void CryptoTokenKit.TKSmartCard::BeginSession(System.Action`2)' is missing a '?' on parameter 'reply' block parameter #1 +!missing-null-allowed! 'System.Void CryptoTokenKit.TKSmartCard::TransmitRequest(Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'reply' block parameter #0 +!missing-null-allowed! 'System.Void CryptoTokenKit.TKSmartCard::TransmitRequest(Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'reply' block parameter #1 +!missing-null-allowed! 'System.Void CryptoTokenKit.TKSmartCardUserInteraction::Run(System.Action`2)' is missing a '?' on parameter 'reply' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-DeviceCheck.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-DeviceCheck.ignore new file mode 100644 index 000000000000..cc6a764099e7 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-DeviceCheck.ignore @@ -0,0 +1,8 @@ + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void DeviceCheck.DCAppAttestService::AttestKey(System.String,Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void DeviceCheck.DCAppAttestService::AttestKey(System.String,Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void DeviceCheck.DCAppAttestService::GenerateAssertion(System.String,Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void DeviceCheck.DCAppAttestService::GenerateAssertion(System.String,Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void DeviceCheck.DCAppAttestService::GenerateKey(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void DeviceCheck.DCAppAttestService::GenerateKey(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore index de328141b7b0..f22205890329 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore @@ -1306,3 +1306,32 @@ # it is used in the selectors that support vargs and thefore cannot be used with out bindings !missing-field! NSInflectionConceptsKey not bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'Foundation.NSProgress Foundation.NSItemProvider::LoadDataRepresentation(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'Foundation.NSProgress Foundation.NSItemProvider::LoadDataRepresentation(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'Foundation.NSProgress Foundation.NSItemProvider::LoadFileRepresentation(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'Foundation.NSProgress Foundation.NSItemProvider::LoadFileRepresentation(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'Foundation.NSProgress Foundation.NSItemProvider::LoadObject(ObjCRuntime.Class,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'Foundation.NSProgress Foundation.NSItemProvider::LoadObject(ObjCRuntime.Class,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'Foundation.NSUrlSessionUploadTask Foundation.NSUrlSession::CreateUploadTask(Foundation.NSData,System.Action`3)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'Foundation.NSUrlSessionUploadTask Foundation.NSUrlSession::CreateUploadTask(Foundation.NSData,System.Action`3)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'Foundation.NSUrlSessionUploadTask Foundation.NSUrlSession::CreateUploadTask(Foundation.NSData,System.Action`3)' is missing a '?' on parameter 'completionHandler' block parameter #2 +!missing-null-allowed! 'System.Void Foundation.NSFileCoordinator::CoordinateAccess(Foundation.NSFileAccessIntent[],Foundation.NSOperationQueue,System.Action`1)' is missing a '?' on parameter 'accessor' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSFilePresenter::AccommodatePresentedItemDeletion(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSFilePresenter::AccommodatePresentedSubitemDeletion(Foundation.NSUrl,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSFilePresenter::SavePresentedItemChanges(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSHttpCookieStorage::GetCookiesForTask(Foundation.NSUrlSessionTask,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSUrlCache::GetCachedResponse(Foundation.NSUrlSessionDataTask,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSUrlCredentialStorage::GetCredentials(Foundation.NSUrlProtectionSpace,Foundation.NSUrlSessionTask,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSUrlCredentialStorage::GetDefaultCredential(Foundation.NSUrlProtectionSpace,Foundation.NSUrlSessionTask,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSUrlSessionDownloadTask::Cancel(System.Action`1)' is missing a '?' on parameter 'resumeCallback' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSUrlSessionStreamTask::WriteData(Foundation.NSData,System.Double,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSUrlSessionUploadTask::CancelByProducingResumeData(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSUrlSessionWebSocketTask::ReceiveMessage(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSUrlSessionWebSocketTask::ReceiveMessage(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void Foundation.NSUrlSessionWebSocketTask::SendMessage(Foundation.NSUrlSessionWebSocketMessage,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSUrlSessionWebSocketTask::SendPing(System.Action`1)' is missing a '?' on parameter 'pongReceiveHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSUserActivity::GetContinuationStreams(System.Action`3)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSUserActivity::GetContinuationStreams(System.Action`3)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void Foundation.NSUserActivity::GetContinuationStreams(System.Action`3)' is missing a '?' on parameter 'completionHandler' block parameter #2 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-GameKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-GameKit.ignore index f7e0759bc53b..7cd8e60e2485 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-GameKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-GameKit.ignore @@ -2,3 +2,49 @@ ## enum size declared after the enum, e.g. `typedef NSInteger GKInviteeResponse;`, so we miss the metadata !unknown-native-enum! GKInviteeResponse bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void GameKit.GKAchievement::ReportAchievements(GameKit.GKAchievement[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKAchievement::ResetAchivements(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLeaderboard::SubmitScore(System.IntPtr,System.UIntPtr,GameKit.GKPlayer,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLeaderboard::SubmitScore(System.IntPtr,System.UIntPtr,GameKit.GKPlayer,System.String[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadChallengeableFriends(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadChallengeableFriends(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadFriendsAuthorizationStatus(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadFriendsList(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadFriendsList(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadFriendsList(System.String[],System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadFriendsList(System.String[],System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadRecentPlayers(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadRecentPlayers(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKMatch::ChooseBestHostingPlayer(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKMatch::Rematch(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKMatch::Rematch(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKMatchmaker::AddPlayers(GameKit.GKMatch,GameKit.GKMatchRequest,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKMatchmaker::FindMatchedPlayers(GameKit.GKMatchRequest,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKMatchmaker::FindMatchedPlayers(GameKit.GKMatchRequest,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKMatchmaker::FindPlayersForHostedRequest(GameKit.GKMatchRequest,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKMatchmaker::FindPlayersForHostedRequest(GameKit.GKMatchRequest,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKMatchmaker::Match(GameKit.GKInvite,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKMatchmaker::Match(GameKit.GKInvite,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKMatchmaker::QueryQueueActivity(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedExchange::Cancel(System.String,Foundation.NSObject[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedExchange::Reply(System.String,Foundation.NSObject[],Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::AcceptInvite(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::AcceptInvite(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::DeclineInvite(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::EndMatchInTurn(Foundation.NSData,GameKit.GKLeaderboardScore[],Foundation.NSObject[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::EndMatchInTurn(Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'onCompletion' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::EndTurn(GameKit.GKTurnBasedParticipant[],System.Double,Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::LoadMatch(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::LoadMatch(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::ParticipantQuitInTurn(GameKit.GKTurnBasedMatchOutcome,GameKit.GKTurnBasedParticipant[],System.Double,Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::ParticipantQuitOutOfTurn(GameKit.GKTurnBasedMatchOutcome,System.Action`1)' is missing a '?' on parameter 'onCompletion' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::Rematch(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::Rematch(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::Remove(System.Action`1)' is missing a '?' on parameter 'onCompletion' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::SaveCurrentTurn(Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::SaveMergedMatchData(Foundation.NSData,GameKit.GKTurnBasedExchange[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::SendExchange(GameKit.GKTurnBasedParticipant[],Foundation.NSData,System.String,Foundation.NSObject[],System.Double,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::SendExchange(GameKit.GKTurnBasedParticipant[],Foundation.NSData,System.String,Foundation.NSObject[],System.Double,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::SendReminder(GameKit.GKTurnBasedParticipant[],System.String,Foundation.NSObject[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-Intents.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-Intents.ignore index 2828a2badca7..61a3dbbf99e8 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-Intents.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-Intents.ignore @@ -13,3 +13,9 @@ !missing-selector! +NSString::deferredLocalizedNSStringStringWithFormat: not bound !missing-selector! +NSString::deferredLocalizedNSStringStringWithFormat:fromTable: not bound !missing-selector! +NSString::deferredLocalizedNSStringStringWithFormat:fromTable:arguments: not bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void Intents.INInteraction::DeleteAllInteractions(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void Intents.INInteraction::DeleteGroupedInteractions(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void Intents.INInteraction::DeleteInteractions(System.String[],System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void Intents.INInteraction::DonateInteraction(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-LinkPresentation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-LinkPresentation.ignore new file mode 100644 index 000000000000..4a5ace053b8c --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-LinkPresentation.ignore @@ -0,0 +1,6 @@ + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void LinkPresentation.LPMetadataProvider::StartFetchingMetadata(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void LinkPresentation.LPMetadataProvider::StartFetchingMetadata(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void LinkPresentation.LPMetadataProvider::StartFetchingMetadata(Foundation.NSUrlRequest,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void LinkPresentation.LPMetadataProvider::StartFetchingMetadata(Foundation.NSUrlRequest,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-MultipeerConnectivity.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-MultipeerConnectivity.ignore new file mode 100644 index 000000000000..53210f28762b --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-MultipeerConnectivity.ignore @@ -0,0 +1,3 @@ + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'Foundation.NSProgress MultipeerConnectivity.MCSession::SendResource(Foundation.NSUrl,System.String,MultipeerConnectivity.MCPeerID,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-NaturalLanguage.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-NaturalLanguage.ignore new file mode 100644 index 000000000000..c3a29cc70473 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-NaturalLanguage.ignore @@ -0,0 +1,4 @@ + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void NaturalLanguage.NLContextualEmbedding::RequestAssets(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void NaturalLanguage.NLTagger::RequestAssets(Foundation.NSString,Foundation.NSString,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-NetworkExtension.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-NetworkExtension.ignore new file mode 100644 index 000000000000..b08b9a3818e2 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-NetworkExtension.ignore @@ -0,0 +1,16 @@ + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Boolean NetworkExtension.NETunnelProviderSession::SendProviderMessage(Foundation.NSData,Foundation.NSError&,System.Action`1)' is missing a '?' on parameter 'responseHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEPacketTunnelProvider::StartTunnel(Foundation.NSDictionary`2,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NERelayManager::LoadAllManagersFromPreferences(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void NetworkExtension.NERelayManager::LoadFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NERelayManager::RemoveFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NERelayManager::SaveToPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NETunnelProvider::HandleAppMessage(Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NETunnelProvider::SetTunnelNetworkSettings(NetworkExtension.NETunnelNetworkSettings,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NETunnelProviderManager::LoadAllFromPreferences(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NETunnelProviderManager::LoadAllFromPreferences(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void NetworkExtension.NEVpnConnection::FetchLastDisconnectError(System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEVpnManager::LoadFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEVpnManager::RemoveFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEVpnManager::SaveToPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-Photos.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-Photos.ignore index d94e25814011..82356d30d416 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-Photos.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-Photos.ignore @@ -2,3 +2,11 @@ # updated sharpie results !missing-protocol-conformance! PHCloudIdentifier should conform to NSCopying (defined in '' category) + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Int32 Photos.PHAssetResourceManager::RequestData(Photos.PHAssetResource,Photos.PHAssetResourceRequestOptions,System.Action`1,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Photos.PHAssetResourceManager::WriteData(Photos.PHAssetResource,Foundation.NSUrl,Photos.PHAssetResourceRequestOptions,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Photos.PHLivePhotoEditingContext::_PrepareLivePhotoForPlayback(CoreGraphics.CGSize,Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void Photos.PHLivePhotoEditingContext::_PrepareLivePhotoForPlayback(CoreGraphics.CGSize,Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void Photos.PHLivePhotoEditingContext::_SaveLivePhoto(Photos.PHContentEditingOutput,Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void Photos.PHPhotoLibrary::PerformChanges(System.Action,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-ReplayKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-ReplayKit.ignore new file mode 100644 index 000000000000..6665409550f5 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-ReplayKit.ignore @@ -0,0 +1,14 @@ + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastController::FinishBroadcast(System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastController::StartBroadcast(System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::ExportClip(Foundation.NSUrl,System.Double,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StartCapture(System.Action`3,System.Action`1)' is missing a '?' on parameter 'captureHandler' block parameter #2 +!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StartCapture(System.Action`3,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StartClipBuffering(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StartRecording(System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StopCapture(System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StopClipBuffering(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StopRecording(Foundation.NSUrl,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StopRecording(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StopRecording(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-SharedWithYou.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-SharedWithYou.ignore new file mode 100644 index 000000000000..4a7587b9987f --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-SharedWithYou.ignore @@ -0,0 +1,4 @@ + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void SharedWithYou.SWHighlightCenter::GetHighlight(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SharedWithYou.SWHighlightCenter::GetHighlight(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-ShazamKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-ShazamKit.ignore new file mode 100644 index 000000000000..f01bd3d87488 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-ShazamKit.ignore @@ -0,0 +1,6 @@ + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void ShazamKit.SHMediaItem::FetchMediaItem(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ShazamKit.SHMediaItem::FetchMediaItem(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ShazamKit.SHSignatureGenerator::GenerateSignature(AVFoundation.AVAsset,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ShazamKit.SHSignatureGenerator::GenerateSignature(AVFoundation.AVAsset,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-UIKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-UIKit.ignore index b5feaecccfc4..6fcfcb4218ef 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-UIKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-UIKit.ignore @@ -191,4 +191,3 @@ # updated sharpie results !missing-protocol-conformance! UIWindowScene should conform to UITraitEnvironment (defined in '' category) - diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-UserNotifications.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-UserNotifications.ignore new file mode 100644 index 000000000000..a69ebaad3fd3 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-UserNotifications.ignore @@ -0,0 +1,5 @@ + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void UserNotifications.UNUserNotificationCenter::AddNotificationRequest(UserNotifications.UNNotificationRequest,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UserNotifications.UNUserNotificationCenter::RequestAuthorization(UserNotifications.UNAuthorizationOptions,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void UserNotifications.UNUserNotificationCenter::SetBadgeCount(System.IntPtr,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-Vision.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-Vision.ignore index 022cd97667f7..fe71158373a4 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-Vision.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-Vision.ignore @@ -58,4 +58,3 @@ # Since the parameter is passed by reference rather than value, the marshal directive is not necessary # validated by VisionAnalyzer sample: https://github.com/haritha-mohan/vision-analyzer !wrong-simd-missing-marshaldirective! System.Boolean Vision.VNHumanBodyPose3DObservation::GetCameraRelativePosition(CoreGraphics.NMatrix4&,Vision.VNHumanBodyPose3DObservationJointName,Foundation.NSError&): simd type: simd_float4x4 - diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-ARKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-ARKit.ignore new file mode 100644 index 000000000000..82c35c238f35 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-ARKit.ignore @@ -0,0 +1,10 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void ARKit.ARGeoTrackingConfiguration::CheckAvailability(CoreLocation.CLLocationCoordinate2D,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ARKit.ARGeoTrackingConfiguration::CheckAvailability(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ARKit.ARReferenceImage::Validate(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ARKit.ARSession::CaptureHighResolutionFrame(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void ARKit.ARSession::CaptureHighResolutionFrame(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void ARKit.ARSession::CreateReferenceObject(CoreGraphics.NMatrix4,CoreGraphics.NVector3,CoreGraphics.NVector3,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ARKit.ARSession::CreateReferenceObject(CoreGraphics.NMatrix4,CoreGraphics.NVector3,CoreGraphics.NVector3,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ARKit.ARSession::GetCurrentWorldMap(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ARKit.ARSession::GetCurrentWorldMap(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-AVFoundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-AVFoundation.ignore index 0d92e974d749..1694891a208b 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-AVFoundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-AVFoundation.ignore @@ -15,3 +15,21 @@ # isEqual: is already exposed from NSObject, no need to expose again !missing-selector! AVCaptionRegion::isEqual: not bound + +!missing-null-allowed! 'System.Void AVFoundation.AVCaptionConversionValidator::ValidateCaptionConversion(System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVCapturePhotoOutput::SetPreparedPhotoSettings(AVFoundation.AVCapturePhotoSettings[],System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedMovie_AVFragmentedMovieTrackInspection::LoadTrack(AVFoundation.AVFragmentedMovie,System.Int32,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedMovie_AVFragmentedMovieTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVFragmentedMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedMovie_AVFragmentedMovieTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVFragmentedMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedMovie_AVFragmentedMovieTrackInspection::LoadTracksWithMediaType(AVFoundation.AVFragmentedMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedMovie_AVFragmentedMovieTrackInspection::LoadTracksWithMediaType(AVFoundation.AVFragmentedMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMovie_AVMovieTrackInspection::LoadTrack(AVFoundation.AVMovie,System.Int32,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMovie_AVMovieTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVMovie_AVMovieTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMovie_AVMovieTrackInspection::LoadTracksWithMediaType(AVFoundation.AVMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVMovie_AVMovieTrackInspection::LoadTracksWithMediaType(AVFoundation.AVMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTrack(System.Int32,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaCharacteristic(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaCharacteristic(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaType(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaType(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-AppClip.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-AppClip.ignore new file mode 100644 index 000000000000..e2d25fcdb8d5 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-AppClip.ignore @@ -0,0 +1,2 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void AppClip.APActivationPayload::ConfirmAcquired(CoreLocation.CLRegion,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-AuthenticationServices.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-AuthenticationServices.ignore index 2a7d552f9a31..50135011a942 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-AuthenticationServices.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-AuthenticationServices.ignore @@ -8,3 +8,13 @@ !missing-protocol-conformance! ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest should conform to ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialAssertionRequest (defined in '' category) !missing-protocol-conformance! ASAuthorizationSecurityKeyPublicKeyCredentialProvider should conform to ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialProvider (defined in '' category) !missing-protocol-conformance! ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest should conform to ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialRegistrationRequest (defined in '' category) + +!missing-null-allowed! 'System.Void AuthenticationServices.ASAccountAuthenticationModificationExtensionContext::GetSignInWithAppleUpgradeAuthorization(System.String,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AuthenticationServices.ASAccountAuthenticationModificationExtensionContext::GetSignInWithAppleUpgradeAuthorization(System.String,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASAuthorizationProviderExtensionAuthorizationRequest::PresentAuthorizationViewController(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASCredentialIdentityStore::RemoveAllCredentialIdentities(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASCredentialIdentityStore::RemoveCredentialIdentityEntries(AuthenticationServices.IASCredentialIdentity[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASCredentialIdentityStore::ReplaceCredentialIdentityEntries(AuthenticationServices.IASCredentialIdentity[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASCredentialIdentityStore::SaveCredentialIdentityEntries(AuthenticationServices.IASCredentialIdentity[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASSettingsHelper::OpenCredentialProviderAppSettings(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AuthenticationServices.ASSettingsHelper::OpenVerificationCodeAppSettings(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CallKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CallKit.ignore new file mode 100644 index 000000000000..406389efe76f --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CallKit.ignore @@ -0,0 +1,9 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void CallKit.CXCallController::RequestTransaction(CallKit.CXAction,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void CallKit.CXCallController::RequestTransaction(CallKit.CXAction[],System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void CallKit.CXCallController::RequestTransaction(CallKit.CXTransaction,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void CallKit.CXCallDirectoryManager::GetEnabledStatusForExtension(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void CallKit.CXCallDirectoryManager::OpenSettings(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void CallKit.CXCallDirectoryManager::ReloadExtension(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void CallKit.CXProvider::ReportNewIncomingCall(Foundation.NSUuid,CallKit.CXCallUpdate,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void CallKit.CXProvider::ReportNewIncomingVoIPPushPayload(Foundation.NSDictionary,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CarPlay.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CarPlay.ignore new file mode 100644 index 000000000000..9470b1acdbb1 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CarPlay.ignore @@ -0,0 +1,8 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void CarPlay.CPInterfaceController::DismissTemplate(System.Boolean,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void CarPlay.CPInterfaceController::PopTemplate(System.Boolean,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void CarPlay.CPInterfaceController::PopToRootTemplate(System.Boolean,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void CarPlay.CPInterfaceController::PopToTemplate(CarPlay.CPTemplate,System.Boolean,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void CarPlay.CPInterfaceController::PresentTemplate(CarPlay.CPTemplate,System.Boolean,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void CarPlay.CPInterfaceController::PushTemplate(CarPlay.CPTemplate,System.Boolean,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void CarPlay.CPInterfaceController::SetRootTemplate(CarPlay.CPTemplate,System.Boolean,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-ClassKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-ClassKit.ignore new file mode 100644 index 000000000000..569d612c56b5 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-ClassKit.ignore @@ -0,0 +1,8 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void ClassKit.CLSContext::FindDescendantMatching(System.String[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ClassKit.CLSContext::FindDescendantMatching(System.String[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ClassKit.CLSDataStore::FetchActivity(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ClassKit.CLSDataStore::FetchActivity(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ClassKit.CLSDataStore::FindContextsMatching(Foundation.NSPredicate,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ClassKit.CLSDataStore::FindContextsMatching(System.String[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ClassKit.CLSDataStore::Save(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CloudKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CloudKit.ignore new file mode 100644 index 000000000000..0794508c536e --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CloudKit.ignore @@ -0,0 +1,3 @@ +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchAllLongLivedOperationIDs(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchAllLongLivedOperationIDs(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchLongLivedOperation(System.String[],System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreAudioKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreAudioKit.ignore new file mode 100644 index 000000000000..e19d6c3d73fc --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreAudioKit.ignore @@ -0,0 +1,2 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void AudioUnit.AUAudioUnit::RequestViewController(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreData.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreData.ignore index 0164c6ce8101..9b1ff8cf4ce1 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreData.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreData.ignore @@ -1,3 +1,5 @@ # waiting for changes in foundation which are not trivial !missing-protocol-member! NSFetchedResultsControllerDelegate::controller:didChangeContentWithDifference: not found !missing-protocol-member! NSFetchedResultsControllerDelegate::controller:didChangeContentWithSnapshot: not found + +!missing-null-allowed! 'System.Void CoreData.NSCoreDataCoreSpotlightDelegate::DeleteSpotlightIndex(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreLocation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreLocation.ignore new file mode 100644 index 000000000000..3a48307f7a5b --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreLocation.ignore @@ -0,0 +1,2 @@ +!missing-null-allowed! 'System.Void CoreLocation.CLLocationManager::StartMonitoringLocationPushes(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void CoreLocation.CLLocationManager::StartMonitoringLocationPushes(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreMotion.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreMotion.ignore index b805dca5f1d6..0e3e0e9fd839 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreMotion.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreMotion.ignore @@ -2,3 +2,9 @@ ## no generator support for FastEnumeration - https://bugzilla.xamarin.com/show_bug.cgi?id=4391 !missing-protocol-conformance! CMSensorDataList should conform to NSFastEnumeration + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void CoreMotion.CMBatchedSensorManager::StartAccelerometerUpdates(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void CoreMotion.CMBatchedSensorManager::StartAccelerometerUpdates(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void CoreMotion.CMBatchedSensorManager::StartDeviceMotionUpdates(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void CoreMotion.CMBatchedSensorManager::StartDeviceMotionUpdates(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreNFC.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreNFC.ignore new file mode 100644 index 000000000000..68eb78578891 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreNFC.ignore @@ -0,0 +1,3 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void CoreNFC.NFCNdefReaderSession::ConnectToTag(CoreNFC.INFCNdefTag,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreNFC.NFCTagReaderSession::ConnectTo(CoreNFC.INFCTag,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreSpotlight.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreSpotlight.ignore new file mode 100644 index 000000000000..2149cea40c3f --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreSpotlight.ignore @@ -0,0 +1,9 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex_CSOptionalBatchingExtension::EndIndexBatch(CoreSpotlight.CSSearchableIndex,Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::Delete(System.String[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::DeleteAll(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::DeleteWithDomain(System.String[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::FetchData(System.String,System.String,UniformTypeIdentifiers.UTType,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::FetchData(System.String,System.String,UniformTypeIdentifiers.UTType,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::Index(CoreSpotlight.CSSearchableItem[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchQuery::set_CompletionHandler(System.Action`1)' is missing a '?' on parameter 'value' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-EventKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-EventKit.ignore index f6a5ffc2ac08..c08516e4aa69 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-EventKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-EventKit.ignore @@ -1,2 +1,5 @@ ## only available on OSX (NA or unused in iOS) !missing-enum! EKAlarmType not bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.IntPtr EventKit.EKEventStore::FetchReminders(Foundation.NSPredicate,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-FileProvider.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-FileProvider.ignore index 75cc865ca477..3f5cc9d54f5c 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-FileProvider.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-FileProvider.ignore @@ -4,3 +4,43 @@ # Not found in the headers or web docs !missing-selector! NSFileProviderManager::waitForNSFileProviderManagerWithCompletionHandler: not bound !incorrect-protocol-member! NSFileProviderPendingSetEnumerator::isMaximumSizeReached is REQUIRED and should be abstract + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'Foundation.NSProgress FileProvider.NSFileProviderExtension::FetchThumbnails(Foundation.NSString[],CoreGraphics.CGSize,FileProvider.NSFileProviderExtensionFetchThumbnailsHandler,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::CreateDirectory(System.String,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::CreateDirectory(System.String,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::DeleteItem(System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::ImportDocument(Foundation.NSUrl,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::ImportDocument(Foundation.NSUrl,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::ProvidePlaceholderAtUrl(Foundation.NSUrl,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::RenameItem(System.String,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::RenameItem(System.String,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::ReparentItem(System.String,System.String,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::ReparentItem(System.String,System.String,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::SetFavoriteRank(Foundation.NSNumber,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::SetFavoriteRank(Foundation.NSNumber,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::SetLastUsedDate(Foundation.NSDate,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::SetLastUsedDate(Foundation.NSDate,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::SetTagData(Foundation.NSData,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::SetTagData(Foundation.NSData,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::StartProvidingItemAtUrl(Foundation.NSUrl,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::TrashItem(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::TrashItem(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::UntrashItem(System.String,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderExtension::UntrashItem(System.String,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::AddDomain(FileProvider.NSFileProviderDomain,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::EvictItem(Foundation.NSString,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::GetDomains(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::GetService(System.String,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::GetUserVisibleUrl(Foundation.NSString,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::GetUserVisibleUrl(Foundation.NSString,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::Import(FileProvider.NSFileProviderDomain,Foundation.NSUrl,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::Register(Foundation.NSUrlSessionTask,System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::ReimportItemsBelowItem(Foundation.NSString,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::RemoveAllDomains(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::RemoveDomain(FileProvider.NSFileProviderDomain,FileProvider.NSFileProviderDomainRemovalMode,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::RemoveDomain(FileProvider.NSFileProviderDomain,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::RequestModification(FileProvider.NSFileProviderItemFields,System.String,FileProvider.NSFileProviderModifyItemOptions,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::SignalEnumerator(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::SignalErrorResolved(Foundation.NSError,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::WaitForChangesOnItemsBelowItem(System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore index 4a4d505c279d..f172157cb958 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore @@ -9,3 +9,10 @@ ## does not exists in iOS as a type - but some API refers to it (messy) !unknown-type! NSPortMessage bound + +!missing-null-allowed! 'System.Void Foundation.NSBundleResourceRequest::BeginAccessingResources(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSFileManager::GetFileProviderServices(Foundation.NSUrl,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSFileManager::GetFileProviderServices(Foundation.NSUrl,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void Foundation.NSFilePresenter::AccommodatePresentedItemEviction(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSFileProviderService::GetFileProviderConnection(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSFileProviderService::GetFileProviderConnection(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-GameController.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-GameController.ignore new file mode 100644 index 000000000000..b91bd0531a57 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-GameController.ignore @@ -0,0 +1,2 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void GameController.GCVirtualController::Connect(System.Action`1)' is missing a '?' on parameter 'reply' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-GameKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-GameKit.ignore new file mode 100644 index 000000000000..ba473c52d744 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-GameKit.ignore @@ -0,0 +1,11 @@ +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::DeleteSavedGames(System.String,System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::FetchSavedGames(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::FetchSavedGames(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::ResolveConflictingSavedGames(GameKit.GKSavedGame[],Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::ResolveConflictingSavedGames(GameKit.GKSavedGame[],Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::SaveGameData(Foundation.NSData,System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::SaveGameData(Foundation.NSData,System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::set_AuthenticateHandler(System.Action`2)' is missing a '?' on parameter 'value' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::set_AuthenticateHandler(System.Action`2)' is missing a '?' on parameter 'value' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKSavedGame::LoadData(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKSavedGame::LoadData(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-HealthKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-HealthKit.ignore new file mode 100644 index 000000000000..e79c19f21ab4 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-HealthKit.ignore @@ -0,0 +1,32 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'Foundation.NSProgress HealthKit.HKAttachmentStore::GetData(HealthKit.HKAttachment,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'Foundation.NSProgress HealthKit.HKAttachmentStore::GetData(HealthKit.HKAttachment,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKActivitySummaryQuery::.ctor(Foundation.NSPredicate,System.Action`3)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKActivitySummaryQuery::.ctor(Foundation.NSPredicate,System.Action`3)' is missing a '?' on parameter 'handler' block parameter #2 +!missing-null-allowed! 'System.Void HealthKit.HKActivitySummaryQuery::set_UpdateHandler(System.Action`3)' is missing a '?' on parameter 'value' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKActivitySummaryQuery::set_UpdateHandler(System.Action`3)' is missing a '?' on parameter 'value' block parameter #2 +!missing-null-allowed! 'System.Void HealthKit.HKAttachmentStore::AddAttachment(HealthKit.HKObject,System.String,UniformTypeIdentifiers.UTType,Foundation.NSUrl,Foundation.NSDictionary`2,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HealthKit.HKAttachmentStore::AddAttachment(HealthKit.HKObject,System.String,UniformTypeIdentifiers.UTType,Foundation.NSUrl,Foundation.NSDictionary`2,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKDocumentQuery::.ctor(HealthKit.HKDocumentType,Foundation.NSPredicate,System.UIntPtr,Foundation.NSSortDescriptor[],System.Boolean,System.Action`4)' is missing a '?' on parameter 'resultsHandler' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKDocumentQuery::.ctor(HealthKit.HKDocumentType,Foundation.NSPredicate,System.UIntPtr,Foundation.NSSortDescriptor[],System.Boolean,System.Action`4)' is missing a '?' on parameter 'resultsHandler' block parameter #3 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::DeleteObject(HealthKit.HKObject,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::DeleteObjects(HealthKit.HKObject[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::DeleteObjects(HealthKit.HKObjectType,Foundation.NSPredicate,System.Action`3)' is missing a '?' on parameter 'completion' block parameter #2 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::DisableAllBackgroundDelivery(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::DisableBackgroundDelivery(HealthKit.HKObjectType,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::EnableBackgroundDelivery(HealthKit.HKObjectType,HealthKit.HKUpdateFrequency,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::GetPreferredUnits(Foundation.NSSet,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::HandleAuthorizationForExtension(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::RecalibrateEstimates(HealthKit.HKSampleType,Foundation.NSDate,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::RequestAuthorizationToShare(Foundation.NSSet,Foundation.NSSet,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::SaveObject(HealthKit.HKObject,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::SaveObjects(HealthKit.HKObject[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::StartWatchApp(HealthKit.HKWorkoutConfiguration,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHeartbeatSeriesBuilder::FinishSeries(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HealthKit.HKHeartbeatSeriesBuilder::FinishSeries(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKVerifiableClinicalRecordQuery::.ctor(System.String[],HealthKit.HKVerifiableClinicalRecordSourceType[],Foundation.NSPredicate,System.Action`3)' is missing a '?' on parameter 'resultsHandler' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKVerifiableClinicalRecordQuery::.ctor(System.String[],HealthKit.HKVerifiableClinicalRecordSourceType[],Foundation.NSPredicate,System.Action`3)' is missing a '?' on parameter 'resultsHandler' block parameter #2 +!missing-null-allowed! 'System.Void HealthKit.HKWorkoutRouteBuilder::FinishRoute(HealthKit.HKWorkout,Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HealthKit.HKWorkoutRouteBuilder::FinishRoute(HealthKit.HKWorkout,Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKWorkoutRouteBuilder::InsertRouteData(CoreLocation.CLLocation[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKWorkoutSession::SendDataToRemoteWorkoutSession(Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-HomeKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-HomeKit.ignore index 00784854e177..93e58fee0a80 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-HomeKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-HomeKit.ignore @@ -4,3 +4,59 @@ # Apple removed this enum value from native headers in Xcode 26.4 !extra-enum-value! Managed value 106 for HMError.QuotaExceeded not found in native headers + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void HomeKit.HMAccessory::Identify(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMAccessory::UpdateName(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMAccessorySetupManager::PerformAccessorySetup(HomeKit.HMAccessorySetupRequest,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMAccessorySetupManager::PerformAccessorySetup(HomeKit.HMAccessorySetupRequest,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HomeKit.HMCameraStream::UpdateAudioStreamSetting(HomeKit.HMCameraAudioStreamSetting,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMCharacteristic::EnableNotification(System.Boolean,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMCharacteristic::ReadValue(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMCharacteristic::UpdateAuthorizationData(Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMCharacteristic::WriteValue(Foundation.NSObject,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMCharacteristicWriteAction::UpdateTargetValue(Foundation.INSCopying,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMEventTrigger::UpdateEndEvents(HomeKit.HMEvent[],System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMEventTrigger::UpdateEvents(HomeKit.HMEvent[],System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMEventTrigger::UpdateExecuteOnce(System.Boolean,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMEventTrigger::UpdatePredicate(Foundation.NSPredicate,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMEventTrigger::UpdateRecurrences(Foundation.NSDateComponents[],System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddAccessory(HomeKit.HMAccessory,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddActionSet(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddActionSet(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddRoom(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddRoom(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddServiceGroup(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddServiceGroup(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddTrigger(HomeKit.HMTrigger,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddZone(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AddZone(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HomeKit.HMHome::AssignAccessory(HomeKit.HMAccessory,HomeKit.HMRoom,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::ExecuteActionSet(HomeKit.HMActionSet,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::ManageUsers(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::RemoveAccessory(HomeKit.HMAccessory,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::RemoveActionSet(HomeKit.HMActionSet,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::RemoveRoom(HomeKit.HMRoom,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::RemoveServiceGroup(HomeKit.HMServiceGroup,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::RemoveTrigger(HomeKit.HMTrigger,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::RemoveZone(HomeKit.HMZone,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::UnblockAccessory(HomeKit.HMAccessory,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::UpdateName(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHomeManager::AddHome(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHomeManager::AddHome(System.String,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HomeKit.HMHomeManager::RemoveHome(HomeKit.HMHome,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMRoom::UpdateName(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMService::UpdateAssociatedServiceType(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMService::UpdateName(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMServiceGroup::AddService(HomeKit.HMService,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMServiceGroup::RemoveService(HomeKit.HMService,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMServiceGroup::UpdateName(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMTimerTrigger::UpdateFireDate(Foundation.NSDate,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMTimerTrigger::UpdateRecurrence(Foundation.NSDateComponents,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMTrigger::AddActionSet(HomeKit.HMActionSet,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMTrigger::Enable(System.Boolean,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMTrigger::RemoveActionSet(HomeKit.HMActionSet,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMTrigger::UpdateName(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMZone::AddRoom(HomeKit.HMRoom,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMZone::RemoveRoom(HomeKit.HMRoom,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMZone::UpdateName(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-IdentityLookup.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-IdentityLookup.ignore new file mode 100644 index 000000000000..6bf075ff6234 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-IdentityLookup.ignore @@ -0,0 +1,3 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void IdentityLookup.ILMessageFilterExtensionContext::DeferQueryRequestToNetwork(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void IdentityLookup.ILMessageFilterExtensionContext::DeferQueryRequestToNetwork(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Intents.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Intents.ignore index 019d4e868b27..c502d78f8b1c 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Intents.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Intents.ignore @@ -1,3 +1,7 @@ ## The following were deprecated in ios(10.0, 10.0) !missing-selector! INRideOption::identifier not bound !missing-selector! INRideOption::setIdentifier: not bound + +!missing-null-allowed! 'System.Void Intents.INRelevantShortcutStore::SetRelevantShortcuts(Intents.INRelevantShortcut[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Intents.INVoiceShortcutCenter::GetVoiceShortcut(Foundation.NSUuid,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Intents.INVoiceShortcutCenter::GetVoiceShortcut(Foundation.NSUuid,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-IntentsUI.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-IntentsUI.ignore new file mode 100644 index 000000000000..e8de6b832937 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-IntentsUI.ignore @@ -0,0 +1,2 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void Intents.INImage::FetchImage(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-LocalAuthentication.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-LocalAuthentication.ignore new file mode 100644 index 000000000000..c6268b7d86b1 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-LocalAuthentication.ignore @@ -0,0 +1,2 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void LocalAuthentication.LAContext::EvaluateAccessControl(Security.SecAccessControl,LocalAuthentication.LAAccessControlOperation,System.String,System.Action`2)' is missing a '?' on parameter 'reply' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-MediaPlayer.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-MediaPlayer.ignore index 7e002c95d5ca..b1131093c2a6 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-MediaPlayer.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-MediaPlayer.ignore @@ -47,3 +47,12 @@ !missing-selector! MPMediaItem::title not bound !missing-selector! MPMediaItem::userGrouping not bound !missing-selector! MPMediaItem::isPreorder not bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void MediaPlayer.MPMediaLibrary::AddItem(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void MediaPlayer.MPMediaLibrary::GetPlaylist(Foundation.NSUuid,MediaPlayer.MPMediaPlaylistCreationMetadata,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void MediaPlayer.MPMediaLibrary::GetPlaylist(Foundation.NSUuid,MediaPlayer.MPMediaPlaylistCreationMetadata,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void MediaPlayer.MPMediaPlaylist::AddItem(System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void MediaPlayer.MPMediaPlaylist::AddMediaItems(MediaPlayer.MPMediaItem[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void MediaPlayer.MPMusicPlayerApplicationController::Perform(System.Action`1,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void MediaPlayer.MPMusicPlayerController::PrepareToPlay(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Messages.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Messages.ignore new file mode 100644 index 000000000000..01844318f7a6 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Messages.ignore @@ -0,0 +1,9 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void Messages.MSConversation::InsertAttachment(Foundation.NSUrl,System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Messages.MSConversation::InsertMessage(Messages.MSMessage,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Messages.MSConversation::InsertSticker(Messages.MSSticker,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Messages.MSConversation::InsertText(System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Messages.MSConversation::SendAttachment(Foundation.NSUrl,System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Messages.MSConversation::SendMessage(Messages.MSMessage,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Messages.MSConversation::SendSticker(Messages.MSSticker,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Messages.MSConversation::SendText(System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-NetworkExtension.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-NetworkExtension.ignore index 340724a16205..90d3d9d9463c 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-NetworkExtension.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-NetworkExtension.ignore @@ -8,3 +8,27 @@ # error used to be ignored in common-NetworkExtension.ignore but tvOS platform support was added and since this error does not apply to tvOS, it had to be addressed on a per platform basis !missing-release-attribute-on-return-value! NetworkExtension.NEAppRule[] NetworkExtension.NETunnelProviderManager::CopyAppRules()'s selector's ('copyAppRules') Objective-C method family ('copy') indicates that the native method returns a retained object, and as such a '[return: Release]' attribute is required. +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyProvider::StartProxy(Foundation.NSDictionary`2,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyProviderManager::LoadAllFromPreferences(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyProviderManager::LoadAllFromPreferences(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyTcpFlow::ReadData(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyTcpFlow::ReadData(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyTcpFlow::WriteData(Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppPushManager::LoadAllFromPreferences(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppPushManager::LoadAllFromPreferences(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppPushManager::LoadFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppPushManager::RemoveFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppPushManager::SaveToPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsProxyManager::LoadFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsProxyManager::RemoveFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsProxyManager::SaveToPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsProxyProvider::StartProxy(Foundation.NSDictionary,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsSettingsManager::LoadFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsSettingsManager::RemoveFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsSettingsManager::SaveToPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEFilterManager::LoadFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEFilterManager::RemoveFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEFilterManager::SaveToPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEFilterProvider::StartFilter(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEHotspotConfigurationManager::ApplyConfiguration(NetworkExtension.NEHotspotConfiguration,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEHotspotNetwork::FetchCurrent(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-PassKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-PassKit.ignore index 1be18a80705a..c20eebece6e7 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-PassKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-PassKit.ignore @@ -6,3 +6,17 @@ # needed to allow our WeakDelegate wrap !extra-null-allowed! 'System.Void PassKit.PKPayLaterView::set_WeakDelegate(Foundation.NSObject)' has a extraneous [NullAllowed] on parameter #0 + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void PassKit.PKAddShareablePassConfiguration::GetConfiguration(PassKit.PKShareablePassMetadata[],PassKit.PKAddShareablePassConfigurationPrimaryAction,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void PassKit.PKAddShareablePassConfiguration::GetConfiguration(PassKit.PKShareablePassMetadata[],PassKit.PKAddShareablePassConfigurationPrimaryAction,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void PassKit.PKIdentityAuthorizationController::RequestDocument(PassKit.PKIdentityRequest,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void PassKit.PKIdentityAuthorizationController::RequestDocument(PassKit.PKIdentityRequest,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void PassKit.PKIssuerProvisioningExtensionHandler::GenerateAddPaymentPassRequest(System.String,PassKit.PKAddPaymentPassRequestConfiguration,Foundation.NSData[],Foundation.NSData,Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void PassKit.PKPassLibrary::ActivateSecureElementPass(PassKit.PKSecureElementPass,Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void PassKit.PKPassLibrary::GetEncryptedServiceProviderData(PassKit.PKSecureElementPass,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void PassKit.PKPassLibrary::GetEncryptedServiceProviderData(PassKit.PKSecureElementPass,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void PassKit.PKPassLibrary::GetServiceProviderData(PassKit.PKSecureElementPass,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void PassKit.PKPassLibrary::GetServiceProviderData(PassKit.PKSecureElementPass,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void PassKit.PKVehicleConnectionSession::GetSession(PassKit.PKSecureElementPass,PassKit.IPKVehicleConnectionDelegate,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void PassKit.PKVehicleConnectionSession::GetSession(PassKit.PKSecureElementPass,PassKit.IPKVehicleConnectionDelegate,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Photos.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Photos.ignore new file mode 100644 index 000000000000..cd2d272fee1b --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Photos.ignore @@ -0,0 +1 @@ +!missing-null-allowed! 'System.Int32 Photos.PHLivePhoto::RequestLivePhoto(Foundation.NSUrl[],UIKit.UIImage,CoreGraphics.CGSize,Photos.PHImageContentMode,System.Action`2)' is missing a '?' on parameter 'resultHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-PushToTalk.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-PushToTalk.ignore new file mode 100644 index 000000000000..e65f289e2d89 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-PushToTalk.ignore @@ -0,0 +1,8 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void PushToTalk.PTChannelManager::Create(PushToTalk.IPTChannelManagerDelegate,PushToTalk.IPTChannelRestorationDelegate,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void PushToTalk.PTChannelManager::Create(PushToTalk.IPTChannelManagerDelegate,PushToTalk.IPTChannelRestorationDelegate,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void PushToTalk.PTChannelManager::SetAccessoryButtonEvents(System.Boolean,Foundation.NSUuid,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void PushToTalk.PTChannelManager::SetActiveRemoteParticipant(PushToTalk.PTParticipant,Foundation.NSUuid,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void PushToTalk.PTChannelManager::SetChannelDescriptor(PushToTalk.PTChannelDescriptor,Foundation.NSUuid,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void PushToTalk.PTChannelManager::SetServiceStatus(PushToTalk.PTServiceStatus,Foundation.NSUuid,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void PushToTalk.PTChannelManager::SetTransmissionMode(PushToTalk.PTTransmissionMode,Foundation.NSUuid,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-QuickLookThumbnailing.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-QuickLookThumbnailing.ignore new file mode 100644 index 000000000000..70508d3fd511 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-QuickLookThumbnailing.ignore @@ -0,0 +1,8 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailGenerator::GenerateBestRepresentation(QuickLookThumbnailing.QLThumbnailGenerationRequest,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailGenerator::GenerateBestRepresentation(QuickLookThumbnailing.QLThumbnailGenerationRequest,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailGenerator::GenerateRepresentations(QuickLookThumbnailing.QLThumbnailGenerationRequest,System.Action`3)' is missing a '?' on parameter 'updateHandler' block parameter #0 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailGenerator::GenerateRepresentations(QuickLookThumbnailing.QLThumbnailGenerationRequest,System.Action`3)' is missing a '?' on parameter 'updateHandler' block parameter #2 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailGenerator::SaveBestRepresentationAsContent(QuickLookThumbnailing.QLThumbnailGenerationRequest,Foundation.NSUrl,System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailProvider::ProvideThumbnail(QuickLookThumbnailing.QLFileThumbnailRequest,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailProvider::ProvideThumbnail(QuickLookThumbnailing.QLFileThumbnailRequest,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-ReplayKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-ReplayKit.ignore index c249320a6ceb..ca08fcd2bbce 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-ReplayKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-ReplayKit.ignore @@ -2,3 +2,8 @@ # However, Apple seems to also have added it to ReplayKit for iOS and tvOS, which is why xtro detects it as such. # It doesn't seem useful though in ReplayKit, so just skip binding it. !missing-field! SCStreamErrorDomain not bound + +!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-SafariServices.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-SafariServices.ignore index 56af0197693b..986143da66c2 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-SafariServices.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-SafariServices.ignore @@ -1,2 +1,7 @@ ## for compatibility we have extra code that return `false` if `url` is `null` !extra-null-allowed! 'System.Boolean SafariServices.SSReadingList::SupportsUrl(Foundation.NSUrl)' has a extraneous [NullAllowed] on parameter #0 + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void SafariServices.SFContentBlockerManager::GetStateOfContentBlocker(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SafariServices.SFContentBlockerManager::GetStateOfContentBlocker(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void SafariServices.SFContentBlockerManager::ReloadContentBlocker(System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-SensitiveContentAnalysis.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-SensitiveContentAnalysis.ignore new file mode 100644 index 000000000000..03a43065cba7 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-SensitiveContentAnalysis.ignore @@ -0,0 +1,7 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'Foundation.NSProgress SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeVideo(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'Foundation.NSProgress SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeVideo(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeImage(CoreGraphics.CGImage,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeImage(CoreGraphics.CGImage,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeImage(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeImage(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-SensorKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-SensorKit.ignore index afa447e7002e..838bbc37bf87 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-SensorKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-SensorKit.ignore @@ -1 +1,4 @@ ## xcode 15, present in docs yet xtro not recognizing + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void SensorKit.SRSensorReader::RequestAuthorization(Foundation.NSSet`1,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-SharedWithYou.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-SharedWithYou.ignore new file mode 100644 index 000000000000..4f83e399b0df --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-SharedWithYou.ignore @@ -0,0 +1,4 @@ +!missing-null-allowed! 'System.Void SharedWithYou.SWHighlightCenter::GetCollaborationHighlight(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SharedWithYou.SWHighlightCenter::GetCollaborationHighlight(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void SharedWithYou.SWHighlightCenter::GetSignedIdentityProof(SharedWithYou.SWCollaborationHighlight,Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SharedWithYou.SWHighlightCenter::GetSignedIdentityProof(SharedWithYou.SWCollaborationHighlight,Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Speech.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Speech.ignore index 269027f9afe5..5e6c335b307c 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Speech.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Speech.ignore @@ -1,2 +1,5 @@ # xcode 15, these are all private APIs +# results from initial block parameter nullability analysis +!missing-null-allowed! 'Speech.SFSpeechRecognitionTask Speech.SFSpeechRecognizer::GetRecognitionTask(Speech.SFSpeechRecognitionRequest,System.Action`2)' is missing a '?' on parameter 'resultHandler' block parameter #0 +!missing-null-allowed! 'Speech.SFSpeechRecognitionTask Speech.SFSpeechRecognizer::GetRecognitionTask(Speech.SFSpeechRecognitionRequest,System.Action`2)' is missing a '?' on parameter 'resultHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-StoreKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-StoreKit.ignore new file mode 100644 index 000000000000..ff1d2cff5f0f --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-StoreKit.ignore @@ -0,0 +1,8 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void StoreKit.SKAdNetwork::EndImpression(StoreKit.SKAdImpression,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void StoreKit.SKAdNetwork::StartImpression(StoreKit.SKAdImpression,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void StoreKit.SKAdNetwork::UpdatePostback(System.IntPtr,StoreKit.SKAdNetworkCoarseConversionValue,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void StoreKit.SKAdNetwork::UpdatePostback(System.IntPtr,StoreKit.SKAdNetworkCoarseConversionValue,System.Boolean,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void StoreKit.SKAdNetwork::UpdatePostback(System.IntPtr,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void StoreKit.SKStoreProductViewController::LoadProduct(Foundation.NSDictionary,StoreKit.SKAdImpression,System.Action`2)' is missing a '?' on parameter 'callback' block parameter #1 +!missing-null-allowed! 'System.Void StoreKit.SKStoreProductViewController::LoadProduct(Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'callback' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-ThreadNetwork.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-ThreadNetwork.ignore new file mode 100644 index 000000000000..07dd24042ca8 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-ThreadNetwork.ignore @@ -0,0 +1,13 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::DeleteCredentialsForBorderAgent(Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveAllActiveCredentials(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveAllActiveCredentials(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveAllCredentials(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveAllCredentials(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveCredentialsForBorderAgent(Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveCredentialsForBorderAgent(Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveCredentialsForExtendedPanId(Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveCredentialsForExtendedPanId(Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrievePreferredCredentials(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrievePreferredCredentials(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::StoreCredentialsForBorderAgent(Foundation.NSData,Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-UIKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-UIKit.ignore index aba256ee0a23..472c1137ca75 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-UIKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-UIKit.ignore @@ -389,3 +389,28 @@ !missing-protocol-conformance! UIDocument should conform to UINavigationItemRenameDelegate (defined in '' category) !missing-protocol-conformance! UITextView should conform to UIFindInteractionDelegate (defined in '' category) !missing-protocol-conformance! UITextView should conform to UITextSearching (defined in '' category) + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void UIKit.NSTextContentManager::SynchronizeTextLayoutManagers(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIApplication::SetAlternateIconName(System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIApplicationDelegate::HandleWatchKitExtensionRequest(UIKit.UIApplication,Foundation.NSDictionary,System.Action`1)' is missing a '?' on parameter 'reply' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIDocumentBrowserViewController::ImportDocument(Foundation.NSUrl,Foundation.NSUrl,UIKit.UIDocumentBrowserImportMode,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIDocumentBrowserViewController::ImportDocument(Foundation.NSUrl,Foundation.NSUrl,UIKit.UIDocumentBrowserImportMode,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void UIKit.UIDocumentBrowserViewController::RenameDocument(Foundation.NSUrl,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIDocumentBrowserViewController::RenameDocument(Foundation.NSUrl,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void UIKit.UIDocumentBrowserViewController::RevealDocument(Foundation.NSUrl,System.Boolean,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIDocumentBrowserViewController::RevealDocument(Foundation.NSUrl,System.Boolean,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void UIKit.UIDocumentBrowserViewControllerDelegate::DidRequestDocumentCreation(UIKit.UIDocumentBrowserViewController,System.Action`2)' is missing a '?' on parameter 'importHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIImage::PrepareForDisplay(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIImage::PrepareThumbnail(CoreGraphics.CGSize,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIImageReader::GetImage(Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIImageReader::GetImage(Foundation.NSUrl,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIIndirectScribbleInteractionDelegate::FocusElementIfNeeded(UIKit.UIIndirectScribbleInteraction,Foundation.NSObject,CoreGraphics.CGPoint,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIPasteboard::DetectPatterns(Foundation.NSSet`1,Foundation.NSIndexSet,System.Action`2[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIPasteboard::DetectPatterns(Foundation.NSSet`1,Foundation.NSIndexSet,System.Action`2[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void UIKit.UIPasteboard::DetectPatterns(Foundation.NSSet`1,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIPasteboard::DetectPatterns(Foundation.NSSet`1,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void UIKit.UIPasteboard::DetectValues(Foundation.NSSet`1,Foundation.NSIndexSet,System.Action`2[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIPasteboard::DetectValues(Foundation.NSSet`1,Foundation.NSIndexSet,System.Action`2[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void UIKit.UIPasteboard::DetectValues(Foundation.NSSet`1,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIPasteboard::DetectValues(Foundation.NSSet`1,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-VideoSubscriberAccount.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-VideoSubscriberAccount.ignore new file mode 100644 index 000000000000..f38e649a4e8f --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-VideoSubscriberAccount.ignore @@ -0,0 +1,7 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void VideoSubscriberAccount.VSAccountManager::CheckAccessStatus(Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void VideoSubscriberAccount.VSUserAccountManager::QueryUserAccounts(VideoSubscriberAccount.VSUserAccountQueryOptions,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void VideoSubscriberAccount.VSUserAccountManager::QueryUserAccounts(VideoSubscriberAccount.VSUserAccountQueryOptions,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void VideoSubscriberAccount.VSUserAccountManager::UpdateUserAccount(VideoSubscriberAccount.VSUserAccount,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'VideoSubscriberAccount.VSAccountManagerResult VideoSubscriberAccount.VSAccountManager::Enqueue(VideoSubscriberAccount.VSAccountMetadataRequest,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'VideoSubscriberAccount.VSAccountManagerResult VideoSubscriberAccount.VSAccountManager::Enqueue(VideoSubscriberAccount.VSAccountMetadataRequest,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-AVFoundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-AVFoundation.ignore index f1c0f1e0f5ec..b8cb9fa6e4c7 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-AVFoundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-AVFoundation.ignore @@ -44,3 +44,21 @@ # isEqual: is already exposed from NSObject, no need to expose again !missing-selector! AVCaptionRegion::isEqual: not bound + +!missing-null-allowed! 'System.Void AVFoundation.AVAudioRoutingArbiter::BeginArbitration(AVFoundation.AVAudioRoutingArbitrationCategory,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVCaptionConversionValidator::ValidateCaptionConversion(System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedMovie_AVFragmentedMovieTrackInspection::LoadTrack(AVFoundation.AVFragmentedMovie,System.Int32,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedMovie_AVFragmentedMovieTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVFragmentedMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedMovie_AVFragmentedMovieTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVFragmentedMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedMovie_AVFragmentedMovieTrackInspection::LoadTracksWithMediaType(AVFoundation.AVFragmentedMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVFragmentedMovie_AVFragmentedMovieTrackInspection::LoadTracksWithMediaType(AVFoundation.AVFragmentedMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMovie_AVMovieTrackInspection::LoadTrack(AVFoundation.AVMovie,System.Int32,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMovie_AVMovieTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVMovie_AVMovieTrackInspection::LoadTracksWithMediaCharacteristic(AVFoundation.AVMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMovie_AVMovieTrackInspection::LoadTracksWithMediaType(AVFoundation.AVMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVMovie_AVMovieTrackInspection::LoadTracksWithMediaType(AVFoundation.AVMovie,System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTrack(System.Int32,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaCharacteristic(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaCharacteristic(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaType(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaType(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.ignore index a9a43afadb4c..7bc5df1fa41e 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.ignore @@ -1517,3 +1517,26 @@ !missing-protocol-conformance! NSImage should conform to NSItemProviderReading (defined in '' category) !missing-protocol-conformance! NSImage should conform to NSItemProviderWriting (defined in '' category) !missing-protocol-conformance! NSLayoutConstraint should conform to NSAnimatablePropertyContainer (defined in '' category) + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void AppKit.NSColorSampler::ShowSampler(System.Action`1)' is missing a '?' on parameter 'selectionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AppKit.NSDocument::AccommodatePresentedItemDeletion(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AppKit.NSDocument::SavePresentedItemChanges(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AppKit.NSFilePromiseProviderDelegate::WritePromiseToUrl(AppKit.NSFilePromiseProvider,Foundation.NSUrl,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AppKit.NSFilePromiseReceiver::ReceivePromisedFiles(Foundation.NSUrl,Foundation.NSDictionary,Foundation.NSOperationQueue,System.Action`2)' is missing a '?' on parameter 'reader' block parameter #1 +!missing-null-allowed! 'System.Void AppKit.NSTextContentManager::SynchronizeTextLayoutManagers(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AppKit.NSWindow::RequestSharingOfWindow(AppKit.NSImage,System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AppKit.NSWindow::RequestSharingOfWindow(AppKit.NSWindow,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AppKit.NSWindow::TransferWindowSharing(AppKit.NSWindow,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AppKit.NSWorkspace::OpenApplication(Foundation.NSUrl,AppKit.NSWorkspaceOpenConfiguration,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AppKit.NSWorkspace::OpenApplication(Foundation.NSUrl,AppKit.NSWorkspaceOpenConfiguration,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AppKit.NSWorkspace::OpenUrl(Foundation.NSUrl,AppKit.NSWorkspaceOpenConfiguration,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AppKit.NSWorkspace::OpenUrl(Foundation.NSUrl,AppKit.NSWorkspaceOpenConfiguration,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AppKit.NSWorkspace::OpenUrls(Foundation.NSUrl[],Foundation.NSUrl,AppKit.NSWorkspaceOpenConfiguration,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AppKit.NSWorkspace::OpenUrls(Foundation.NSUrl[],Foundation.NSUrl,AppKit.NSWorkspaceOpenConfiguration,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AppKit.NSWorkspace::RequestAuthorization(AppKit.NSWorkspaceAuthorizationType,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AppKit.NSWorkspace::RequestAuthorization(AppKit.NSWorkspaceAuthorizationType,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AppKit.NSWorkspace::SetDefaultApplicationToOpenContentType(Foundation.NSUrl,Foundation.NSUrl,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AppKit.NSWorkspace::SetDefaultApplicationToOpenContentType(Foundation.NSUrl,UniformTypeIdentifiers.UTType,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AppKit.NSWorkspace::SetDefaultApplicationToOpenFile(Foundation.NSUrl,Foundation.NSUrl,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AppKit.NSWorkspace::SetDefaultApplicationToOpenUrls(Foundation.NSUrl,System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-AuthenticationServices.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-AuthenticationServices.ignore index d28b9255c3a4..0d540cf75e15 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-AuthenticationServices.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-AuthenticationServices.ignore @@ -9,3 +9,15 @@ !missing-protocol-conformance! ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest should conform to ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialAssertionRequest (defined in '' category) !missing-protocol-conformance! ASAuthorizationSecurityKeyPublicKeyCredentialProvider should conform to ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialProvider (defined in '' category) !missing-protocol-conformance! ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest should conform to ASAuthorizationWebBrowserSecurityKeyPublicKeyCredentialRegistrationRequest (defined in '' category) + +!missing-null-allowed! 'System.Void AuthenticationServices.ASAuthorizationProviderExtensionAuthorizationRequest::PresentAuthorizationViewController(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASAuthorizationProviderExtensionLoginConfiguration::Create(Foundation.NSUrl,System.String,System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void AuthenticationServices.ASAuthorizationProviderExtensionLoginConfiguration::Create(Foundation.NSUrl,System.String,System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASAuthorizationProviderExtensionLoginManager::PresentRegistrationViewController(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void AuthenticationServices.ASAuthorizationProviderExtensionLoginManager::UserNeedsReauthentication(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void AuthenticationServices.ASCredentialIdentityStore::RemoveAllCredentialIdentities(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASCredentialIdentityStore::RemoveCredentialIdentityEntries(AuthenticationServices.IASCredentialIdentity[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASCredentialIdentityStore::ReplaceCredentialIdentityEntries(AuthenticationServices.IASCredentialIdentity[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASCredentialIdentityStore::SaveCredentialIdentityEntries(AuthenticationServices.IASCredentialIdentity[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void AuthenticationServices.ASSettingsHelper::OpenCredentialProviderAppSettings(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AuthenticationServices.ASSettingsHelper::OpenVerificationCodeAppSettings(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-ClassKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-ClassKit.ignore new file mode 100644 index 000000000000..569d612c56b5 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-ClassKit.ignore @@ -0,0 +1,8 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void ClassKit.CLSContext::FindDescendantMatching(System.String[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ClassKit.CLSContext::FindDescendantMatching(System.String[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ClassKit.CLSDataStore::FetchActivity(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ClassKit.CLSDataStore::FetchActivity(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ClassKit.CLSDataStore::FindContextsMatching(Foundation.NSPredicate,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ClassKit.CLSDataStore::FindContextsMatching(System.String[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ClassKit.CLSDataStore::Save(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-CloudKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-CloudKit.ignore new file mode 100644 index 000000000000..0794508c536e --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-CloudKit.ignore @@ -0,0 +1,3 @@ +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchAllLongLivedOperationIDs(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchAllLongLivedOperationIDs(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CloudKit.CKContainer::FetchLongLivedOperation(System.String[],System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreAudioKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreAudioKit.ignore new file mode 100644 index 000000000000..bdfc65dfd4d3 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreAudioKit.ignore @@ -0,0 +1,2 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void AudioUnit.AUAudioUnit::RequestViewController(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreData.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreData.ignore index 64d4813890b3..b5194ff3f2c6 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreData.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreData.ignore @@ -17,3 +17,5 @@ !missing-selector! NSFetchedResultsController::sections not bound !missing-selector! NSFetchedResultsController::setDelegate: not bound !missing-type! NSFetchedResultsController not bound + +!missing-null-allowed! 'System.Void CoreData.NSCoreDataCoreSpotlightDelegate::DeleteSpotlightIndex(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreSpotlight.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreSpotlight.ignore new file mode 100644 index 000000000000..2149cea40c3f --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreSpotlight.ignore @@ -0,0 +1,9 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex_CSOptionalBatchingExtension::EndIndexBatch(CoreSpotlight.CSSearchableIndex,Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::Delete(System.String[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::DeleteAll(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::DeleteWithDomain(System.String[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::FetchData(System.String,System.String,UniformTypeIdentifiers.UTType,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::FetchData(System.String,System.String,UniformTypeIdentifiers.UTType,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchableIndex::Index(CoreSpotlight.CSSearchableItem[],System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void CoreSpotlight.CSSearchQuery::set_CompletionHandler(System.Action`1)' is missing a '?' on parameter 'value' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-EventKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-EventKit.ignore new file mode 100644 index 000000000000..0cc85c75dc61 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-EventKit.ignore @@ -0,0 +1,2 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.IntPtr EventKit.EKEventStore::FetchReminders(Foundation.NSPredicate,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-FileProvider.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-FileProvider.ignore index dc7bc9cf61fc..02a4de887bbf 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-FileProvider.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-FileProvider.ignore @@ -4,3 +4,25 @@ ## when deprecated (xcode12 beta 3) this member was marked as not available on macOS (but it was before) !extra-protocol-member! unexpected selector NSFileProviderItem::typeIdentifier found !incorrect-protocol-member! NSFileProviderPendingSetEnumerator::isMaximumSizeReached is REQUIRED and should be abstract + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::AddDomain(FileProvider.NSFileProviderDomain,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::Disconnect(System.String,FileProvider.NSFileProviderManagerDisconnectionOptions,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::EvictItem(Foundation.NSString,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::GetDomains(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::GetService(System.String,System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::GetUserVisibleUrl(Foundation.NSString,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::GetUserVisibleUrl(Foundation.NSString,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::Import(FileProvider.NSFileProviderDomain,Foundation.NSUrl,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::Reconnect(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::Register(Foundation.NSUrlSessionTask,System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::ReimportItemsBelowItem(Foundation.NSString,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::RemoveAllDomains(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::RemoveDomain(FileProvider.NSFileProviderDomain,FileProvider.NSFileProviderDomainRemovalMode,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::RemoveDomain(FileProvider.NSFileProviderDomain,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::RequestDownload(System.String,Foundation.NSRange,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::RequestModification(FileProvider.NSFileProviderItemFields,System.String,FileProvider.NSFileProviderModifyItemOptions,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::SignalEnumerator(System.String,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::SignalErrorResolved(Foundation.NSError,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::WaitForChangesOnItemsBelowItem(System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void FileProvider.NSFileProviderManager::WaitForStabilization(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.ignore index 1409e0d2a596..6ab2dfdc5776 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.ignore @@ -556,3 +556,10 @@ ## these are implemented in a way that xtro doesn't see !missing-selector! NSAppleEventDescriptor::initListDescriptor not bound !missing-selector! NSAppleEventDescriptor::initRecordDescriptor not bound + +!missing-null-allowed! 'System.Void Foundation.NSFileManager::GetFileProviderServices(Foundation.NSUrl,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSFileManager::GetFileProviderServices(Foundation.NSUrl,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void Foundation.NSFileManager::UnmountVolume(Foundation.NSUrl,Foundation.NSFileManagerUnmountOptions,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSFilePresenter::AccommodatePresentedItemEviction(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSFileProviderService::GetFileProviderConnection(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Foundation.NSFileProviderService::GetFileProviderConnection(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-GameKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-GameKit.ignore index 754bf229d6b5..53778b86eb67 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-GameKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-GameKit.ignore @@ -4,3 +4,13 @@ # We have bound GKVoiceChatServiceError as GKVoiceChatServiceError which has no support for macOS # https://developer.apple.com/documentation/gamekit/gkvoicechatserviceerror?language=objc + +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::DeleteSavedGames(System.String,System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::FetchSavedGames(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::FetchSavedGames(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::ResolveConflictingSavedGames(GameKit.GKSavedGame[],Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::ResolveConflictingSavedGames(GameKit.GKSavedGame[],Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::SaveGameData(Foundation.NSData,System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::SaveGameData(Foundation.NSData,System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void GameKit.GKSavedGame::LoadData(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKSavedGame::LoadData(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-HealthKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-HealthKit.ignore index 0561de6eca4e..fe7f1c33d7b8 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-HealthKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-HealthKit.ignore @@ -3,3 +3,38 @@ # Assuming that the lack of unavailability in the headers is a mistake, so remove from macOS. !missing-selector! HKHealthStore::setWorkoutSessionMirroringStartHandler: not bound !missing-selector! HKHealthStore::workoutSessionMirroringStartHandler not bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'Foundation.NSProgress HealthKit.HKAttachmentStore::GetData(HealthKit.HKAttachment,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'Foundation.NSProgress HealthKit.HKAttachmentStore::GetData(HealthKit.HKAttachment,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKActivitySummaryQuery::.ctor(Foundation.NSPredicate,System.Action`3)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKActivitySummaryQuery::.ctor(Foundation.NSPredicate,System.Action`3)' is missing a '?' on parameter 'handler' block parameter #2 +!missing-null-allowed! 'System.Void HealthKit.HKActivitySummaryQuery::set_UpdateHandler(System.Action`3)' is missing a '?' on parameter 'value' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKActivitySummaryQuery::set_UpdateHandler(System.Action`3)' is missing a '?' on parameter 'value' block parameter #2 +!missing-null-allowed! 'System.Void HealthKit.HKAttachmentStore::AddAttachment(HealthKit.HKObject,System.String,UniformTypeIdentifiers.UTType,Foundation.NSUrl,Foundation.NSDictionary`2,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HealthKit.HKAttachmentStore::AddAttachment(HealthKit.HKObject,System.String,UniformTypeIdentifiers.UTType,Foundation.NSUrl,Foundation.NSDictionary`2,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKDocumentQuery::.ctor(HealthKit.HKDocumentType,Foundation.NSPredicate,System.UIntPtr,Foundation.NSSortDescriptor[],System.Boolean,System.Action`4)' is missing a '?' on parameter 'resultsHandler' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKDocumentQuery::.ctor(HealthKit.HKDocumentType,Foundation.NSPredicate,System.UIntPtr,Foundation.NSSortDescriptor[],System.Boolean,System.Action`4)' is missing a '?' on parameter 'resultsHandler' block parameter #3 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::DeleteObject(HealthKit.HKObject,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::DeleteObjects(HealthKit.HKObject[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::DeleteObjects(HealthKit.HKObjectType,Foundation.NSPredicate,System.Action`3)' is missing a '?' on parameter 'completion' block parameter #2 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::DisableAllBackgroundDelivery(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::DisableBackgroundDelivery(HealthKit.HKObjectType,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::EnableBackgroundDelivery(HealthKit.HKObjectType,HealthKit.HKUpdateFrequency,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::GetPreferredUnits(Foundation.NSSet,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::HandleAuthorizationForExtension(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::RecalibrateEstimates(HealthKit.HKSampleType,Foundation.NSDate,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::RequestAuthorizationToShare(Foundation.NSSet,Foundation.NSSet,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::SaveObject(HealthKit.HKObject,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::SaveObjects(HealthKit.HKObject[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::SplitTotalEnergy(HealthKit.HKQuantity,Foundation.NSDate,Foundation.NSDate,System.Action`3)' is missing a '?' on parameter 'resultsHandler' block parameter #0 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::SplitTotalEnergy(HealthKit.HKQuantity,Foundation.NSDate,Foundation.NSDate,System.Action`3)' is missing a '?' on parameter 'resultsHandler' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::SplitTotalEnergy(HealthKit.HKQuantity,Foundation.NSDate,Foundation.NSDate,System.Action`3)' is missing a '?' on parameter 'resultsHandler' block parameter #2 +!missing-null-allowed! 'System.Void HealthKit.HKHealthStore::StartWatchApp(HealthKit.HKWorkoutConfiguration,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKHeartbeatSeriesBuilder::FinishSeries(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HealthKit.HKHeartbeatSeriesBuilder::FinishSeries(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKVerifiableClinicalRecordQuery::.ctor(System.String[],HealthKit.HKVerifiableClinicalRecordSourceType[],Foundation.NSPredicate,System.Action`3)' is missing a '?' on parameter 'resultsHandler' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKVerifiableClinicalRecordQuery::.ctor(System.String[],HealthKit.HKVerifiableClinicalRecordSourceType[],Foundation.NSPredicate,System.Action`3)' is missing a '?' on parameter 'resultsHandler' block parameter #2 +!missing-null-allowed! 'System.Void HealthKit.HKWorkoutRouteBuilder::FinishRoute(HealthKit.HKWorkout,Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HealthKit.HKWorkoutRouteBuilder::FinishRoute(HealthKit.HKWorkout,Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void HealthKit.HKWorkoutRouteBuilder::InsertRouteData(CoreLocation.CLLocation[],System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Intents.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Intents.ignore index c60a3d024a64..d35b92b3bcf7 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Intents.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Intents.ignore @@ -37,3 +37,6 @@ !missing-selector! INDateComponentsRange::recurrenceRule not bound !missing-selector! INSendMessageIntentResponse::sentMessages not bound !missing-selector! INSendMessageIntentResponse::setSentMessages: not bound + +!missing-null-allowed! 'System.Void Intents.INVoiceShortcutCenter::GetVoiceShortcut(Foundation.NSUuid,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void Intents.INVoiceShortcutCenter::GetVoiceShortcut(Foundation.NSUuid,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-LocalAuthentication.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-LocalAuthentication.ignore new file mode 100644 index 000000000000..c6268b7d86b1 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-LocalAuthentication.ignore @@ -0,0 +1,2 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void LocalAuthentication.LAContext::EvaluateAccessControl(Security.SecAccessControl,LocalAuthentication.LAAccessControlOperation,System.String,System.Action`2)' is missing a '?' on parameter 'reply' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-MailKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-MailKit.ignore new file mode 100644 index 000000000000..976a820f3a8f --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-MailKit.ignore @@ -0,0 +1,3 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void MailKit.MEExtensionManager::ReloadContentBlocker(System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void MailKit.MEExtensionManager::ReloadVisibleMessages(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-NetworkExtension.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-NetworkExtension.ignore index 340724a16205..812b554e4c11 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-NetworkExtension.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-NetworkExtension.ignore @@ -8,3 +8,23 @@ # error used to be ignored in common-NetworkExtension.ignore but tvOS platform support was added and since this error does not apply to tvOS, it had to be addressed on a per platform basis !missing-release-attribute-on-return-value! NetworkExtension.NEAppRule[] NetworkExtension.NETunnelProviderManager::CopyAppRules()'s selector's ('copyAppRules') Objective-C method family ('copy') indicates that the native method returns a retained object, and as such a '[return: Release]' attribute is required. +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyProvider::StartProxy(Foundation.NSDictionary`2,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyProviderManager::LoadAllFromPreferences(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyProviderManager::LoadAllFromPreferences(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyTcpFlow::ReadData(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyTcpFlow::ReadData(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void NetworkExtension.NEAppProxyTcpFlow::WriteData(Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsProxyManager::LoadFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsProxyManager::RemoveFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsProxyManager::SaveToPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsProxyProvider::StartProxy(Foundation.NSDictionary,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsSettingsManager::LoadFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsSettingsManager::RemoveFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEDnsSettingsManager::SaveToPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEFilterDataProvider::ApplySettings(NetworkExtension.NEFilterSettings,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEFilterManager::LoadFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEFilterManager::RemoveFromPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEFilterManager::SaveToPreferences(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NEFilterProvider::StartFilter(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NETransparentProxyManager::LoadAllFromPreferences(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void NetworkExtension.NETransparentProxyManager::LoadAllFromPreferences(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-PassKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-PassKit.ignore index 20bb9f16d549..fa422d0fed07 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-PassKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-PassKit.ignore @@ -27,3 +27,16 @@ !missing-enum! PKAddressField not bound ## all members are decorated but not the type themselves + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void PassKit.PKAddShareablePassConfiguration::GetConfiguration(PassKit.PKShareablePassMetadata[],PassKit.PKAddShareablePassConfigurationPrimaryAction,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void PassKit.PKAddShareablePassConfiguration::GetConfiguration(PassKit.PKShareablePassMetadata[],PassKit.PKAddShareablePassConfigurationPrimaryAction,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void PassKit.PKAddShareablePassConfiguration::GetConfiguration(PassKit.PKShareablePassMetadata[],System.String,PassKit.PKAddShareablePassConfigurationPrimaryAction,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void PassKit.PKAddShareablePassConfiguration::GetConfiguration(PassKit.PKShareablePassMetadata[],System.String,PassKit.PKAddShareablePassConfigurationPrimaryAction,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void PassKit.PKPassLibrary::ActivateSecureElementPass(PassKit.PKSecureElementPass,Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void PassKit.PKPassLibrary::GetEncryptedServiceProviderData(PassKit.PKSecureElementPass,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void PassKit.PKPassLibrary::GetEncryptedServiceProviderData(PassKit.PKSecureElementPass,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void PassKit.PKPassLibrary::GetServiceProviderData(PassKit.PKSecureElementPass,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void PassKit.PKPassLibrary::GetServiceProviderData(PassKit.PKSecureElementPass,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void PassKit.PKVehicleConnectionSession::GetSession(PassKit.PKSecureElementPass,PassKit.IPKVehicleConnectionDelegate,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void PassKit.PKVehicleConnectionSession::GetSession(PassKit.PKSecureElementPass,PassKit.IPKVehicleConnectionDelegate,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Photos.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Photos.ignore new file mode 100644 index 000000000000..dff84c645d07 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Photos.ignore @@ -0,0 +1 @@ +!missing-null-allowed! 'System.Int32 Photos.PHLivePhoto::RequestLivePhoto(Foundation.NSUrl[],AppKit.NSImage,CoreGraphics.CGSize,Photos.PHImageContentMode,System.Action`2)' is missing a '?' on parameter 'resultHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-PhotosUI.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-PhotosUI.ignore new file mode 100644 index 000000000000..d2cefa57788d --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-PhotosUI.ignore @@ -0,0 +1,2 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'Foundation.NSProgress PhotosUI.PHProjectExtensionContext::UpdatedProjectInfo(PhotosUI.PHProjectInfo,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-QuickLookThumbnailing.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-QuickLookThumbnailing.ignore new file mode 100644 index 000000000000..70508d3fd511 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-QuickLookThumbnailing.ignore @@ -0,0 +1,8 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailGenerator::GenerateBestRepresentation(QuickLookThumbnailing.QLThumbnailGenerationRequest,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailGenerator::GenerateBestRepresentation(QuickLookThumbnailing.QLThumbnailGenerationRequest,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailGenerator::GenerateRepresentations(QuickLookThumbnailing.QLThumbnailGenerationRequest,System.Action`3)' is missing a '?' on parameter 'updateHandler' block parameter #0 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailGenerator::GenerateRepresentations(QuickLookThumbnailing.QLThumbnailGenerationRequest,System.Action`3)' is missing a '?' on parameter 'updateHandler' block parameter #2 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailGenerator::SaveBestRepresentationAsContent(QuickLookThumbnailing.QLThumbnailGenerationRequest,Foundation.NSUrl,System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailProvider::ProvideThumbnail(QuickLookThumbnailing.QLFileThumbnailRequest,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void QuickLookThumbnailing.QLThumbnailProvider::ProvideThumbnail(QuickLookThumbnailing.QLFileThumbnailRequest,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-ReplayKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-ReplayKit.ignore new file mode 100644 index 000000000000..038a08ef5c7c --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-ReplayKit.ignore @@ -0,0 +1,2 @@ +!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityController::ShowBroadcastPicker(CoreGraphics.CGPoint,AppKit.NSWindow,System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityController::ShowBroadcastPicker(CoreGraphics.CGPoint,AppKit.NSWindow,System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-SafariServices.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-SafariServices.ignore index 26691771f8b9..3f025d92018a 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-SafariServices.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-SafariServices.ignore @@ -10,3 +10,21 @@ !extra-enum-value! Managed value 4 for SFErrorCode.InternalError not found in native headers !extra-enum-value! Managed value 5 for SFErrorCode.MissingEntitlement not found in native headers !extra-enum-value! Managed value 6 for SFErrorCode.MaximumAttemptsExceeded not found in native headers + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void SafariServices.SFContentBlockerManager::GetStateOfContentBlocker(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SafariServices.SFContentBlockerManager::GetStateOfContentBlocker(System.String,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void SafariServices.SFContentBlockerManager::ReloadContentBlocker(System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SafariServices.SFSafariApplication::DispatchMessage(System.String,System.String,Foundation.NSDictionary`2,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SafariServices.SFSafariApplication::GetActiveWindow(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SafariServices.SFSafariApplication::OpenWindow(Foundation.NSUrl,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SafariServices.SFSafariApplication::ShowPreferencesForExtension(System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SafariServices.SFSafariExtension::GetBaseUri(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SafariServices.SFSafariPage::GetPageProperties(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SafariServices.SFSafariPage::GetScreenshotOfVisibleArea(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SafariServices.SFSafariTab::GetActivePage(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SafariServices.SFSafariTab::GetContainingWindow(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SafariServices.SFSafariTab::GetPages(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SafariServices.SFSafariWindow::GetActiveTab(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SafariServices.SFSafariWindow::GetToolbarItem(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SafariServices.SFSafariWindow::OpenTab(Foundation.NSUrl,System.Boolean,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-ScreenCaptureKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-ScreenCaptureKit.ignore index 17ddabe3988d..635a5b8a894c 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-ScreenCaptureKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-ScreenCaptureKit.ignore @@ -1,2 +1,22 @@ # removed in XAMCORE_5_0 !extra-protocol-member! unexpected selector SCStreamDelegate::userDidStopStream: found + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCScreenshotManager::CaptureImage(ScreenCaptureKit.SCContentFilter,ScreenCaptureKit.SCStreamConfiguration,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCScreenshotManager::CaptureImage(ScreenCaptureKit.SCContentFilter,ScreenCaptureKit.SCStreamConfiguration,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCScreenshotManager::CaptureSampleBuffer(ScreenCaptureKit.SCContentFilter,ScreenCaptureKit.SCStreamConfiguration,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCScreenshotManager::CaptureSampleBuffer(ScreenCaptureKit.SCContentFilter,ScreenCaptureKit.SCStreamConfiguration,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetCurrentProcessShareableContent(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetCurrentProcessShareableContent(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetShareableContent(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetShareableContent(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetShareableContent(System.Boolean,System.Boolean,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetShareableContent(System.Boolean,System.Boolean,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetShareableContentAboveWindow(System.Boolean,ScreenCaptureKit.SCWindow,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetShareableContentAboveWindow(System.Boolean,ScreenCaptureKit.SCWindow,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetShareableContentBelowWindow(System.Boolean,ScreenCaptureKit.SCWindow,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCShareableContent::GetShareableContentBelowWindow(System.Boolean,ScreenCaptureKit.SCWindow,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCStream::StartCapture(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCStream::StopCapture(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCStream::UpdateConfiguration(ScreenCaptureKit.SCStreamConfiguration,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void ScreenCaptureKit.SCStream::UpdateContentFilter(ScreenCaptureKit.SCContentFilter,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-SensitiveContentAnalysis.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-SensitiveContentAnalysis.ignore new file mode 100644 index 000000000000..03a43065cba7 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-SensitiveContentAnalysis.ignore @@ -0,0 +1,7 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'Foundation.NSProgress SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeVideo(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'Foundation.NSProgress SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeVideo(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeImage(CoreGraphics.CGImage,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeImage(CoreGraphics.CGImage,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeImage(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SensitiveContentAnalysis.SCSensitivityAnalyzer::AnalyzeImage(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-ServiceManagement.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-ServiceManagement.ignore index 28cd0ed153fa..9e040e7207a9 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-ServiceManagement.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-ServiceManagement.ignore @@ -2,3 +2,6 @@ !missing-field! kSMDomainSystemLaunchd not bound !missing-field! kSMDomainUserLaunchd not bound !missing-field! SMAppServiceErrorDomain not bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void ServiceManagement.SMAppService::Unregister(System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-SharedWithYou.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-SharedWithYou.ignore new file mode 100644 index 000000000000..4f83e399b0df --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-SharedWithYou.ignore @@ -0,0 +1,4 @@ +!missing-null-allowed! 'System.Void SharedWithYou.SWHighlightCenter::GetCollaborationHighlight(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SharedWithYou.SWHighlightCenter::GetCollaborationHighlight(Foundation.NSUrl,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void SharedWithYou.SWHighlightCenter::GetSignedIdentityProof(SharedWithYou.SWCollaborationHighlight,Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void SharedWithYou.SWHighlightCenter::GetSignedIdentityProof(SharedWithYou.SWCollaborationHighlight,Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Speech.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Speech.ignore index 269027f9afe5..5e6c335b307c 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Speech.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Speech.ignore @@ -1,2 +1,5 @@ # xcode 15, these are all private APIs +# results from initial block parameter nullability analysis +!missing-null-allowed! 'Speech.SFSpeechRecognitionTask Speech.SFSpeechRecognizer::GetRecognitionTask(Speech.SFSpeechRecognitionRequest,System.Action`2)' is missing a '?' on parameter 'resultHandler' block parameter #0 +!missing-null-allowed! 'Speech.SFSpeechRecognitionTask Speech.SFSpeechRecognizer::GetRecognitionTask(Speech.SFSpeechRecognitionRequest,System.Action`2)' is missing a '?' on parameter 'resultHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-StoreKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-StoreKit.ignore new file mode 100644 index 000000000000..d6d494670a1c --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-StoreKit.ignore @@ -0,0 +1,2 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void StoreKit.SKStoreProductViewController::LoadProduct(Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'callback' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-ThreadNetwork.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-ThreadNetwork.ignore new file mode 100644 index 000000000000..07dd24042ca8 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-ThreadNetwork.ignore @@ -0,0 +1,13 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::DeleteCredentialsForBorderAgent(Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveAllActiveCredentials(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveAllActiveCredentials(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveAllCredentials(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveAllCredentials(System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveCredentialsForBorderAgent(Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveCredentialsForBorderAgent(Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveCredentialsForExtendedPanId(Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrieveCredentialsForExtendedPanId(Foundation.NSData,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrievePreferredCredentials(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::RetrievePreferredCredentials(System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void ThreadNetwork.THClient::StoreCredentialsForBorderAgent(Foundation.NSData,Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-VideoSubscriberAccount.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-VideoSubscriberAccount.ignore new file mode 100644 index 000000000000..7e86bc25ebb8 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-VideoSubscriberAccount.ignore @@ -0,0 +1,4 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void VideoSubscriberAccount.VSUserAccountManager::QueryUserAccounts(VideoSubscriberAccount.VSUserAccountQueryOptions,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void VideoSubscriberAccount.VSUserAccountManager::QueryUserAccounts(VideoSubscriberAccount.VSUserAccountQueryOptions,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void VideoSubscriberAccount.VSUserAccountManager::UpdateUserAccount(VideoSubscriberAccount.VSUserAccount,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVFoundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVFoundation.ignore index a56332c03719..6075ddf1c7ed 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVFoundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVFoundation.ignore @@ -21,3 +21,5 @@ ## Introspection says otherwise !missing-selector! +AVCaptionRenderer::captionPreviewForProfileID:extendedLanguageTag:renderSize: not bound !missing-type! AVCaptionRenderer not bound + +!missing-null-allowed! 'System.Void AVFoundation.AVCapturePhotoOutput::SetPreparedPhotoSettings(AVFoundation.AVCapturePhotoSettings[],System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVKit.ignore new file mode 100644 index 000000000000..e664c5d730d9 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVKit.ignore @@ -0,0 +1,2 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void AVFoundation.AVPlayerItem_AVPlaybackRestrictions::RequestPlaybackRestrictionsAuthorization(AVFoundation.AVPlayerItem,System.Action`2)' is missing a '?' on parameter 'completion' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.ignore index 9cc2bde26921..0eb91bafc428 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.ignore @@ -12,3 +12,5 @@ !missing-selector! NSXPCCoder::encodeXPCObject:forKey: not bound !missing-selector! NSXPCInterface::setXPCType:forSelector:argumentIndex:ofReply: not bound !missing-selector! NSXPCInterface::XPCTypeForSelector:argumentIndex:ofReply: not bound + +!missing-null-allowed! 'System.Void Foundation.NSBundleResourceRequest::BeginAccessingResources(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-GameKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-GameKit.ignore new file mode 100644 index 000000000000..bfd1322e993d --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-GameKit.ignore @@ -0,0 +1,2 @@ +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::set_AuthenticateHandler(System.Action`2)' is missing a '?' on parameter 'value' block parameter #0 +!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::set_AuthenticateHandler(System.Action`2)' is missing a '?' on parameter 'value' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-HomeKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-HomeKit.ignore index 77be8826a6da..82a5f79c09c1 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-HomeKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-HomeKit.ignore @@ -1,2 +1,10 @@ # Apple removed this enum value from native headers in Xcode 26.4 !extra-enum-value! Managed value 106 for HMError.QuotaExceeded not found in native headers + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void HomeKit.HMAccessory::Identify(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMCameraStream::UpdateAudioStreamSetting(HomeKit.HMCameraAudioStreamSetting,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMCharacteristic::EnableNotification(System.Boolean,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMCharacteristic::ReadValue(System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMCharacteristic::WriteValue(Foundation.NSObject,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void HomeKit.HMHome::ExecuteActionSet(HomeKit.HMActionSet,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-MediaPlayer.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-MediaPlayer.ignore index 552d3f8c9730..095e29be9cc6 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-MediaPlayer.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-MediaPlayer.ignore @@ -51,3 +51,7 @@ !missing-selector! MPMediaItem::title not bound !missing-selector! MPMediaItem::userGrouping not bound !missing-selector! MPMediaItem::isPreorder not bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void MediaPlayer.MPMusicPlayerApplicationController::Perform(System.Action`1,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void MediaPlayer.MPMusicPlayerController::PrepareToPlay(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Photos.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Photos.ignore new file mode 100644 index 000000000000..cd2d272fee1b --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Photos.ignore @@ -0,0 +1 @@ +!missing-null-allowed! 'System.Int32 Photos.PHLivePhoto::RequestLivePhoto(Foundation.NSUrl[],UIKit.UIImage,CoreGraphics.CGSize,Photos.PHImageContentMode,System.Action`2)' is missing a '?' on parameter 'resultHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-ReplayKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-ReplayKit.ignore index 4483a9808218..20dec69e186b 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-ReplayKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-ReplayKit.ignore @@ -5,3 +5,6 @@ # However, Apple seems to also have added it to ReplayKit for iOS and tvOS, which is why xtro detects it as such. # It doesn't seem useful though in ReplayKit, so just skip binding it. !missing-field! SCStreamErrorDomain not bound + +!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-TVServices.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-TVServices.ignore new file mode 100644 index 000000000000..123cc88fa613 --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-TVServices.ignore @@ -0,0 +1,2 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void TVServices.TVTopShelfContentProvider::LoadTopShelfContent(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-UIKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-UIKit.ignore index de00349fbb7a..92d7e8311349 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-UIKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-UIKit.ignore @@ -352,3 +352,12 @@ !unknown-field! UIPasteboardDetectionPatternProbableWebURL bound !unknown-field! UIPasteboardDetectionPatternShipmentTrackingNumber bound !unknown-native-enum! UIPasteControlDisplayMode bound + +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void UIKit.NSTextContentManager::SynchronizeTextLayoutManagers(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIApplication::SetAlternateIconName(System.String,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIApplicationDelegate::HandleWatchKitExtensionRequest(UIKit.UIApplication,Foundation.NSDictionary,System.Action`1)' is missing a '?' on parameter 'reply' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIImage::PrepareForDisplay(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIImage::PrepareThumbnail(CoreGraphics.CGSize,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIImageReader::GetImage(Foundation.NSData,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void UIKit.UIImageReader::GetImage(Foundation.NSUrl,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-VideoSubscriberAccount.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-VideoSubscriberAccount.ignore new file mode 100644 index 000000000000..f38e649a4e8f --- /dev/null +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-VideoSubscriberAccount.ignore @@ -0,0 +1,7 @@ +# results from initial block parameter nullability analysis +!missing-null-allowed! 'System.Void VideoSubscriberAccount.VSAccountManager::CheckAccessStatus(Foundation.NSDictionary,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void VideoSubscriberAccount.VSUserAccountManager::QueryUserAccounts(VideoSubscriberAccount.VSUserAccountQueryOptions,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'System.Void VideoSubscriberAccount.VSUserAccountManager::QueryUserAccounts(VideoSubscriberAccount.VSUserAccountQueryOptions,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completion' block parameter #1 +!missing-null-allowed! 'System.Void VideoSubscriberAccount.VSUserAccountManager::UpdateUserAccount(VideoSubscriberAccount.VSUserAccount,System.Action`1)' is missing a '?' on parameter 'completion' block parameter #0 +!missing-null-allowed! 'VideoSubscriberAccount.VSAccountManagerResult VideoSubscriberAccount.VSAccountManager::Enqueue(VideoSubscriberAccount.VSAccountMetadataRequest,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'VideoSubscriberAccount.VSAccountManagerResult VideoSubscriberAccount.VSAccountManager::Enqueue(VideoSubscriberAccount.VSAccountMetadataRequest,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/xtro-sharpie/NullabilityCheck.cs b/tests/xtro-sharpie/xtro-sharpie/NullabilityCheck.cs index bd3276488531..aeb865628734 100644 --- a/tests/xtro-sharpie/xtro-sharpie/NullabilityCheck.cs +++ b/tests/xtro-sharpie/xtro-sharpie/NullabilityCheck.cs @@ -183,6 +183,9 @@ public override void VisitObjCMethodDecl (ObjCMethodDecl decl) case CXTypeNullabilityKind.CXTypeNullability_Unspecified: break; } + + // Check nullability of block/delegate parameter's inner parameters + CheckBlockParameterNullability (p.Type, mp, method, framework, managed_default_nullability); } // with .net a constructor will always return something (or throw) @@ -239,5 +242,112 @@ public override void VisitObjCMethodDecl (ObjCMethodDecl decl) break; } } + + /// + /// If the native type is a block pointer, checks nullability of the block's + /// inner parameters against the managed NullableAttribute byte array. + /// + void CheckBlockParameterNullability (ClangSharp.Type nativeType, ParameterDefinition managedParam, + MethodDefinition method, string framework, Null managedDefaultNullability) + { + var funcType = GetBlockFunctionProtoType (nativeType); + if (funcType is null) + return; + + var managedType = managedParam.ParameterType; + if (managedType is not GenericInstanceType git) + return; + + // Get the full NullableAttribute for this parameter + var nullable = GetNullable (managedParam); + + // Build the expected nullability for each generic type argument + // Position 0 = outer type (Action/Func), positions 1+ = type arguments + int nativeParamIndex = 0; + int managedPosition = 1; // start after the outer type + + foreach (var blockParamType in funcType.ParamTypes) { + if (nativeParamIndex >= git.GenericArguments.Count) + break; + + var managedTypeArg = git.GenericArguments [nativeParamIndex]; + + // Skip value types — they can't be nullable reference types + if (managedTypeArg.IsValueType) { + nativeParamIndex++; + managedPosition += CountNullablePositions (managedTypeArg); + continue; + } + + // Determine the managed nullability for this position + Null managedNullability; + if (nullable.Length > managedPosition) { + managedNullability = nullable [managedPosition]; + } else if (nullable.Length == 1) { + managedNullability = nullable [0]; + } else { + managedNullability = managedDefaultNullability; + } + + // Get the native nullability for this block parameter + var nativeNullability = blockParamType.Handle.Nullability; + switch (nativeNullability) { + case CXTypeNullabilityKind.CXTypeNullability_NonNull: + if (managedNullability == Null.Annotated) + Log.On (framework).Add ($"!extra-null-allowed! '{method.FullName}' has an extraneous '?' on parameter '{managedParam.Name}' block parameter #{nativeParamIndex}"); + break; + case CXTypeNullabilityKind.CXTypeNullability_Nullable: + if (managedNullability != Null.Annotated) + Log.On (framework).Add ($"!missing-null-allowed! '{method.FullName}' is missing a '?' on parameter '{managedParam.Name}' block parameter #{nativeParamIndex}"); + break; + case CXTypeNullabilityKind.CXTypeNullability_Unspecified: + break; + } + + nativeParamIndex++; + managedPosition += CountNullablePositions (managedTypeArg); + } + } + + /// + /// Unwraps a native type to find the FunctionProtoType inside a block pointer. + /// Returns null if the type is not a block pointer. + /// + static FunctionProtoType? GetBlockFunctionProtoType (ClangSharp.Type type) + { + // Unwrap AttributedType wrappers (nullability annotations on the block pointer itself) + while (type is AttributedType attributed) + type = attributed.ModifiedType; + + if (type is not BlockPointerType blockPointer) + return null; + + var pointee = blockPointer.PointeeType; + + // Unwrap ParenType if present + while (pointee is ParenType paren) + pointee = paren.InnerType; + + // Unwrap AttributedType on the function type + while (pointee is AttributedType attrPointee) + pointee = attrPointee.ModifiedType; + + return pointee as FunctionProtoType; + } + + /// + /// Counts how many positions a type occupies in the NullableAttribute byte array. + /// Simple types occupy 1 position. Generic instances occupy 1 + sum of their type args' positions. + /// + static int CountNullablePositions (TypeReference type) + { + if (type is GenericInstanceType git) { + int count = 1; // the type itself + foreach (var arg in git.GenericArguments) + count += CountNullablePositions (arg); + return count; + } + return 1; + } } } diff --git a/tools/sharpie/Sharpie.Bind/BindingGenerator.cs b/tools/sharpie/Sharpie.Bind/BindingGenerator.cs index fca73e3571fc..8ed1450de34b 100644 --- a/tools/sharpie/Sharpie.Bind/BindingGenerator.cs +++ b/tools/sharpie/Sharpie.Bind/BindingGenerator.cs @@ -133,7 +133,8 @@ public override void VisitBlockPointerType (BlockPointerType type) int i = 0; foreach (var typeArg in anonDelegate.TypeArguments) { typeArg.Remove (); - del.Parameters.Add (new ParameterDeclaration (typeArg, String.Format ("arg{0}", i++))); + var paramType = UnwrapNullableType (typeArg); + del.Parameters.Add (new ParameterDeclaration (paramType, String.Format ("arg{0}", i++))); } var functionProtoType = anonDelegate.Annotation (); @@ -701,4 +702,20 @@ static IReadOnlyList GetParameters (object decl, out bool isVariadi } #endregion + + /// + /// Unwraps a nullable ComposedType (T?) back to its base type while + /// preserving annotations, so that NullabilityMassager can add [NullAllowed] + /// to the delegate parameter instead. + /// + static AstType UnwrapNullableType (AstType type) + { + if (type is ComposedType composed && composed.HasNullableSpecifier && composed.PointerRank == 0) { + var baseType = composed.BaseType.Clone (); + foreach (var annotation in composed.Annotations) + baseType.AddAnnotation (annotation); + return baseType; + } + return type; + } } diff --git a/tools/sharpie/Sharpie.Bind/Massagers/CustomDelegateMassager.cs b/tools/sharpie/Sharpie.Bind/Massagers/CustomDelegateMassager.cs index 3685d9b32fcb..2bc2a3f863ee 100644 --- a/tools/sharpie/Sharpie.Bind/Massagers/CustomDelegateMassager.cs +++ b/tools/sharpie/Sharpie.Bind/Massagers/CustomDelegateMassager.cs @@ -116,7 +116,7 @@ static DelegateDeclaration CreateDelegateDeclaration (string name, DelegateType int i = 0; foreach (var typeArg in delegateType.TypeArguments) { - var clone = typeArg.Clone (); + var clone = UnwrapNullableType (typeArg.Clone ()); del.Parameters.Add (new ParameterDeclaration (clone, String.Format ("arg{0}", i++))); } @@ -143,4 +143,20 @@ string GenerateUniqueName (string memberName, string? suffix) name = baseName + counter++; return name; } + + /// + /// Unwraps a nullable ComposedType (T?) back to its base type while + /// preserving annotations, so that NullabilityMassager can add [NullAllowed] + /// to the delegate parameter instead. + /// + static AstType UnwrapNullableType (AstType type) + { + if (type is ComposedType composed && composed.HasNullableSpecifier && composed.PointerRank == 0) { + var baseType = composed.BaseType.Clone (); + foreach (var annotation in composed.Annotations) + baseType.AddAnnotation (annotation); + return baseType; + } + return type; + } } diff --git a/tools/sharpie/Sharpie.Bind/TypeBinder.cs b/tools/sharpie/Sharpie.Bind/TypeBinder.cs index 5a653c0f4873..cdadb66da467 100644 --- a/tools/sharpie/Sharpie.Bind/TypeBinder.cs +++ b/tools/sharpie/Sharpie.Bind/TypeBinder.cs @@ -454,7 +454,7 @@ public override void VisitFunctionType (FunctionType type) if (proto is not null) { foreach (var paramType in proto.ParamTypes) { paramType.Accept (this); - delegateArgTypes.Add (resolvedTypes.Pop ()); + delegateArgTypes.Add (MakeNullableIfAnnotated (resolvedTypes.Pop ())); } if (proto.IsVariadic) @@ -469,10 +469,34 @@ public override void VisitFunctionType (FunctionType type) return; } - delegateArgTypes.Add (resolvedReturnType); + delegateArgTypes.Add (MakeNullableIfAnnotated (resolvedReturnType)); Resolve (new FuncType (delegateArgTypes), type); } + static AstType MakeNullableIfAnnotated (AstType type) + { + // Don't mark value types as nullable + if (type is PrimitiveType || type is VoidType) + return type; + + // Don't mark pointer types as nullable (they're already unsafe pointers) + if (type is ComposedType composedType && composedType.PointerRank > 0) + return type; + + var attributedTypes = type.Annotations.OfType (); + if (attributedTypes.Any (a => a.AttrKind == CX_AttrKind.CX_AttrKind_TypeNullable)) { + var nullable = new ComposedType (); + nullable.BaseType = type; + nullable.HasNullableSpecifier = true; + // Preserve annotations on the composed type + foreach (var annotation in type.Annotations) + nullable.AddAnnotation (annotation); + return nullable; + } + + return type; + } + public override void VisitArrayType (ArrayType type) { type.ElementType.Accept (this); From 6cc41aa017e98632173b0573665bee8e0ce6163d Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Wed, 1 Jul 2026 11:38:10 +0200 Subject: [PATCH 12/23] [github] Adapt GH-AW workflows to the PAT pool (#25888) ## 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> --- .github/workflows/ci-postmortem.lock.yml | 188 +++++++++++++++- .github/workflows/ci-postmortem.md | 29 +++ .github/workflows/code-radiator.lock.yml | 188 +++++++++++++++- .github/workflows/code-radiator.md | 29 +++ .github/workflows/macios-reviewer.lock.yml | 146 ++++++++++++- .github/workflows/macios-reviewer.md | 28 +++ .github/workflows/shared/pat_pool.README.md | 225 +++++++++++++++++++ .github/workflows/shared/pat_pool.md | 121 +++++++++++ .github/workflows/validate-pat-pool.yml | 228 ++++++++++++++++++++ 9 files changed, 1155 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/shared/pat_pool.README.md create mode 100644 .github/workflows/shared/pat_pool.md create mode 100644 .github/workflows/validate-pat-pool.yml diff --git a/.github/workflows/ci-postmortem.lock.yml b/.github/workflows/ci-postmortem.lock.yml index d468a07e61ba..1aaa3102acab 100644 --- a/.github/workflows/ci-postmortem.lock.yml +++ b/.github/workflows/ci-postmortem.lock.yml @@ -1,5 +1,5 @@ -# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"db487aa5e22702b120a8bf4e6e0b2adf4228743f35647f9a8c7f20df23586979","body_hash":"ad13b1075fd08c989fe77b74abdce355d88ab2ebeea692809a67d8b68cd7559b","compiler_version":"v0.80.9","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.5","engine_versions":{"copilot":"1.0.63"}} -# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/cache/save","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/checkout","sha":"9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0","version":"v7.0.0"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e","version":"v6.4.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"8c7d04ebf1ece56cd381446125da3e0f6896294a","version":"v0.80.9"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.7","digest":"sha256:aae231e4635c8999d039c132f1602d3df850fe9b84a00aa2b5ac981179b5661c","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.7@sha256:aae231e4635c8999d039c132f1602d3df850fe9b84a00aa2b5ac981179b5661c"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.7","digest":"sha256:009caf2e3d88fa77b64e9a03a95a228fc58db0f1701c6d324b29ba5a3c7c79b6","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.7@sha256:009caf2e3d88fa77b64e9a03a95a228fc58db0f1701c6d324b29ba5a3c7c79b6"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.7","digest":"sha256:deb1d4e19de62d51cee0508057a596a19315c3423ada4d675cad136dc8037c96","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.7@sha256:deb1d4e19de62d51cee0508057a596a19315c3423ada4d675cad136dc8037c96"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.27","digest":"sha256:fe984bddde4ec05d756d9043edb0a32912e6b7b72f6a121b1082f29221421cc7","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.3.27@sha256:fe984bddde4ec05d756d9043edb0a32912e6b7b72f6a121b1082f29221421cc7"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b","pinned_image":"ghcr.io/github/gh-aw-node@sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b"},{"image":"ghcr.io/github/github-mcp-server:v1.4.0","digest":"sha256:2afb26356481d1a350e14544a6e160f7f7ec1561a1ea309b823665abf0309036","pinned_image":"ghcr.io/github/github-mcp-server:v1.4.0@sha256:2afb26356481d1a350e14544a6e160f7f7ec1561a1ea309b823665abf0309036"}]} +# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"8c1be4b89035a1a78f5b0f5a817b4e6103d7ca0e92ccc6e1d555a56604a0ef8d","body_hash":"ad13b1075fd08c989fe77b74abdce355d88ab2ebeea692809a67d8b68cd7559b","compiler_version":"v0.80.9","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.5","engine_versions":{"copilot":"1.0.63"}} +# gh-aw-manifest: {"version":1,"secrets":["COPILOT_PAT_0","COPILOT_PAT_1","COPILOT_PAT_2","COPILOT_PAT_3","COPILOT_PAT_4","COPILOT_PAT_5","COPILOT_PAT_6","COPILOT_PAT_7","COPILOT_PAT_8","COPILOT_PAT_9","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/cache/save","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/checkout","sha":"9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0","version":"v7.0.0"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e","version":"v6.4.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"8c7d04ebf1ece56cd381446125da3e0f6896294a","version":"v0.80.9"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.7","digest":"sha256:aae231e4635c8999d039c132f1602d3df850fe9b84a00aa2b5ac981179b5661c","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.7@sha256:aae231e4635c8999d039c132f1602d3df850fe9b84a00aa2b5ac981179b5661c"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.7","digest":"sha256:009caf2e3d88fa77b64e9a03a95a228fc58db0f1701c6d324b29ba5a3c7c79b6","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.7@sha256:009caf2e3d88fa77b64e9a03a95a228fc58db0f1701c6d324b29ba5a3c7c79b6"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.7","digest":"sha256:deb1d4e19de62d51cee0508057a596a19315c3423ada4d675cad136dc8037c96","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.7@sha256:deb1d4e19de62d51cee0508057a596a19315c3423ada4d675cad136dc8037c96"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.27","digest":"sha256:fe984bddde4ec05d756d9043edb0a32912e6b7b72f6a121b1082f29221421cc7","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.3.27@sha256:fe984bddde4ec05d756d9043edb0a32912e6b7b72f6a121b1082f29221421cc7"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b","pinned_image":"ghcr.io/github/gh-aw-node@sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b"},{"image":"ghcr.io/github/github-mcp-server:v1.4.0","digest":"sha256:2afb26356481d1a350e14544a6e160f7f7ec1561a1ea309b823665abf0309036","pinned_image":"ghcr.io/github/github-mcp-server:v1.4.0@sha256:2afb26356481d1a350e14544a6e160f7f7ec1561a1ea309b823665abf0309036"}]} # This file was automatically generated by gh-aw (v0.80.9). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md # # ___ _ _ @@ -24,8 +24,21 @@ # For more information: https://github.github.com/gh-aw/introduction/overview/ # # +# Resolved workflow manifest: +# Imports: +# - shared/pat_pool.md +# # Secrets used: -# - COPILOT_GITHUB_TOKEN +# - COPILOT_PAT_0 +# - COPILOT_PAT_1 +# - COPILOT_PAT_2 +# - COPILOT_PAT_3 +# - COPILOT_PAT_4 +# - COPILOT_PAT_5 +# - COPILOT_PAT_6 +# - COPILOT_PAT_7 +# - COPILOT_PAT_8 +# - COPILOT_PAT_9 # - GITHUB_TOKEN # # Custom actions used: @@ -48,6 +61,7 @@ name: "CI Post-Mortem Analysis" on: + # permissions: {} # Permissions applied to pre-activation job workflow_dispatch: inputs: aw_context: @@ -65,6 +79,10 @@ run-name: "CI Post-Mortem Analysis" jobs: activation: + needs: + - pat_pool + - pre_activation + if: needs.pre_activation.outputs.activated == 'true' runs-on: ubuntu-slim permissions: actions: read @@ -91,6 +109,8 @@ jobs: with: destination: ${{ runner.temp }}/gh-aw/actions job-name: ${{ github.job }} + trace-id: ${{ needs.pre_activation.outputs.setup-trace-id }} + parent-span-id: ${{ needs.pre_activation.outputs.setup-parent-span-id || needs.pre_activation.outputs.setup-span-id }} safe-output-artifact-client: ${{ env.GH_AW_MAX_DAILY_AI_CREDITS != '' }} env: GH_AW_SETUP_WORKFLOW_NAME: "CI Post-Mortem Analysis" @@ -301,6 +321,7 @@ jobs: GH_AW_GITHUB_RUN_ID: ${{ github.run_id }} GH_AW_GITHUB_WORKSPACE: ${{ github.workspace }} GH_AW_MCP_CLI_SERVERS_LIST: '- `safeoutputs` — run `safeoutputs --help` to see available tools' + GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED: ${{ needs.pre_activation.outputs.activated }} with: script: | const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); @@ -320,7 +341,8 @@ jobs: GH_AW_GITHUB_REPOSITORY: process.env.GH_AW_GITHUB_REPOSITORY, GH_AW_GITHUB_RUN_ID: process.env.GH_AW_GITHUB_RUN_ID, GH_AW_GITHUB_WORKSPACE: process.env.GH_AW_GITHUB_WORKSPACE, - GH_AW_MCP_CLI_SERVERS_LIST: process.env.GH_AW_MCP_CLI_SERVERS_LIST + GH_AW_MCP_CLI_SERVERS_LIST: process.env.GH_AW_MCP_CLI_SERVERS_LIST, + GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED: process.env.GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED } }); - name: Validate prompt placeholders @@ -353,7 +375,9 @@ jobs: retention-days: 1 agent: - needs: activation + needs: + - activation + - pat_pool if: needs.activation.outputs.daily_ai_credits_exceeded != 'true' runs-on: ubuntu-latest environment: gh-aw-environment @@ -864,7 +888,20 @@ jobs: AWF_REFLECT_ENABLED: 1 COPILOT_AGENT_RUNNER_TYPE: STANDALONE COPILOT_DUMMY_BYOK: dummy-byok-key-for-offline-mode - COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} + COPILOT_GITHUB_TOKEN: | + ${{ case( + needs.pat_pool.outputs.pat_number == '0', secrets.COPILOT_PAT_0, + needs.pat_pool.outputs.pat_number == '1', secrets.COPILOT_PAT_1, + needs.pat_pool.outputs.pat_number == '2', secrets.COPILOT_PAT_2, + needs.pat_pool.outputs.pat_number == '3', secrets.COPILOT_PAT_3, + needs.pat_pool.outputs.pat_number == '4', secrets.COPILOT_PAT_4, + needs.pat_pool.outputs.pat_number == '5', secrets.COPILOT_PAT_5, + needs.pat_pool.outputs.pat_number == '6', secrets.COPILOT_PAT_6, + needs.pat_pool.outputs.pat_number == '7', secrets.COPILOT_PAT_7, + needs.pat_pool.outputs.pat_number == '8', secrets.COPILOT_PAT_8, + needs.pat_pool.outputs.pat_number == '9', secrets.COPILOT_PAT_9, + 'NO COPILOT PAT AVAILABLE') + }} COPILOT_MODEL: claude-sonnet-4.5 GH_AW_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_MAX_AI_CREDITS || '1000' }} GH_AW_MAX_TURNS: ${{ vars.GH_AW_DEFAULT_MAX_TURNS || '' }} @@ -922,8 +959,17 @@ jobs: const { main } = require('${{ runner.temp }}/gh-aw/actions/redact_secrets.cjs'); await main(); env: - GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GITHUB_TOKEN' - SECRET_COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} + GH_AW_SECRET_NAMES: 'COPILOT_PAT_0,COPILOT_PAT_1,COPILOT_PAT_2,COPILOT_PAT_3,COPILOT_PAT_4,COPILOT_PAT_5,COPILOT_PAT_6,COPILOT_PAT_7,COPILOT_PAT_8,COPILOT_PAT_9,GITHUB_TOKEN' + SECRET_COPILOT_PAT_0: ${{ secrets.COPILOT_PAT_0 }} + SECRET_COPILOT_PAT_1: ${{ secrets.COPILOT_PAT_1 }} + SECRET_COPILOT_PAT_2: ${{ secrets.COPILOT_PAT_2 }} + SECRET_COPILOT_PAT_3: ${{ secrets.COPILOT_PAT_3 }} + SECRET_COPILOT_PAT_4: ${{ secrets.COPILOT_PAT_4 }} + SECRET_COPILOT_PAT_5: ${{ secrets.COPILOT_PAT_5 }} + SECRET_COPILOT_PAT_6: ${{ secrets.COPILOT_PAT_6 }} + SECRET_COPILOT_PAT_7: ${{ secrets.COPILOT_PAT_7 }} + SECRET_COPILOT_PAT_8: ${{ secrets.COPILOT_PAT_8 }} + SECRET_COPILOT_PAT_9: ${{ secrets.COPILOT_PAT_9 }} SECRET_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Append agent step summary if: always() @@ -1045,6 +1091,7 @@ jobs: - activation - agent - detection + - pat_pool - safe_outputs if: > always() && (needs.agent.result != 'skipped' || needs.activation.outputs.lockdown_check_failed == 'true' || @@ -1455,7 +1502,20 @@ jobs: AWF_REFLECT_ENABLED: 1 COPILOT_AGENT_RUNNER_TYPE: STANDALONE COPILOT_DUMMY_BYOK: dummy-byok-key-for-offline-mode - COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} + COPILOT_GITHUB_TOKEN: | + ${{ case( + needs.pat_pool.outputs.pat_number == '0', secrets.COPILOT_PAT_0, + needs.pat_pool.outputs.pat_number == '1', secrets.COPILOT_PAT_1, + needs.pat_pool.outputs.pat_number == '2', secrets.COPILOT_PAT_2, + needs.pat_pool.outputs.pat_number == '3', secrets.COPILOT_PAT_3, + needs.pat_pool.outputs.pat_number == '4', secrets.COPILOT_PAT_4, + needs.pat_pool.outputs.pat_number == '5', secrets.COPILOT_PAT_5, + needs.pat_pool.outputs.pat_number == '6', secrets.COPILOT_PAT_6, + needs.pat_pool.outputs.pat_number == '7', secrets.COPILOT_PAT_7, + needs.pat_pool.outputs.pat_number == '8', secrets.COPILOT_PAT_8, + needs.pat_pool.outputs.pat_number == '9', secrets.COPILOT_PAT_9, + 'NO COPILOT PAT AVAILABLE') + }} COPILOT_MODEL: claude-sonnet-4.5 GH_AW_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_DETECTION_MAX_AI_CREDITS || '400' }} GH_AW_MAX_TURNS: ${{ vars.GH_AW_DEFAULT_MAX_TURNS || '' }} @@ -1530,6 +1590,116 @@ jobs: } } + pat_pool: + needs: pre_activation + runs-on: ubuntu-slim + environment: gh-aw-environment + outputs: + pat_number: ${{ steps.select-pat-number.outputs.copilot_pat_number }} + steps: + - name: Configure GH_HOST for enterprise compatibility + id: ghes-host-config + shell: bash + run: | # zizmor: ignore[github-env] - GITHUB_SERVER_URL is set by GitHub Actions, not user input. + # Derive GH_HOST from GITHUB_SERVER_URL so the gh CLI targets the correct + # GitHub instance (GHES/GHEC). On github.com this is a harmless no-op. + GH_HOST="${GITHUB_SERVER_URL#https://}" + GH_HOST="${GH_HOST#http://}" + echo "GH_HOST=${GH_HOST}" >> "$GITHUB_ENV" + - name: Select Copilot token from pool + id: select-pat-number + run: | + # Collect pool entries with non-empty secrets from COPILOT_PAT_0..COPILOT_PAT_9. + PAT_NUMBERS=() + POOL_INDICATORS=(➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖) + + for i in $(seq 0 9); do + var="COPILOT_PAT_${i}" + val="${!var}" + if [ -n "$val" ]; then + PAT_NUMBERS+=(${i}) + POOL_INDICATORS[${i}]="🟪" + fi + done + + # If none of the entries in the pool have values, emit a warning + # and do not set an output value. The consumer can fall back to + # using COPILOT_GITHUB_TOKEN. + if [ ${#PAT_NUMBERS[@]} -eq 0 ]; then + warning_message="::warning::None of the PAT pool entries had values " + warning_message+="(checked COPILOT_PAT_0 through COPILOT_PAT_9)" + echo "$warning_message" + exit 0 + fi + + # Select a random index using the seed if specified + if [ -n "$RANDOM_SEED" ]; then + RANDOM=$RANDOM_SEED + fi + + PAT_INDEX=$(( RANDOM % ${#PAT_NUMBERS[@]} )) + PAT_NUMBER="${PAT_NUMBERS[$PAT_INDEX]}" + POOL_INDICATORS[${PAT_NUMBER}]="✅" + + echo "Pool size: ${#PAT_NUMBERS[@]}" + echo "Selected PAT number ${PAT_NUMBER} (index: ${PAT_INDEX})" + + # Emit a markdown table of the pool entries to the step summary + echo "|0|1|2|3|4|5|6|7|8|9|" >> "$GITHUB_STEP_SUMMARY" + echo "|-|-|-|-|-|-|-|-|-|-|" >> "$GITHUB_STEP_SUMMARY" + (IFS='|'; printf '|%s' "${POOL_INDICATORS[@]}"; printf '|\n') >> "$GITHUB_STEP_SUMMARY" + + # Set the PAT number as the output + echo "copilot_pat_number=${PAT_NUMBER}" >> "$GITHUB_OUTPUT" + env: + COPILOT_PAT_0: ${{ secrets.COPILOT_PAT_0 }} + COPILOT_PAT_1: ${{ secrets.COPILOT_PAT_1 }} + COPILOT_PAT_2: ${{ secrets.COPILOT_PAT_2 }} + COPILOT_PAT_3: ${{ secrets.COPILOT_PAT_3 }} + COPILOT_PAT_4: ${{ secrets.COPILOT_PAT_4 }} + COPILOT_PAT_5: ${{ secrets.COPILOT_PAT_5 }} + COPILOT_PAT_6: ${{ secrets.COPILOT_PAT_6 }} + COPILOT_PAT_7: ${{ secrets.COPILOT_PAT_7 }} + COPILOT_PAT_8: ${{ secrets.COPILOT_PAT_8 }} + COPILOT_PAT_9: ${{ secrets.COPILOT_PAT_9 }} + RANDOM_SEED: ${{ github.aw.import-inputs.random_seed }} + shell: bash + + pre_activation: + runs-on: ubuntu-slim + environment: gh-aw-environment + outputs: + activated: ${{ steps.check_membership.outputs.is_team_member == 'true' }} + matched_command: '' + setup-parent-span-id: ${{ steps.setup.outputs.parent-span-id || steps.setup.outputs.span-id }} + setup-span-id: ${{ steps.setup.outputs.span-id }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} + steps: + - name: Setup Scripts + id: setup + uses: github/gh-aw-actions/setup@8c7d04ebf1ece56cd381446125da3e0f6896294a # v0.80.9 + with: + destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + env: + GH_AW_SETUP_WORKFLOW_NAME: "CI Post-Mortem Analysis" + GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-postmortem.lock.yml@${{ github.ref }} + GH_AW_INFO_VERSION: "1.0.63" + GH_AW_INFO_AWF_VERSION: "v0.27.7" + GH_AW_INFO_ENGINE_ID: "copilot" + - name: Check team membership for workflow + id: check_membership + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_REQUIRED_ROLES: "admin,maintainer,write" + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/check_membership.cjs'); + await main(); + safe_outputs: needs: - activation diff --git a/.github/workflows/ci-postmortem.md b/.github/workflows/ci-postmortem.md index 1bd40d9f1d85..26c9ef4f3e1a 100644 --- a/.github/workflows/ci-postmortem.md +++ b/.github/workflows/ci-postmortem.md @@ -1,6 +1,20 @@ --- on: workflow_dispatch: + permissions: {} + +# ############################################################### +# Select a PAT from the pool and override COPILOT_GITHUB_TOKEN. +# Run agentic jobs in the existing `gh-aw-environment` environment. +# +# When org-level billing is available, this will be removed. +# See `shared/pat_pool.README.md` for more information. +# ############################################################### +imports: + - uses: shared/pat_pool.md + with: + environment: gh-aw-environment + permissions: contents: read issues: read @@ -8,6 +22,21 @@ environment: gh-aw-environment engine: id: copilot model: claude-sonnet-4.5 + env: + COPILOT_GITHUB_TOKEN: | + ${{ case( + needs.pat_pool.outputs.pat_number == '0', secrets.COPILOT_PAT_0, + needs.pat_pool.outputs.pat_number == '1', secrets.COPILOT_PAT_1, + needs.pat_pool.outputs.pat_number == '2', secrets.COPILOT_PAT_2, + needs.pat_pool.outputs.pat_number == '3', secrets.COPILOT_PAT_3, + needs.pat_pool.outputs.pat_number == '4', secrets.COPILOT_PAT_4, + needs.pat_pool.outputs.pat_number == '5', secrets.COPILOT_PAT_5, + needs.pat_pool.outputs.pat_number == '6', secrets.COPILOT_PAT_6, + needs.pat_pool.outputs.pat_number == '7', secrets.COPILOT_PAT_7, + needs.pat_pool.outputs.pat_number == '8', secrets.COPILOT_PAT_8, + needs.pat_pool.outputs.pat_number == '9', secrets.COPILOT_PAT_9, + 'NO COPILOT PAT AVAILABLE') + }} network: allowed: - defaults diff --git a/.github/workflows/code-radiator.lock.yml b/.github/workflows/code-radiator.lock.yml index 0ec074070452..a8c2bbdee7f7 100644 --- a/.github/workflows/code-radiator.lock.yml +++ b/.github/workflows/code-radiator.lock.yml @@ -1,5 +1,5 @@ -# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"53d713e17785469d744b616c5a93e67527ac3fdde37f1d78d86fbf49e57e3d53","body_hash":"45ef756cba45af7752ec1432a03d6e147be19220efb74c41b103d9dff20bab56","compiler_version":"v0.80.9","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.5","engine_versions":{"copilot":"1.0.63"}} -# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_CI_TRIGGER_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/cache/save","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/checkout","sha":"9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0","version":"v7.0.0"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e","version":"v6.4.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"8c7d04ebf1ece56cd381446125da3e0f6896294a","version":"v0.80.9"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.7","digest":"sha256:aae231e4635c8999d039c132f1602d3df850fe9b84a00aa2b5ac981179b5661c","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.7@sha256:aae231e4635c8999d039c132f1602d3df850fe9b84a00aa2b5ac981179b5661c"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.7","digest":"sha256:009caf2e3d88fa77b64e9a03a95a228fc58db0f1701c6d324b29ba5a3c7c79b6","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.7@sha256:009caf2e3d88fa77b64e9a03a95a228fc58db0f1701c6d324b29ba5a3c7c79b6"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.7","digest":"sha256:deb1d4e19de62d51cee0508057a596a19315c3423ada4d675cad136dc8037c96","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.7@sha256:deb1d4e19de62d51cee0508057a596a19315c3423ada4d675cad136dc8037c96"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.27","digest":"sha256:fe984bddde4ec05d756d9043edb0a32912e6b7b72f6a121b1082f29221421cc7","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.3.27@sha256:fe984bddde4ec05d756d9043edb0a32912e6b7b72f6a121b1082f29221421cc7"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b","pinned_image":"ghcr.io/github/gh-aw-node@sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b"},{"image":"ghcr.io/github/github-mcp-server:v1.4.0","digest":"sha256:2afb26356481d1a350e14544a6e160f7f7ec1561a1ea309b823665abf0309036","pinned_image":"ghcr.io/github/github-mcp-server:v1.4.0@sha256:2afb26356481d1a350e14544a6e160f7f7ec1561a1ea309b823665abf0309036"}]} +# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"35d5436b6ffc734b76d2a30e5a881da35eac7b638a285c210f1f7bc7da139ca5","body_hash":"45ef756cba45af7752ec1432a03d6e147be19220efb74c41b103d9dff20bab56","compiler_version":"v0.80.9","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.5","engine_versions":{"copilot":"1.0.63"}} +# gh-aw-manifest: {"version":1,"secrets":["COPILOT_PAT_0","COPILOT_PAT_1","COPILOT_PAT_2","COPILOT_PAT_3","COPILOT_PAT_4","COPILOT_PAT_5","COPILOT_PAT_6","COPILOT_PAT_7","COPILOT_PAT_8","COPILOT_PAT_9","GH_AW_CI_TRIGGER_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/cache/save","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/checkout","sha":"9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0","version":"v7.0.0"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e","version":"v6.4.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"8c7d04ebf1ece56cd381446125da3e0f6896294a","version":"v0.80.9"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.7","digest":"sha256:aae231e4635c8999d039c132f1602d3df850fe9b84a00aa2b5ac981179b5661c","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.7@sha256:aae231e4635c8999d039c132f1602d3df850fe9b84a00aa2b5ac981179b5661c"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.7","digest":"sha256:009caf2e3d88fa77b64e9a03a95a228fc58db0f1701c6d324b29ba5a3c7c79b6","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.7@sha256:009caf2e3d88fa77b64e9a03a95a228fc58db0f1701c6d324b29ba5a3c7c79b6"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.7","digest":"sha256:deb1d4e19de62d51cee0508057a596a19315c3423ada4d675cad136dc8037c96","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.7@sha256:deb1d4e19de62d51cee0508057a596a19315c3423ada4d675cad136dc8037c96"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.27","digest":"sha256:fe984bddde4ec05d756d9043edb0a32912e6b7b72f6a121b1082f29221421cc7","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.3.27@sha256:fe984bddde4ec05d756d9043edb0a32912e6b7b72f6a121b1082f29221421cc7"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b","pinned_image":"ghcr.io/github/gh-aw-node@sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b"},{"image":"ghcr.io/github/github-mcp-server:v1.4.0","digest":"sha256:2afb26356481d1a350e14544a6e160f7f7ec1561a1ea309b823665abf0309036","pinned_image":"ghcr.io/github/github-mcp-server:v1.4.0@sha256:2afb26356481d1a350e14544a6e160f7f7ec1561a1ea309b823665abf0309036"}]} # This file was automatically generated by gh-aw (v0.80.9). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md # # ___ _ _ @@ -24,8 +24,21 @@ # For more information: https://github.github.com/gh-aw/introduction/overview/ # # +# Resolved workflow manifest: +# Imports: +# - shared/pat_pool.md +# # Secrets used: -# - COPILOT_GITHUB_TOKEN +# - COPILOT_PAT_0 +# - COPILOT_PAT_1 +# - COPILOT_PAT_2 +# - COPILOT_PAT_3 +# - COPILOT_PAT_4 +# - COPILOT_PAT_5 +# - COPILOT_PAT_6 +# - COPILOT_PAT_7 +# - COPILOT_PAT_8 +# - COPILOT_PAT_9 # - GH_AW_CI_TRIGGER_TOKEN # - GITHUB_TOKEN # @@ -49,6 +62,7 @@ name: "Code Radiator" on: + # permissions: {} # Permissions applied to pre-activation job # roles: # Roles processed as role check in pre-activation job # - admin # Roles processed as role check in pre-activation job # - maintain # Roles processed as role check in pre-activation job @@ -74,6 +88,10 @@ run-name: "Code Radiator" jobs: activation: + needs: + - pat_pool + - pre_activation + if: needs.pre_activation.outputs.activated == 'true' runs-on: ubuntu-slim permissions: actions: read @@ -100,6 +118,8 @@ jobs: with: destination: ${{ runner.temp }}/gh-aw/actions job-name: ${{ github.job }} + trace-id: ${{ needs.pre_activation.outputs.setup-trace-id }} + parent-span-id: ${{ needs.pre_activation.outputs.setup-parent-span-id || needs.pre_activation.outputs.setup-span-id }} safe-output-artifact-client: ${{ env.GH_AW_MAX_DAILY_AI_CREDITS != '' }} env: GH_AW_SETUP_WORKFLOW_NAME: "Code Radiator" @@ -327,6 +347,7 @@ jobs: GH_AW_GITHUB_RUN_ID: ${{ github.run_id }} GH_AW_GITHUB_WORKSPACE: ${{ github.workspace }} GH_AW_MCP_CLI_SERVERS_LIST: '- `safeoutputs` — run `safeoutputs --help` to see available tools' + GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED: ${{ needs.pre_activation.outputs.activated }} with: script: | const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); @@ -346,7 +367,8 @@ jobs: GH_AW_GITHUB_REPOSITORY: process.env.GH_AW_GITHUB_REPOSITORY, GH_AW_GITHUB_RUN_ID: process.env.GH_AW_GITHUB_RUN_ID, GH_AW_GITHUB_WORKSPACE: process.env.GH_AW_GITHUB_WORKSPACE, - GH_AW_MCP_CLI_SERVERS_LIST: process.env.GH_AW_MCP_CLI_SERVERS_LIST + GH_AW_MCP_CLI_SERVERS_LIST: process.env.GH_AW_MCP_CLI_SERVERS_LIST, + GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED: process.env.GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED } }); - name: Validate prompt placeholders @@ -379,7 +401,9 @@ jobs: retention-days: 1 agent: - needs: activation + needs: + - activation + - pat_pool if: needs.activation.outputs.daily_ai_credits_exceeded != 'true' runs-on: ubuntu-latest environment: gh-aw-environment @@ -1015,7 +1039,20 @@ jobs: AWF_REFLECT_ENABLED: 1 COPILOT_AGENT_RUNNER_TYPE: STANDALONE COPILOT_DUMMY_BYOK: dummy-byok-key-for-offline-mode - COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} + COPILOT_GITHUB_TOKEN: | + ${{ case( + needs.pat_pool.outputs.pat_number == '0', secrets.COPILOT_PAT_0, + needs.pat_pool.outputs.pat_number == '1', secrets.COPILOT_PAT_1, + needs.pat_pool.outputs.pat_number == '2', secrets.COPILOT_PAT_2, + needs.pat_pool.outputs.pat_number == '3', secrets.COPILOT_PAT_3, + needs.pat_pool.outputs.pat_number == '4', secrets.COPILOT_PAT_4, + needs.pat_pool.outputs.pat_number == '5', secrets.COPILOT_PAT_5, + needs.pat_pool.outputs.pat_number == '6', secrets.COPILOT_PAT_6, + needs.pat_pool.outputs.pat_number == '7', secrets.COPILOT_PAT_7, + needs.pat_pool.outputs.pat_number == '8', secrets.COPILOT_PAT_8, + needs.pat_pool.outputs.pat_number == '9', secrets.COPILOT_PAT_9, + 'NO COPILOT PAT AVAILABLE') + }} COPILOT_MODEL: claude-sonnet-4.5 GH_AW_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_MAX_AI_CREDITS || '1000' }} GH_AW_MAX_TURNS: ${{ vars.GH_AW_DEFAULT_MAX_TURNS || '' }} @@ -1073,8 +1110,17 @@ jobs: const { main } = require('${{ runner.temp }}/gh-aw/actions/redact_secrets.cjs'); await main(); env: - GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GITHUB_TOKEN' - SECRET_COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} + GH_AW_SECRET_NAMES: 'COPILOT_PAT_0,COPILOT_PAT_1,COPILOT_PAT_2,COPILOT_PAT_3,COPILOT_PAT_4,COPILOT_PAT_5,COPILOT_PAT_6,COPILOT_PAT_7,COPILOT_PAT_8,COPILOT_PAT_9,GITHUB_TOKEN' + SECRET_COPILOT_PAT_0: ${{ secrets.COPILOT_PAT_0 }} + SECRET_COPILOT_PAT_1: ${{ secrets.COPILOT_PAT_1 }} + SECRET_COPILOT_PAT_2: ${{ secrets.COPILOT_PAT_2 }} + SECRET_COPILOT_PAT_3: ${{ secrets.COPILOT_PAT_3 }} + SECRET_COPILOT_PAT_4: ${{ secrets.COPILOT_PAT_4 }} + SECRET_COPILOT_PAT_5: ${{ secrets.COPILOT_PAT_5 }} + SECRET_COPILOT_PAT_6: ${{ secrets.COPILOT_PAT_6 }} + SECRET_COPILOT_PAT_7: ${{ secrets.COPILOT_PAT_7 }} + SECRET_COPILOT_PAT_8: ${{ secrets.COPILOT_PAT_8 }} + SECRET_COPILOT_PAT_9: ${{ secrets.COPILOT_PAT_9 }} SECRET_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Append agent step summary if: always() @@ -1196,6 +1242,7 @@ jobs: - activation - agent - detection + - pat_pool - safe_outputs if: > always() && (needs.agent.result != 'skipped' || needs.activation.outputs.lockdown_check_failed == 'true' || @@ -1608,7 +1655,20 @@ jobs: AWF_REFLECT_ENABLED: 1 COPILOT_AGENT_RUNNER_TYPE: STANDALONE COPILOT_DUMMY_BYOK: dummy-byok-key-for-offline-mode - COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} + COPILOT_GITHUB_TOKEN: | + ${{ case( + needs.pat_pool.outputs.pat_number == '0', secrets.COPILOT_PAT_0, + needs.pat_pool.outputs.pat_number == '1', secrets.COPILOT_PAT_1, + needs.pat_pool.outputs.pat_number == '2', secrets.COPILOT_PAT_2, + needs.pat_pool.outputs.pat_number == '3', secrets.COPILOT_PAT_3, + needs.pat_pool.outputs.pat_number == '4', secrets.COPILOT_PAT_4, + needs.pat_pool.outputs.pat_number == '5', secrets.COPILOT_PAT_5, + needs.pat_pool.outputs.pat_number == '6', secrets.COPILOT_PAT_6, + needs.pat_pool.outputs.pat_number == '7', secrets.COPILOT_PAT_7, + needs.pat_pool.outputs.pat_number == '8', secrets.COPILOT_PAT_8, + needs.pat_pool.outputs.pat_number == '9', secrets.COPILOT_PAT_9, + 'NO COPILOT PAT AVAILABLE') + }} COPILOT_MODEL: claude-sonnet-4.5 GH_AW_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_DETECTION_MAX_AI_CREDITS || '400' }} GH_AW_MAX_TURNS: ${{ vars.GH_AW_DEFAULT_MAX_TURNS || '' }} @@ -1683,6 +1743,116 @@ jobs: } } + pat_pool: + needs: pre_activation + runs-on: ubuntu-slim + environment: gh-aw-environment + outputs: + pat_number: ${{ steps.select-pat-number.outputs.copilot_pat_number }} + steps: + - name: Configure GH_HOST for enterprise compatibility + id: ghes-host-config + shell: bash + run: | # zizmor: ignore[github-env] - GITHUB_SERVER_URL is set by GitHub Actions, not user input. + # Derive GH_HOST from GITHUB_SERVER_URL so the gh CLI targets the correct + # GitHub instance (GHES/GHEC). On github.com this is a harmless no-op. + GH_HOST="${GITHUB_SERVER_URL#https://}" + GH_HOST="${GH_HOST#http://}" + echo "GH_HOST=${GH_HOST}" >> "$GITHUB_ENV" + - name: Select Copilot token from pool + id: select-pat-number + run: | + # Collect pool entries with non-empty secrets from COPILOT_PAT_0..COPILOT_PAT_9. + PAT_NUMBERS=() + POOL_INDICATORS=(➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖) + + for i in $(seq 0 9); do + var="COPILOT_PAT_${i}" + val="${!var}" + if [ -n "$val" ]; then + PAT_NUMBERS+=(${i}) + POOL_INDICATORS[${i}]="🟪" + fi + done + + # If none of the entries in the pool have values, emit a warning + # and do not set an output value. The consumer can fall back to + # using COPILOT_GITHUB_TOKEN. + if [ ${#PAT_NUMBERS[@]} -eq 0 ]; then + warning_message="::warning::None of the PAT pool entries had values " + warning_message+="(checked COPILOT_PAT_0 through COPILOT_PAT_9)" + echo "$warning_message" + exit 0 + fi + + # Select a random index using the seed if specified + if [ -n "$RANDOM_SEED" ]; then + RANDOM=$RANDOM_SEED + fi + + PAT_INDEX=$(( RANDOM % ${#PAT_NUMBERS[@]} )) + PAT_NUMBER="${PAT_NUMBERS[$PAT_INDEX]}" + POOL_INDICATORS[${PAT_NUMBER}]="✅" + + echo "Pool size: ${#PAT_NUMBERS[@]}" + echo "Selected PAT number ${PAT_NUMBER} (index: ${PAT_INDEX})" + + # Emit a markdown table of the pool entries to the step summary + echo "|0|1|2|3|4|5|6|7|8|9|" >> "$GITHUB_STEP_SUMMARY" + echo "|-|-|-|-|-|-|-|-|-|-|" >> "$GITHUB_STEP_SUMMARY" + (IFS='|'; printf '|%s' "${POOL_INDICATORS[@]}"; printf '|\n') >> "$GITHUB_STEP_SUMMARY" + + # Set the PAT number as the output + echo "copilot_pat_number=${PAT_NUMBER}" >> "$GITHUB_OUTPUT" + env: + COPILOT_PAT_0: ${{ secrets.COPILOT_PAT_0 }} + COPILOT_PAT_1: ${{ secrets.COPILOT_PAT_1 }} + COPILOT_PAT_2: ${{ secrets.COPILOT_PAT_2 }} + COPILOT_PAT_3: ${{ secrets.COPILOT_PAT_3 }} + COPILOT_PAT_4: ${{ secrets.COPILOT_PAT_4 }} + COPILOT_PAT_5: ${{ secrets.COPILOT_PAT_5 }} + COPILOT_PAT_6: ${{ secrets.COPILOT_PAT_6 }} + COPILOT_PAT_7: ${{ secrets.COPILOT_PAT_7 }} + COPILOT_PAT_8: ${{ secrets.COPILOT_PAT_8 }} + COPILOT_PAT_9: ${{ secrets.COPILOT_PAT_9 }} + RANDOM_SEED: ${{ github.aw.import-inputs.random_seed }} + shell: bash + + pre_activation: + runs-on: ubuntu-slim + environment: gh-aw-environment + outputs: + activated: ${{ steps.check_membership.outputs.is_team_member == 'true' }} + matched_command: '' + setup-parent-span-id: ${{ steps.setup.outputs.parent-span-id || steps.setup.outputs.span-id }} + setup-span-id: ${{ steps.setup.outputs.span-id }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} + steps: + - name: Setup Scripts + id: setup + uses: github/gh-aw-actions/setup@8c7d04ebf1ece56cd381446125da3e0f6896294a # v0.80.9 + with: + destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + env: + GH_AW_SETUP_WORKFLOW_NAME: "Code Radiator" + GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/code-radiator.lock.yml@${{ github.ref }} + GH_AW_INFO_VERSION: "1.0.63" + GH_AW_INFO_AWF_VERSION: "v0.27.7" + GH_AW_INFO_ENGINE_ID: "copilot" + - name: Check team membership for workflow + id: check_membership + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + GH_AW_REQUIRED_ROLES: "admin,maintain,write" + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs'); + setupGlobals(core, github, context, exec, io, getOctokit); + const { main } = require('${{ runner.temp }}/gh-aw/actions/check_membership.cjs'); + await main(); + safe_outputs: needs: - activation diff --git a/.github/workflows/code-radiator.md b/.github/workflows/code-radiator.md index e60f9cbbee0e..363c58328ef1 100644 --- a/.github/workflows/code-radiator.md +++ b/.github/workflows/code-radiator.md @@ -3,6 +3,20 @@ on: schedule: daily workflow_dispatch: roles: [admin, maintain, write] + permissions: {} + +# ############################################################### +# Select a PAT from the pool and override COPILOT_GITHUB_TOKEN. +# Run agentic jobs in the existing `gh-aw-environment` environment. +# +# When org-level billing is available, this will be removed. +# See `shared/pat_pool.README.md` for more information. +# ############################################################### +imports: + - uses: shared/pat_pool.md + with: + environment: gh-aw-environment + concurrency: group: "code-radiator-${{ github.ref || github.run_id }}" cancel-in-progress: true @@ -13,6 +27,21 @@ environment: gh-aw-environment engine: id: copilot model: claude-sonnet-4.5 + env: + COPILOT_GITHUB_TOKEN: | + ${{ case( + needs.pat_pool.outputs.pat_number == '0', secrets.COPILOT_PAT_0, + needs.pat_pool.outputs.pat_number == '1', secrets.COPILOT_PAT_1, + needs.pat_pool.outputs.pat_number == '2', secrets.COPILOT_PAT_2, + needs.pat_pool.outputs.pat_number == '3', secrets.COPILOT_PAT_3, + needs.pat_pool.outputs.pat_number == '4', secrets.COPILOT_PAT_4, + needs.pat_pool.outputs.pat_number == '5', secrets.COPILOT_PAT_5, + needs.pat_pool.outputs.pat_number == '6', secrets.COPILOT_PAT_6, + needs.pat_pool.outputs.pat_number == '7', secrets.COPILOT_PAT_7, + needs.pat_pool.outputs.pat_number == '8', secrets.COPILOT_PAT_8, + needs.pat_pool.outputs.pat_number == '9', secrets.COPILOT_PAT_9, + 'NO COPILOT PAT AVAILABLE') + }} network: allowed: - defaults diff --git a/.github/workflows/macios-reviewer.lock.yml b/.github/workflows/macios-reviewer.lock.yml index f8ce9be51b82..78d8412b5f68 100644 --- a/.github/workflows/macios-reviewer.lock.yml +++ b/.github/workflows/macios-reviewer.lock.yml @@ -1,5 +1,5 @@ -# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"117a662ddf023455f14353b3c07641d960165e4a165682dce060a820ddd3f4f0","body_hash":"f7da2590b934e41c9466e1ee4b055db67c98f77303ea07a4c3a5988cf8ee21db","compiler_version":"v0.80.9","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.5","engine_versions":{"copilot":"1.0.63"}} -# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/cache/save","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/checkout","sha":"9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0","version":"v7.0.0"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e","version":"v6.4.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"8c7d04ebf1ece56cd381446125da3e0f6896294a","version":"v0.80.9"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.7","digest":"sha256:aae231e4635c8999d039c132f1602d3df850fe9b84a00aa2b5ac981179b5661c","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.7@sha256:aae231e4635c8999d039c132f1602d3df850fe9b84a00aa2b5ac981179b5661c"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.7","digest":"sha256:009caf2e3d88fa77b64e9a03a95a228fc58db0f1701c6d324b29ba5a3c7c79b6","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.7@sha256:009caf2e3d88fa77b64e9a03a95a228fc58db0f1701c6d324b29ba5a3c7c79b6"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.7","digest":"sha256:deb1d4e19de62d51cee0508057a596a19315c3423ada4d675cad136dc8037c96","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.7@sha256:deb1d4e19de62d51cee0508057a596a19315c3423ada4d675cad136dc8037c96"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.27","digest":"sha256:fe984bddde4ec05d756d9043edb0a32912e6b7b72f6a121b1082f29221421cc7","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.3.27@sha256:fe984bddde4ec05d756d9043edb0a32912e6b7b72f6a121b1082f29221421cc7"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b","pinned_image":"ghcr.io/github/gh-aw-node@sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b"},{"image":"ghcr.io/github/github-mcp-server:v1.4.0","digest":"sha256:2afb26356481d1a350e14544a6e160f7f7ec1561a1ea309b823665abf0309036","pinned_image":"ghcr.io/github/github-mcp-server:v1.4.0@sha256:2afb26356481d1a350e14544a6e160f7f7ec1561a1ea309b823665abf0309036"}]} +# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"14e1bdb39ab8692288ec57f271459d300ecc3ee0351ea77326b86e0d54de905f","body_hash":"f7da2590b934e41c9466e1ee4b055db67c98f77303ea07a4c3a5988cf8ee21db","compiler_version":"v0.80.9","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.5","engine_versions":{"copilot":"1.0.63"}} +# gh-aw-manifest: {"version":1,"secrets":["COPILOT_PAT_0","COPILOT_PAT_1","COPILOT_PAT_2","COPILOT_PAT_3","COPILOT_PAT_4","COPILOT_PAT_5","COPILOT_PAT_6","COPILOT_PAT_7","COPILOT_PAT_8","COPILOT_PAT_9","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/cache/save","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/checkout","sha":"9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0","version":"v7.0.0"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e","version":"v6.4.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"8c7d04ebf1ece56cd381446125da3e0f6896294a","version":"v0.80.9"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.7","digest":"sha256:aae231e4635c8999d039c132f1602d3df850fe9b84a00aa2b5ac981179b5661c","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.7@sha256:aae231e4635c8999d039c132f1602d3df850fe9b84a00aa2b5ac981179b5661c"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.7","digest":"sha256:009caf2e3d88fa77b64e9a03a95a228fc58db0f1701c6d324b29ba5a3c7c79b6","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.7@sha256:009caf2e3d88fa77b64e9a03a95a228fc58db0f1701c6d324b29ba5a3c7c79b6"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.7","digest":"sha256:deb1d4e19de62d51cee0508057a596a19315c3423ada4d675cad136dc8037c96","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.7@sha256:deb1d4e19de62d51cee0508057a596a19315c3423ada4d675cad136dc8037c96"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.27","digest":"sha256:fe984bddde4ec05d756d9043edb0a32912e6b7b72f6a121b1082f29221421cc7","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.3.27@sha256:fe984bddde4ec05d756d9043edb0a32912e6b7b72f6a121b1082f29221421cc7"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b","pinned_image":"ghcr.io/github/gh-aw-node@sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b"},{"image":"ghcr.io/github/github-mcp-server:v1.4.0","digest":"sha256:2afb26356481d1a350e14544a6e160f7f7ec1561a1ea309b823665abf0309036","pinned_image":"ghcr.io/github/github-mcp-server:v1.4.0@sha256:2afb26356481d1a350e14544a6e160f7f7ec1561a1ea309b823665abf0309036"}]} # This file was automatically generated by gh-aw (v0.80.9). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md # # ___ _ _ @@ -24,8 +24,21 @@ # For more information: https://github.github.com/gh-aw/introduction/overview/ # # +# Resolved workflow manifest: +# Imports: +# - shared/pat_pool.md +# # Secrets used: -# - COPILOT_GITHUB_TOKEN +# - COPILOT_PAT_0 +# - COPILOT_PAT_1 +# - COPILOT_PAT_2 +# - COPILOT_PAT_3 +# - COPILOT_PAT_4 +# - COPILOT_PAT_5 +# - COPILOT_PAT_6 +# - COPILOT_PAT_7 +# - COPILOT_PAT_8 +# - COPILOT_PAT_9 # - GITHUB_TOKEN # # Custom actions used: @@ -67,7 +80,9 @@ run-name: ".NET for Apple Platforms PR Reviewer" jobs: activation: - needs: pre_activation + needs: + - pat_pool + - pre_activation if: "needs.pre_activation.outputs.activated == 'true' && (github.event_name == 'issue_comment' && (startsWith(github.event.comment.body, '/review ') || startsWith(github.event.comment.body, '/review\n') || github.event.comment.body == '/review') && github.event.issue.pull_request != null || !(github.event_name == 'issue_comment'))" runs-on: ubuntu-slim permissions: @@ -412,7 +427,9 @@ jobs: retention-days: 1 agent: - needs: activation + needs: + - activation + - pat_pool if: needs.activation.outputs.daily_ai_credits_exceeded != 'true' runs-on: ubuntu-latest environment: gh-aw-environment @@ -871,7 +888,20 @@ jobs: AWF_REFLECT_ENABLED: 1 COPILOT_AGENT_RUNNER_TYPE: STANDALONE COPILOT_DUMMY_BYOK: dummy-byok-key-for-offline-mode - COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} + COPILOT_GITHUB_TOKEN: | + ${{ case( + needs.pat_pool.outputs.pat_number == '0', secrets.COPILOT_PAT_0, + needs.pat_pool.outputs.pat_number == '1', secrets.COPILOT_PAT_1, + needs.pat_pool.outputs.pat_number == '2', secrets.COPILOT_PAT_2, + needs.pat_pool.outputs.pat_number == '3', secrets.COPILOT_PAT_3, + needs.pat_pool.outputs.pat_number == '4', secrets.COPILOT_PAT_4, + needs.pat_pool.outputs.pat_number == '5', secrets.COPILOT_PAT_5, + needs.pat_pool.outputs.pat_number == '6', secrets.COPILOT_PAT_6, + needs.pat_pool.outputs.pat_number == '7', secrets.COPILOT_PAT_7, + needs.pat_pool.outputs.pat_number == '8', secrets.COPILOT_PAT_8, + needs.pat_pool.outputs.pat_number == '9', secrets.COPILOT_PAT_9, + 'NO COPILOT PAT AVAILABLE') + }} COPILOT_MODEL: claude-sonnet-4.5 GH_AW_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_MAX_AI_CREDITS || '1000' }} GH_AW_MAX_TURNS: ${{ vars.GH_AW_DEFAULT_MAX_TURNS || '' }} @@ -929,8 +959,17 @@ jobs: const { main } = require('${{ runner.temp }}/gh-aw/actions/redact_secrets.cjs'); await main(); env: - GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GITHUB_TOKEN' - SECRET_COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} + GH_AW_SECRET_NAMES: 'COPILOT_PAT_0,COPILOT_PAT_1,COPILOT_PAT_2,COPILOT_PAT_3,COPILOT_PAT_4,COPILOT_PAT_5,COPILOT_PAT_6,COPILOT_PAT_7,COPILOT_PAT_8,COPILOT_PAT_9,GITHUB_TOKEN' + SECRET_COPILOT_PAT_0: ${{ secrets.COPILOT_PAT_0 }} + SECRET_COPILOT_PAT_1: ${{ secrets.COPILOT_PAT_1 }} + SECRET_COPILOT_PAT_2: ${{ secrets.COPILOT_PAT_2 }} + SECRET_COPILOT_PAT_3: ${{ secrets.COPILOT_PAT_3 }} + SECRET_COPILOT_PAT_4: ${{ secrets.COPILOT_PAT_4 }} + SECRET_COPILOT_PAT_5: ${{ secrets.COPILOT_PAT_5 }} + SECRET_COPILOT_PAT_6: ${{ secrets.COPILOT_PAT_6 }} + SECRET_COPILOT_PAT_7: ${{ secrets.COPILOT_PAT_7 }} + SECRET_COPILOT_PAT_8: ${{ secrets.COPILOT_PAT_8 }} + SECRET_COPILOT_PAT_9: ${{ secrets.COPILOT_PAT_9 }} SECRET_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Append agent step summary if: always() @@ -1053,6 +1092,7 @@ jobs: - activation - agent - detection + - pat_pool - safe_outputs if: > always() && (needs.agent.result != 'skipped' || needs.activation.outputs.lockdown_check_failed == 'true' || @@ -1482,7 +1522,20 @@ jobs: AWF_REFLECT_ENABLED: 1 COPILOT_AGENT_RUNNER_TYPE: STANDALONE COPILOT_DUMMY_BYOK: dummy-byok-key-for-offline-mode - COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} + COPILOT_GITHUB_TOKEN: | + ${{ case( + needs.pat_pool.outputs.pat_number == '0', secrets.COPILOT_PAT_0, + needs.pat_pool.outputs.pat_number == '1', secrets.COPILOT_PAT_1, + needs.pat_pool.outputs.pat_number == '2', secrets.COPILOT_PAT_2, + needs.pat_pool.outputs.pat_number == '3', secrets.COPILOT_PAT_3, + needs.pat_pool.outputs.pat_number == '4', secrets.COPILOT_PAT_4, + needs.pat_pool.outputs.pat_number == '5', secrets.COPILOT_PAT_5, + needs.pat_pool.outputs.pat_number == '6', secrets.COPILOT_PAT_6, + needs.pat_pool.outputs.pat_number == '7', secrets.COPILOT_PAT_7, + needs.pat_pool.outputs.pat_number == '8', secrets.COPILOT_PAT_8, + needs.pat_pool.outputs.pat_number == '9', secrets.COPILOT_PAT_9, + 'NO COPILOT PAT AVAILABLE') + }} COPILOT_MODEL: claude-sonnet-4.5 GH_AW_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_DETECTION_MAX_AI_CREDITS || '400' }} GH_AW_MAX_TURNS: ${{ vars.GH_AW_DEFAULT_MAX_TURNS || '' }} @@ -1557,6 +1610,81 @@ jobs: } } + pat_pool: + needs: pre_activation + runs-on: ubuntu-slim + environment: gh-aw-environment + outputs: + pat_number: ${{ steps.select-pat-number.outputs.copilot_pat_number }} + steps: + - name: Configure GH_HOST for enterprise compatibility + id: ghes-host-config + shell: bash + run: | # zizmor: ignore[github-env] - GITHUB_SERVER_URL is set by GitHub Actions, not user input. + # Derive GH_HOST from GITHUB_SERVER_URL so the gh CLI targets the correct + # GitHub instance (GHES/GHEC). On github.com this is a harmless no-op. + GH_HOST="${GITHUB_SERVER_URL#https://}" + GH_HOST="${GH_HOST#http://}" + echo "GH_HOST=${GH_HOST}" >> "$GITHUB_ENV" + - name: Select Copilot token from pool + id: select-pat-number + run: | + # Collect pool entries with non-empty secrets from COPILOT_PAT_0..COPILOT_PAT_9. + PAT_NUMBERS=() + POOL_INDICATORS=(➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖) + + for i in $(seq 0 9); do + var="COPILOT_PAT_${i}" + val="${!var}" + if [ -n "$val" ]; then + PAT_NUMBERS+=(${i}) + POOL_INDICATORS[${i}]="🟪" + fi + done + + # If none of the entries in the pool have values, emit a warning + # and do not set an output value. The consumer can fall back to + # using COPILOT_GITHUB_TOKEN. + if [ ${#PAT_NUMBERS[@]} -eq 0 ]; then + warning_message="::warning::None of the PAT pool entries had values " + warning_message+="(checked COPILOT_PAT_0 through COPILOT_PAT_9)" + echo "$warning_message" + exit 0 + fi + + # Select a random index using the seed if specified + if [ -n "$RANDOM_SEED" ]; then + RANDOM=$RANDOM_SEED + fi + + PAT_INDEX=$(( RANDOM % ${#PAT_NUMBERS[@]} )) + PAT_NUMBER="${PAT_NUMBERS[$PAT_INDEX]}" + POOL_INDICATORS[${PAT_NUMBER}]="✅" + + echo "Pool size: ${#PAT_NUMBERS[@]}" + echo "Selected PAT number ${PAT_NUMBER} (index: ${PAT_INDEX})" + + # Emit a markdown table of the pool entries to the step summary + echo "|0|1|2|3|4|5|6|7|8|9|" >> "$GITHUB_STEP_SUMMARY" + echo "|-|-|-|-|-|-|-|-|-|-|" >> "$GITHUB_STEP_SUMMARY" + (IFS='|'; printf '|%s' "${POOL_INDICATORS[@]}"; printf '|\n') >> "$GITHUB_STEP_SUMMARY" + + # Set the PAT number as the output + echo "copilot_pat_number=${PAT_NUMBER}" >> "$GITHUB_OUTPUT" + env: + COPILOT_PAT_0: ${{ secrets.COPILOT_PAT_0 }} + COPILOT_PAT_1: ${{ secrets.COPILOT_PAT_1 }} + COPILOT_PAT_2: ${{ secrets.COPILOT_PAT_2 }} + COPILOT_PAT_3: ${{ secrets.COPILOT_PAT_3 }} + COPILOT_PAT_4: ${{ secrets.COPILOT_PAT_4 }} + COPILOT_PAT_5: ${{ secrets.COPILOT_PAT_5 }} + COPILOT_PAT_6: ${{ secrets.COPILOT_PAT_6 }} + COPILOT_PAT_7: ${{ secrets.COPILOT_PAT_7 }} + COPILOT_PAT_8: ${{ secrets.COPILOT_PAT_8 }} + COPILOT_PAT_9: ${{ secrets.COPILOT_PAT_9 }} + RANDOM_SEED: ${{ github.aw.import-inputs.random_seed }} + shell: bash + pre_activation: if: "(github.event_name != 'issue_comment' && github.event_name != 'pull_request_review_comment' || contains(fromJSON('[\"OWNER\",\"MEMBER\",\"COLLABORATOR\"]'), github.event.comment.author_association)) && (github.event_name == 'issue_comment' && (startsWith(github.event.comment.body, '/review ') || startsWith(github.event.comment.body, '/review\n') || github.event.comment.body == '/review') && github.event.issue.pull_request != null || !(github.event_name == 'issue_comment'))" runs-on: ubuntu-slim diff --git a/.github/workflows/macios-reviewer.md b/.github/workflows/macios-reviewer.md index 58eac7da79cc..3627d3c58455 100644 --- a/.github/workflows/macios-reviewer.md +++ b/.github/workflows/macios-reviewer.md @@ -4,6 +4,19 @@ on: name: review events: [pull_request_comment] roles: [admin, maintain, write] + +# ############################################################### +# Select a PAT from the pool and override COPILOT_GITHUB_TOKEN. +# Run agentic jobs in the existing `gh-aw-environment` environment. +# +# When org-level billing is available, this will be removed. +# See `shared/pat_pool.README.md` for more information. +# ############################################################### +imports: + - uses: shared/pat_pool.md + with: + environment: gh-aw-environment + environment: gh-aw-environment concurrency: group: "macios-reviewer-${{ github.event.issue.number || github.event.pull_request.number || github.run_id }}" @@ -14,6 +27,21 @@ permissions: engine: id: copilot model: claude-sonnet-4.5 + env: + COPILOT_GITHUB_TOKEN: | + ${{ case( + needs.pat_pool.outputs.pat_number == '0', secrets.COPILOT_PAT_0, + needs.pat_pool.outputs.pat_number == '1', secrets.COPILOT_PAT_1, + needs.pat_pool.outputs.pat_number == '2', secrets.COPILOT_PAT_2, + needs.pat_pool.outputs.pat_number == '3', secrets.COPILOT_PAT_3, + needs.pat_pool.outputs.pat_number == '4', secrets.COPILOT_PAT_4, + needs.pat_pool.outputs.pat_number == '5', secrets.COPILOT_PAT_5, + needs.pat_pool.outputs.pat_number == '6', secrets.COPILOT_PAT_6, + needs.pat_pool.outputs.pat_number == '7', secrets.COPILOT_PAT_7, + needs.pat_pool.outputs.pat_number == '8', secrets.COPILOT_PAT_8, + needs.pat_pool.outputs.pat_number == '9', secrets.COPILOT_PAT_9, + 'NO COPILOT PAT AVAILABLE') + }} network: allowed: - defaults diff --git a/.github/workflows/shared/pat_pool.README.md b/.github/workflows/shared/pat_pool.README.md new file mode 100644 index 000000000000..99e646ea7424 --- /dev/null +++ b/.github/workflows/shared/pat_pool.README.md @@ -0,0 +1,225 @@ +# PAT Pool + +Selects a random Copilot PAT from a numbered pool of secrets. This addresses limitations that arise from having a single PAT shared across all agentic workflows, such as rate-limiting. + +**This is a stop-gap workaround.** As soon as organization/enterprise billing is available to the dotnet org, this approach will be removed from our workflows. + +## Repository Onboarding + +To use Agentic Workflows in a dotnet org repository: + +1. Follow the instructions for [Configuring Your Repository | Agentic Authoring | GitHub Agentic Workflows][configure-repo]. Use `gh aw` **v0.71.5 or newer**, which supports the agent job dependencies required for this implementation. +2. Copy the `pat_pool.md` and `pat_pool.README.md` files into the repository under `.github/workflows/shared`. +3. Merge those additions into the repository and then follow the instructions for the PAT Creation and Usage below. + +**Install or upgrade the `gh aw` CLI and check the version** + +```sh +gh extension install github/gh-aw --force +gh aw --version +``` + +### Environment + +Create an environment for the agentic workflows: + - _Configuring these settings requires repo admin permission_ + - https://github.com/dotnet/{repo}/settings/environments + - Recommended Name: **gh-aw-environment** + - Recommended Deployment branches and tags: **Protected branches only** + +This environment is used for all agentic workflows, restricting agentic workflows to the repo's protected branches and preventing the workflows from accessing secrets defined for other environments. + +## PAT Management + +Team members provide PATs into the pool with secret names matching the pattern of `_<0-9>`, such as `COPILOT_PAT_0`. + +[Use this link to prefill the PAT creation form with the required settings][create-pat]: + +1. **Resource owner** is your **user account**, not an organization. +2. **Copilot Requests (Read)** must be the only permission granted. +3. **8-day expiration** must be used, which enforces a weekly renewal. +4. **Repository access** set to **Public repositories** only. + +The **Token Name** _does not_ need to match the secret name and is only visible to the owner of the PAT. It's recommended to use a token name indicating the PAT is used for dotnet org agentic workflows. The **Description** is also only used for your own reference. + +Team members providing PATs for workflows should set weekly recurring reminders to regenerate and update their PATs in the PAT pool. With an 8-day expiration, renewal can be done on the same day each week. + +## PAT Pool Secrets + +For a PAT pool that is specific to an environment, PATs can be added to repositories as **Environment Secrets** for the environment created above. _This requires repo admin permission_. + +* **Settings** > + * **Environments** > + * **gh-aw-environment** (or other environment name) > + * **Add environment secret** (or edit your existing secret) + * Enter your secret name of `COPILOT_PAT_{0-9}` and paste in your PAT + +This can also be accomplished using the `gh` CLI, specifying the repo and environment arguments. + +```sh +# Register the PAT secret. This will prompt for you to paste the PAT. +gh secret set "_<0-9>" --repo / --env "gh-aw-environment" +``` + +It's also helpful to record who owns each PAT within the pool. To capture which team member is associated with each PAT, a `_<0-9>_` "sidecar secret" can be added alongside the PAT secret to make the username for the PAT pool entry visible. This sidecar secret must have a non-empty value, but it's never consumed, so any value is sufficient. + +```sh +# Record a sidecar secret that presents who owns this PAT. +gh secret set "_<0-9>_" --body "" --repo / --env "gh-aw-environment" +``` + +## Workflow Output Attribution + +Team members' PATs are _only_ used for the Copilot requests from within the agentic portion of the workflow. All outputs from the workflow use the `github-actions[bot]` account token. Issues, PRs, comments, and all other content generated by the workflow will be attributed to `github-actions[bot]`--not the team member's account or token. + +## Usage + +The [`pat_pool.md`](./pat_pool.md) workflow import defines a custom job with a `pat_number` output. Consuming workflows need two additions to their frontmatter to import this job and use the PAT number to override the `COPILOT_GITHUB_TOKEN` passed to the workflow's agent job. + +```yml +# ############################################################### +# Select a PAT from the pool and override COPILOT_GITHUB_TOKEN. +# Run agentic jobs in the existing `gh-aw-environment` environment. +# +# When org-level billing is available, this will be removed. +# See `shared/pat_pool.README.md` for more information. +# ############################################################### +imports: + - uses: shared/pat_pool.md + with: + environment: gh-aw-environment + +environment: gh-aw-environment + +engine: + id: copilot + env: + COPILOT_GITHUB_TOKEN: | + ${{ case( + needs.pat_pool.outputs.pat_number == '0', secrets.COPILOT_PAT_0, + needs.pat_pool.outputs.pat_number == '1', secrets.COPILOT_PAT_1, + needs.pat_pool.outputs.pat_number == '2', secrets.COPILOT_PAT_2, + needs.pat_pool.outputs.pat_number == '3', secrets.COPILOT_PAT_3, + needs.pat_pool.outputs.pat_number == '4', secrets.COPILOT_PAT_4, + needs.pat_pool.outputs.pat_number == '5', secrets.COPILOT_PAT_5, + needs.pat_pool.outputs.pat_number == '6', secrets.COPILOT_PAT_6, + needs.pat_pool.outputs.pat_number == '7', secrets.COPILOT_PAT_7, + needs.pat_pool.outputs.pat_number == '8', secrets.COPILOT_PAT_8, + needs.pat_pool.outputs.pat_number == '9', secrets.COPILOT_PAT_9, + 'NO COPILOT PAT AVAILABLE') + }} +``` + +The `COPILOT_GITHUB_TOKEN` expression can be collapsed onto a single line if desired. `gh-aw compile` automatically wires `pat_pool` into the activation and agent jobs' `needs:` graph because of the `needs.pat_pool.` references within the `engine.env` property. + +```sh +gh aw compile --schedule-seed / +``` + +### Specifying the environment + +The `environment` must be specified both to the `pat_pool.md` import and to the containing workflow to ensure both jobs access the PAT pool from the same environment. In dotnet/macios, reuse the existing `gh-aw-environment`. + +### Customizing the pool + +The import declares 10 optional inputs (`COPILOT_PAT_0` through `COPILOT_PAT_9`), each defaulting to `secrets.COPILOT_PAT_#` of the matching number. To point a workflow at a different pool of repository secrets, use the parameterized `uses`/`with` form when importing and pass the substitute secrets as the `COPILOT_PAT_#` inputs: + +```yml +imports: + - uses: shared/pat_pool.md + with: + COPILOT_PAT_0: ${{ secrets.MY_TEAM_PAT_0 }} + COPILOT_PAT_1: ${{ secrets.MY_TEAM_PAT_1 }} + # Unspecified inputs default to `secrets.COPILOT_PAT_#` lookups +``` + +The secrets passed via `with:` must match the secrets referenced in the consuming workflow's `case` expression that overrides `COPILOT_GITHUB_TOKEN`--both sides need to agree on which secret backs each `COPILOT_PAT_#` slot. Update the `case` expression accordingly: + +```yml +engine: + id: copilot + env: + COPILOT_GITHUB_TOKEN: ${{ case(needs.pat_pool.outputs.pat_number == '0', secrets.MY_TEAM_PAT_0, needs.pat_pool.outputs.pat_number == '1', secrets.MY_TEAM_PAT_1, ..., 'NO COPILOT PAT AVAILABLE') }} +``` + +This approach aligns with GitHub's documented guidance for [passing secrets][passing-secrets] between workflows, where the `pat_pool` job returns a PAT number and the `case` statement acts as a secret store to look the PAT secret up based on the selected number. + +## Design / Security + +There are several details of this implementation that keep our workflows and repositories safe. + +1. **Secrets adhere to existing trust boundaries.** The pool of PAT secrets is + provided to a dedicated step within the `pat_pool` job. That job runs + after `pre_activation` and contains only the trusted checkout and action + steps--no untrusted context or input is within scope. The + `select-pat-number` action only references the secret values to determine + which are non-empty, filtering the secret numbers to those with values. +1. **The `pat_pool` job emits only a number, never a secret.** Its sole output, + `pat_number`, is the 0-9 index of the selected PAT (or empty when the pool + is empty). The actual secret materializes only later, in the activation + job's `engine.env` mapping, where the `case()` expression resolves the + number to the matching secret. This follows GitHub's guidance for + [passing secrets][passing-secrets] between jobs or workflows, with the + `case` statement acting as a very simple secret store. +1. **The `select-pat-number` action does not require any permissions.** It + reads only the `COPILOT_PAT_#` environment variables passed to it and writes + only to `GITHUB_OUTPUT`. The job that hosts it sets `permissions:` to the + workflow defaults (no elevated scopes). +1. **The implementation uses supported Agentic Workflow extensibility hooks.** + Defining a custom job inside an [imported workflow file][imports] is + supported by `gh aw compile`. gh-aw automatically + wires `pat_pool` into the activation job's `needs:` graph based on the + `needs.pat_pool.outputs.pat_number` references in `engine.env`. The + [secret override][secret-override] capability supplies the `COPILOT_GITHUB_TOKEN` + value via `engine.env` rather than the default secret of the same name. + +Each of the references below contributed to the design and implementation to ensure a secure and reliable design. + +## Known Issues + +The `pat_pool` import integration requires that the workflow's compilation results in a `pre_activation` job. If nothing in your workflow definition produces a `pre_activation` job, a compilation error will be received. + +```text +✗ Failed workflows: + ✗ .md + +.github\workflows\.md:1:1: error: failed to generate YAML: failed to build and validate jobs: job dependency validation failed: job 'pat_pool' depends on non-existent job 'pre_activation' +``` + +To work around this, add `on.permissions: {}` to your workflow, which forces a no-op `pre_activation` job to be generated. + +```yml +on: + permissions: {} +``` + +See: [Activation 'needs' does not incorporate jobs in engine.env expressions (github/gh-aw#30790)](https://github.com/github/gh-aw/issues/30790) + +## References + +- [Agentic Workflows CLI Extension][cli-setup] +- [Agentic Authoring][configure-repo] +- [Authentication][authentication] +- [Agentic Workflow Imports][imports] +- [Custom Steps][steps] +- [Custom Jobs][jobs] +- [Job Outputs][job-outputs] +- [Engine Configuration][engine] +- [Engine Environment Variables][engine-vars] +- [Update agentic engine token handling to use user-provided secrets (github/gh-aw#18017)][secret-override] +- [Case Function in Workflow Expressions][case-expression] +- [Passing a secret between jobs or workflows][passing-secrets] + +[cli-setup]: https://github.github.com/gh-aw/setup/cli/ +[configure-repo]: https://github.github.com/gh-aw/guides/agentic-authoring/#configuring-your-repository +[authentication]: https://github.github.com/gh-aw/reference/auth/ +[create-pat]: https://github.com/settings/personal-access-tokens/new?name=dotnet%20org%20agentic%20workflows&description=GitHub+Agentic+Workflows+-+Copilot+engine+authentication.++Used+for+dotnet+org+workflows.+MUST+be+configured+with+only+Copilot+Requests+permissions+and+user+account+as+resource+owner.+Weekly+expiration+and+required+renewal.&user_copilot_requests=read&expires_in=8 +[imports]: https://github.github.com/gh-aw/reference/imports/ +[steps]: https://github.github.com/gh-aw/reference/frontmatter/#custom-steps-steps +[jobs]: https://github.github.com/gh-aw/reference/frontmatter/#custom-jobs-jobs +[job-outputs]: https://github.github.com/gh-aw/reference/frontmatter/#job-outputs +[engine]: https://github.github.com/gh-aw/reference/frontmatter/#ai-engine-engine +[engine-vars]: https://github.github.com/gh-aw/reference/engines/#engine-environment-variables +[secret-override]: https://github.com/github/gh-aw/pull/18017 +[case-expression]: https://docs.github.com/actions/reference/workflows-and-actions/expressions#case +[passing-secrets]: https://docs.github.com/actions/reference/workflows-and-actions/workflow-commands#example-masking-and-passing-a-secret-between-jobs-or-workflows diff --git a/.github/workflows/shared/pat_pool.md b/.github/workflows/shared/pat_pool.md new file mode 100644 index 000000000000..429151d3e9b3 --- /dev/null +++ b/.github/workflows/shared/pat_pool.md @@ -0,0 +1,121 @@ +--- +description: Agentic workflow import to integrate the Copilot PAT Pool + +jobs: + pat_pool: + environment: ${{ github.aw.import-inputs.environment }} + needs: [pre_activation] + runs-on: ubuntu-slim + outputs: + pat_number: ${{ steps.select-pat-number.outputs.copilot_pat_number }} + steps: + - id: select-pat-number + name: Select Copilot token from pool + env: + COPILOT_PAT_0: ${{ github.aw.import-inputs.COPILOT_PAT_0 }} + COPILOT_PAT_1: ${{ github.aw.import-inputs.COPILOT_PAT_1 }} + COPILOT_PAT_2: ${{ github.aw.import-inputs.COPILOT_PAT_2 }} + COPILOT_PAT_3: ${{ github.aw.import-inputs.COPILOT_PAT_3 }} + COPILOT_PAT_4: ${{ github.aw.import-inputs.COPILOT_PAT_4 }} + COPILOT_PAT_5: ${{ github.aw.import-inputs.COPILOT_PAT_5 }} + COPILOT_PAT_6: ${{ github.aw.import-inputs.COPILOT_PAT_6 }} + COPILOT_PAT_7: ${{ github.aw.import-inputs.COPILOT_PAT_7 }} + COPILOT_PAT_8: ${{ github.aw.import-inputs.COPILOT_PAT_8 }} + COPILOT_PAT_9: ${{ github.aw.import-inputs.COPILOT_PAT_9 }} + RANDOM_SEED: ${{ github.aw.import-inputs.random_seed }} + shell: bash + run: | + # Collect pool entries with non-empty secrets from COPILOT_PAT_0..COPILOT_PAT_9. + PAT_NUMBERS=() + POOL_INDICATORS=(➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖) + + for i in $(seq 0 9); do + var="COPILOT_PAT_${i}" + val="${!var}" + if [ -n "$val" ]; then + PAT_NUMBERS+=(${i}) + POOL_INDICATORS[${i}]="🟪" + fi + done + + # If none of the entries in the pool have values, emit a warning + # and do not set an output value. The consumer can fall back to + # using COPILOT_GITHUB_TOKEN. + if [ ${#PAT_NUMBERS[@]} -eq 0 ]; then + warning_message="::warning::None of the PAT pool entries had values " + warning_message+="(checked COPILOT_PAT_0 through COPILOT_PAT_9)" + echo "$warning_message" + exit 0 + fi + + # Select a random index using the seed if specified + if [ -n "$RANDOM_SEED" ]; then + RANDOM=$RANDOM_SEED + fi + + PAT_INDEX=$(( RANDOM % ${#PAT_NUMBERS[@]} )) + PAT_NUMBER="${PAT_NUMBERS[$PAT_INDEX]}" + POOL_INDICATORS[${PAT_NUMBER}]="✅" + + echo "Pool size: ${#PAT_NUMBERS[@]}" + echo "Selected PAT number ${PAT_NUMBER} (index: ${PAT_INDEX})" + + # Emit a markdown table of the pool entries to the step summary + echo "|0|1|2|3|4|5|6|7|8|9|" >> "$GITHUB_STEP_SUMMARY" + echo "|-|-|-|-|-|-|-|-|-|-|" >> "$GITHUB_STEP_SUMMARY" + (IFS='|'; printf '|%s' "${POOL_INDICATORS[@]}"; printf '|\n') >> "$GITHUB_STEP_SUMMARY" + + # Set the PAT number as the output + echo "copilot_pat_number=${PAT_NUMBER}" >> "$GITHUB_OUTPUT" + +import-schema: + environment: + type: string + required: true + COPILOT_PAT_0: + type: string + required: false + default: ${{ secrets.COPILOT_PAT_0 }} + COPILOT_PAT_1: + type: string + required: false + default: ${{ secrets.COPILOT_PAT_1 }} + COPILOT_PAT_2: + type: string + required: false + default: ${{ secrets.COPILOT_PAT_2 }} + COPILOT_PAT_3: + type: string + required: false + default: ${{ secrets.COPILOT_PAT_3 }} + COPILOT_PAT_4: + type: string + required: false + default: ${{ secrets.COPILOT_PAT_4 }} + COPILOT_PAT_5: + type: string + required: false + default: ${{ secrets.COPILOT_PAT_5 }} + COPILOT_PAT_6: + type: string + required: false + default: ${{ secrets.COPILOT_PAT_6 }} + COPILOT_PAT_7: + type: string + required: false + default: ${{ secrets.COPILOT_PAT_7 }} + COPILOT_PAT_8: + type: string + required: false + default: ${{ secrets.COPILOT_PAT_8 }} + COPILOT_PAT_9: + type: string + required: false + default: ${{ secrets.COPILOT_PAT_9 }} + random_seed: + type: number + required: false + description: >- + A seed number to use for the random PAT number selection, + for deterministic selection if needed. +--- diff --git a/.github/workflows/validate-pat-pool.yml b/.github/workflows/validate-pat-pool.yml new file mode 100644 index 000000000000..0ad4599161a6 --- /dev/null +++ b/.github/workflows/validate-pat-pool.yml @@ -0,0 +1,228 @@ +name: Validate PAT Pool + +on: + schedule: + - cron: '17 2 * * *' # Daily at ~2:17 AM UTC (off-round to reduce contention) + workflow_dispatch: + +# No GitHub API permissions needed +permissions: {} + +jobs: + validate: + environment: gh-aw-environment + name: Validate Copilot PAT Pool + if: ${{ github.event_name == 'workflow_dispatch' || !github.event.repository.fork }} + runs-on: ubuntu-latest + env: + VALIDATE_PAT: | + if [ -z "$COPILOT_GITHUB_TOKEN" ]; then echo "status=empty" >> "$GITHUB_OUTPUT"; exit 0; fi + set +e; timeout 30 copilot --prompt "Say OK" --available-tools="" --silent --effort=low; rc=$?; set -e + if [ $rc -eq 0 ]; then echo "status=valid" >> "$GITHUB_OUTPUT" + elif [ $rc -eq 124 ]; then echo "status=unknown" >> "$GITHUB_OUTPUT" + else echo "status=invalid" >> "$GITHUB_OUTPUT"; fi + steps: + - name: Setup gh-aw scripts + uses: github/gh-aw-actions/setup@8c7d04ebf1ece56cd381446125da3e0f6896294a # v0.80.9 + with: + destination: ${{ runner.temp }}/gh-aw/actions + + - name: Install Copilot CLI + run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh" 1.0.21 + + # ----------------------------------------------------------- + # Make a Copilot CLI request with each PAT. + # Each step sets COPILOT_GITHUB_TOKEN directly from the secret + # via env: so the value never passes through shell variables. + # ----------------------------------------------------------- + + - name: Validate COPILOT_PAT_0 + id: pat0 + continue-on-error: true + env: + COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_PAT_0 }} + shell: bash + run: | + # copilot --prompt "Say OK" + eval "$VALIDATE_PAT" + + - name: Validate COPILOT_PAT_1 + id: pat1 + continue-on-error: true + env: + COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_PAT_1 }} + shell: bash + run: | + # copilot --prompt "Say OK" + eval "$VALIDATE_PAT" + + - name: Validate COPILOT_PAT_2 + id: pat2 + continue-on-error: true + env: + COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_PAT_2 }} + shell: bash + run: | + # copilot --prompt "Say OK" + eval "$VALIDATE_PAT" + + - name: Validate COPILOT_PAT_3 + id: pat3 + continue-on-error: true + env: + COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_PAT_3 }} + shell: bash + run: | + # copilot --prompt "Say OK" + eval "$VALIDATE_PAT" + + - name: Validate COPILOT_PAT_4 + id: pat4 + continue-on-error: true + env: + COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_PAT_4 }} + shell: bash + run: | + # copilot --prompt "Say OK" + eval "$VALIDATE_PAT" + + - name: Validate COPILOT_PAT_5 + id: pat5 + continue-on-error: true + env: + COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_PAT_5 }} + shell: bash + run: | + # copilot --prompt "Say OK" + eval "$VALIDATE_PAT" + + - name: Validate COPILOT_PAT_6 + id: pat6 + continue-on-error: true + env: + COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_PAT_6 }} + shell: bash + run: | + # copilot --prompt "Say OK" + eval "$VALIDATE_PAT" + + - name: Validate COPILOT_PAT_7 + id: pat7 + continue-on-error: true + env: + COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_PAT_7 }} + shell: bash + run: | + # copilot --prompt "Say OK" + eval "$VALIDATE_PAT" + + - name: Validate COPILOT_PAT_8 + id: pat8 + continue-on-error: true + env: + COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_PAT_8 }} + shell: bash + run: | + # copilot --prompt "Say OK" + eval "$VALIDATE_PAT" + + - name: Validate COPILOT_PAT_9 + id: pat9 + continue-on-error: true + env: + COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_PAT_9 }} + shell: bash + run: | + # copilot --prompt "Say OK" + eval "$VALIDATE_PAT" + + # ----------------------------------------------------------- + # Collect results and build the step summary + # ----------------------------------------------------------- + + - name: Build summary + if: always() + env: + S0: ${{ steps.pat0.outputs.status }} + S1: ${{ steps.pat1.outputs.status }} + S2: ${{ steps.pat2.outputs.status }} + S3: ${{ steps.pat3.outputs.status }} + S4: ${{ steps.pat4.outputs.status }} + S5: ${{ steps.pat5.outputs.status }} + S6: ${{ steps.pat6.outputs.status }} + S7: ${{ steps.pat7.outputs.status }} + S8: ${{ steps.pat8.outputs.status }} + S9: ${{ steps.pat9.outputs.status }} + shell: bash + run: | + # Build summary + statuses=("$S0" "$S1" "$S2" "$S3" "$S4" "$S5" "$S6" "$S7" "$S8" "$S9") + + valid=0; empty=0; invalid=0; unknown=0 + for s in "${statuses[@]}"; do + case "$s" in + valid) valid=$((valid + 1)) ;; + empty) empty=$((empty + 1)) ;; + invalid) invalid=$((invalid + 1)) ;; + *) unknown=$((unknown + 1)) ;; + esac + done + + { + if [ $invalid -eq 0 ] && [ $unknown -eq 0 ] && [ $valid -gt 0 ]; then + echo "> [!NOTE]" + echo "> **PAT pool is valid** — no action needed" + echo "" + fi + + if [ $invalid -eq 0 ] && [ $unknown -eq 0 ] && [ $valid -eq 0 ]; then + echo "> [!WARNING]" + echo "> **Empty PAT pool** — agentic workflows will fall back to the default \`COPILOT_GITHUB_TOKEN\`." + echo "" + fi + + if [ $invalid -gt 0 ]; then + echo "> [!CAUTION]" + echo "> **Invalid PAT pool** — agentic workflows selecting an invalid PAT will fail." + echo "" + fi + + if [ $unknown -gt 0 ]; then + echo "> [!WARNING]" + echo "> **PAT pool not verified** due to transient errors — re-run the workflow to retry." + echo "" + fi + + echo "☑️ Valid: ${valid} • ⏹️ Empty: ${empty} • ❌ Invalid: ${invalid} • ❓ Unknown: ${unknown}" + echo "" + + echo "| PAT Secret | Status |" + echo "|:-----------|:-------|" + + for i in $(seq 0 9); do + case "${statuses[$i]}" in + valid) symbol="☑️ Valid" ;; + empty) symbol="⏹️ Empty" ;; + invalid) symbol="❌ Invalid" ;; + *) symbol="❓ Unknown" ;; + esac + echo "| \`COPILOT_PAT_${i}\` | ${symbol} |" + done + } >> "$GITHUB_STEP_SUMMARY" + + if [ $invalid -gt 0 ]; then + echo "::error::${invalid} PAT(s) in the pool are invalid and need to be removed or replaced" + exit 1 + fi + + if [ $unknown -gt 0 ]; then + echo "::error::${unknown} PAT(s) could not be verified due to transient errors — re-run to retry" + exit 1 + fi + + if [ $valid -eq 0 ]; then + echo "::error::The PAT pool is empty — no PATs are available" + exit 1 + fi + + echo "PAT pool validation passed: ${valid} valid PAT(s)" From 304002ec06c8477ecd253eedf9fb5882c1341eba Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2026 12:50:10 +0200 Subject: [PATCH 13/23] [main] Update dependencies from dotnet/xharness (#25892) 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](https://github.com/dotnet/xharness/commit/5d58a231a8a5e322bdd27da674a7059e4d2e7220) - **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]: https://github.com/dotnet/xharness/compare/a0534aec8f...5d58a231a8 --- eng/Version.Details.props | 2 +- eng/Version.Details.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/Version.Details.props b/eng/Version.Details.props index 889ed373e655..7d493a249b96 100644 --- a/eng/Version.Details.props +++ b/eng/Version.Details.props @@ -30,7 +30,7 @@ This file should be imported by eng/Versions.props 18.5.9227 26.5.9004 - 11.0.0-prerelease.26319.2 + 11.0.0-prerelease.26330.1 18.0.9617 18.0.9617 diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 2776d344679b..b81ef40458e3 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -107,9 +107,9 @@ https://github.com/dotnet/dotnet 0cf89a94a121c7e768174ad0ed0cdb8ad3bbf8e7 - + https://github.com/dotnet/xharness - a0534aec8f776d258392f0266cbdb9cc97e1dd98 + 5d58a231a8a5e322bdd27da674a7059e4d2e7220 https://github.com/dotnet/dotnet From 1bcbffbe07a932258d187e8e5de14188f3941824 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Wed, 1 Jul 2026 13:05:00 +0200 Subject: [PATCH 14/23] [runtime] Read debugging environment variables on the main thread to 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> --- runtime/monotouch-debug.h | 1 + runtime/monotouch-debug.m | 88 +++++++++++++++++++++------ runtime/monotouch-main.m | 1 + tests/dotnet/UnitTests/ProjectTest.cs | 6 +- 4 files changed, 73 insertions(+), 23 deletions(-) diff --git a/runtime/monotouch-debug.h b/runtime/monotouch-debug.h index 9c1b5b67da76..a84b2caa26ed 100644 --- a/runtime/monotouch-debug.h +++ b/runtime/monotouch-debug.h @@ -19,6 +19,7 @@ extern "C" { #endif void monotouch_start_launch_timer (); +void xamarin_capture_debugging_settings (); void monotouch_configure_debugging (); void monotouch_start_debugging (); void monotouch_start_profiling (); diff --git a/runtime/monotouch-debug.m b/runtime/monotouch-debug.m index 4dafa7b9db14..f1e505957e01 100644 --- a/runtime/monotouch-debug.m +++ b/runtime/monotouch-debug.m @@ -243,6 +243,48 @@ void monotouch_start_launch_timer () }]; } +// These hold the values of the environment variables captured in +// xamarin_capture_debugging_settings, so that monotouch_configure_debugging can read +// them without having to access the environment from a separate thread. +static char *captured_debug_mode = NULL; +static char *captured_debug_port = NULL; +static char *captured_debug_hosts = NULL; +static char *captured_debug_connect_timeout = NULL; + +void xamarin_capture_debugging_settings () +{ + // Read (and unset) the environment variables monotouch_configure_debugging needs here, + // on the main thread, before the debugging thread has been started. This avoids a race + // condition: monotouch_configure_debugging runs on the debugging thread, so if it both read + // and unset these environment variables there, it could race with code reading the + // environment on the main thread (such as managed code in the app's Main method). + char *evar; + + evar = getenv ("__XAMARIN_DEBUG_MODE__"); + if (evar != NULL) { + captured_debug_mode = strdup (evar); + unsetenv ("__XAMARIN_DEBUG_MODE__"); + } + + evar = getenv ("__XAMARIN_DEBUG_PORT__"); + if (evar != NULL) { + captured_debug_port = strdup (evar); + unsetenv ("__XAMARIN_DEBUG_PORT__"); + } + + evar = getenv ("__XAMARIN_DEBUG_HOSTS__"); + if (evar != NULL) { + captured_debug_hosts = strdup (evar); + unsetenv ("__XAMARIN_DEBUG_HOSTS__"); + } + + evar = getenv ("__XAMARIN_DEBUG_CONNECT_TIMEOUT__"); + if (evar != NULL) { + captured_debug_connect_timeout = strdup (evar); + unsetenv ("__XAMARIN_DEBUG_CONNECT_TIMEOUT__"); + } +} + void monotouch_configure_debugging () { xamarin_track_finished_launching (); @@ -259,16 +301,26 @@ void monotouch_configure_debugging () NSString *monodevelop_host; if (!strcmp (connection_mode, "default")) { - char *evar = getenv ("__XAMARIN_DEBUG_MODE__"); - if (evar && *evar) { - connection_mode = evar; + if (captured_debug_mode && *captured_debug_mode) { + // Transfer ownership of the captured string to connection_mode, which lives + // for the rest of the process' lifetime. + connection_mode = captured_debug_mode; + captured_debug_mode = NULL; LOG (PRODUCT ": Found debug mode %s in environment variables\n", connection_mode); - unsetenv ("__XAMARIN_DEBUG_MODE__"); } } - + // Free the captured debug mode if it wasn't consumed above. + free (captured_debug_mode); + captured_debug_mode = NULL; + if (!strcmp (connection_mode, "none")) { - // nothing to do + // nothing to do, but free the captured values first to avoid leaking them. + free (captured_debug_port); + captured_debug_port = NULL; + free (captured_debug_hosts); + captured_debug_hosts = NULL; + free (captured_debug_connect_timeout); + captured_debug_connect_timeout = NULL; return; } @@ -297,18 +349,17 @@ void monotouch_configure_debugging () LOG (PRODUCT ": Added host from settings to look for the IDE: %s\n", [monodevelop_host UTF8String]); } - char *evar = getenv ("__XAMARIN_DEBUG_PORT__"); - if (evar && *evar) { + if (captured_debug_port && *captured_debug_port) { if (monodevelop_port == -1) { - monodevelop_port = strtol (evar, NULL, 10); + monodevelop_port = strtol (captured_debug_port, NULL, 10); LOG (PRODUCT ": Found port %i in environment variables\n", monodevelop_port); } - unsetenv ("__XAMARIN_DEBUG_PORT__"); } + free (captured_debug_port); + captured_debug_port = NULL; - evar = getenv ("__XAMARIN_DEBUG_HOSTS__"); - if (evar && *evar) { - NSArray *ips = [[NSString stringWithUTF8String:evar] componentsSeparatedByString:@";"]; + if (captured_debug_hosts && *captured_debug_hosts) { + NSArray *ips = [[NSString stringWithUTF8String:captured_debug_hosts] componentsSeparatedByString:@";"]; for (unsigned int i = 0; i < [ips count]; i++) { NSString *ip = [ips objectAtIndex:i]; if (![hosts containsObject:ip]) { @@ -316,17 +367,18 @@ void monotouch_configure_debugging () LOG (PRODUCT ": Found host %s in environment variables\n", [ip UTF8String]); } } - unsetenv ("__XAMARIN_DEBUG_HOSTS__"); } + free (captured_debug_hosts); + captured_debug_hosts = NULL; - evar = getenv ("__XAMARIN_DEBUG_CONNECT_TIMEOUT__"); - if (evar && *evar) { + if (captured_debug_connect_timeout && *captured_debug_connect_timeout) { if (sdb_timeout_time == -1) { - sdb_timeout_time = strtol (evar, NULL, 10); + sdb_timeout_time = strtol (captured_debug_connect_timeout, NULL, 10); LOG (PRODUCT ": Found connect timeout %i in environment variables\n", sdb_timeout_time); } - unsetenv ("__XAMARIN_DEBUG_CONNECT_TIMEOUT__"); } + free (captured_debug_connect_timeout); + captured_debug_connect_timeout = NULL; #if MONOTOUCH && defined (__x86_64__) // Try to read shared memory as well diff --git a/runtime/monotouch-main.m b/runtime/monotouch-main.m index 933c1c03d344..8192a7739f35 100644 --- a/runtime/monotouch-main.m +++ b/runtime/monotouch-main.m @@ -399,6 +399,7 @@ - (void) memoryWarning: (NSNotification *) sender } #ifdef DEBUG + xamarin_capture_debugging_settings (); xamarin_initialize_cocoa_threads (monotouch_configure_debugging); #else xamarin_initialize_cocoa_threads (NULL); diff --git a/tests/dotnet/UnitTests/ProjectTest.cs b/tests/dotnet/UnitTests/ProjectTest.cs index 64d3af42e5d3..f57e357ee99c 100644 --- a/tests/dotnet/UnitTests/ProjectTest.cs +++ b/tests/dotnet/UnitTests/ProjectTest.cs @@ -3932,11 +3932,7 @@ public void Run (ApplePlatform platform, bool dotnetRunEnvironmentSupport) Assert.Multiple (() => { var envContents = File.ReadAllText (tmpfile); var env = File.ReadAllLines (tmpfile).Select (v => (Name: v [0..v.IndexOf ('=')], Value: v [(v.IndexOf ('=') + 1)..])).ToDictionary (v => v.Name, v => v.Value); - if (platform == ApplePlatform.MacOSX) { - Assert.That (envContents, Does.Contain ("__XAMARIN_DEBUG_"), "Xamarin debug environment variables should not leak to app"); - } else { - Assert.That (envContents, Does.Not.Contain ("__XAMARIN_DEBUG_"), "Xamarin debug environment variables should not leak to app"); - } + Assert.That (envContents, Does.Not.Contain ("__XAMARIN_DEBUG_"), "Xamarin debug environment variables should not leak to app"); Assert.That (env.Keys, Does.Contain ("VARIABLE"), "VARIABLE"); Assert.That (env ["VARIABLE"], Is.EqualTo ("VALUE"), "VALUE"); From 96a868893c44f9d4edd3841ddc23fcd2f7e4b3b4 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Wed, 1 Jul 2026 13:05:43 +0200 Subject: [PATCH 15/23] [msbuild] Fix app crash at launch when _ExportSymbolsExplicitly=false. Fixes #25491 (#25494) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 `) 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 https://github.com/dotnet/macios/issues/25491 🤖 Pull request created by Copilot --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Rolf Bjarne Kvinge --- .../Xamarin.MacDev.Tasks/Tasks/SymbolStrip.cs | 16 ++++++++++++- msbuild/Xamarin.Shared/Xamarin.Shared.targets | 4 +++- tests/dotnet/UnitTests/ProjectTest.cs | 23 +++++++++++++++++++ 3 files changed, 41 insertions(+), 2 deletions(-) diff --git a/msbuild/Xamarin.MacDev.Tasks/Tasks/SymbolStrip.cs b/msbuild/Xamarin.MacDev.Tasks/Tasks/SymbolStrip.cs index 759d98fb8121..7b7db8de10f0 100644 --- a/msbuild/Xamarin.MacDev.Tasks/Tasks/SymbolStrip.cs +++ b/msbuild/Xamarin.MacDev.Tasks/Tasks/SymbolStrip.cs @@ -23,6 +23,10 @@ public class SymbolStrip : XamarinParallelTask, ITaskCallback { // This can also be specified as metadata on the Executable item (as 'SymbolFile') public string SymbolFile { get; set; } = string.Empty; + // The local path to the symbol file (used to transfer it to the remote Mac). + // This can also be specified as metadata on the Executable item (as 'SymbolFileLocalPath') + public string SymbolFileLocalPath { get; set; } = string.Empty; + // This can also be specified as metadata on the Executable item (as 'Kind') public string Kind { get; set; } = string.Empty; #endregion @@ -78,6 +82,16 @@ public override bool Execute () public bool ShouldCreateOutputFile (ITaskItem item) => false; - public IEnumerable GetAdditionalItemsToBeCopied () => Enumerable.Empty (); + public IEnumerable GetAdditionalItemsToBeCopied () + { + if (!string.IsNullOrEmpty (SymbolFileLocalPath)) + yield return new Microsoft.Build.Utilities.TaskItem (SymbolFileLocalPath); + + foreach (var item in Executable) { + var symbolFileLocalPath = item.GetMetadata ("SymbolFileLocalPath"); + if (!string.IsNullOrEmpty (symbolFileLocalPath)) + yield return new Microsoft.Build.Utilities.TaskItem (symbolFileLocalPath); + } + } } } diff --git a/msbuild/Xamarin.Shared/Xamarin.Shared.targets b/msbuild/Xamarin.Shared/Xamarin.Shared.targets index 74747fb67620..5dd2ac01dfc4 100644 --- a/msbuild/Xamarin.Shared/Xamarin.Shared.targets +++ b/msbuild/Xamarin.Shared/Xamarin.Shared.targets @@ -3030,7 +3030,8 @@ Copyright (C) 2018 Microsoft. All rights reserved. %(Filename).dSYM <_PostProcessingItem Include="$([System.IO.Path]::GetFileName('$(AppBundleDir)'))/$(_NativeExecutableRelativePath)" Condition="'$(IsWatchApp)' != 'true'"> - $(_SymbolsListFullPath) + $(_SymbolsListFullPath) + $(_MtouchSymbolsList) $(_AppBundleName)$(AppBundleExtension).dSYM $(IsXpcService) $(IsAppExtension) @@ -3202,6 +3203,7 @@ Copyright (C) 2018 Microsoft. All rights reserved. MaxDegreeOfParallelism="$(SymbolStripMaxDegreeOfParallelism)" StripPath="$(StripPath)" SymbolFile="%(_NativeStripItems.SymbolFile)" + SymbolFileLocalPath="%(_NativeStripItems.SymbolFileLocalPath)" /> diff --git a/tests/dotnet/UnitTests/ProjectTest.cs b/tests/dotnet/UnitTests/ProjectTest.cs index f57e357ee99c..65441ae6d727 100644 --- a/tests/dotnet/UnitTests/ProjectTest.cs +++ b/tests/dotnet/UnitTests/ProjectTest.cs @@ -2811,6 +2811,29 @@ public void StrippedRuntimeIdentifiers (ApplePlatform platform, string runtimeId Assert.That (symbols, Does.Contain ("_xamarin_release_managed_ref"), "_xamarin_release_managed_ref"); } + [Test] + [TestCase (ApplePlatform.MacOSX, "osx-arm64;osx-x64")] + [TestCase (ApplePlatform.MacCatalyst, "maccatalyst-x64;")] + public void StrippedWithExportSymbolsExplicitlyFalse (ApplePlatform platform, string runtimeIdentifiers) + { + var project = "MySimpleApp"; + Configuration.IgnoreIfIgnoredPlatform (platform); + Configuration.AssertRuntimeIdentifiersAvailable (platform, runtimeIdentifiers); + + var project_path = GetProjectPath (project, runtimeIdentifiers: runtimeIdentifiers, platform: platform, out var appPath); + Clean (project_path); + var properties = GetDefaultProperties (runtimeIdentifiers); + properties ["NoSymbolStrip"] = "false"; + properties ["_ExportSymbolsExplicitly"] = "false"; + DotNet.AssertBuild (project_path, properties); + + var appExecutable = GetNativeExecutable (platform, appPath); + ExecuteWithMagicWordAndAssert (platform, runtimeIdentifiers, appExecutable); + + var symbols = Configuration.GetNativeSymbols (appExecutable); + Assert.That (symbols, Does.Contain ("_xamarin_release_managed_ref"), "_xamarin_release_managed_ref"); + } + [Test] [TestCase (ApplePlatform.iOS, "ios-arm64;", "iOS")] [TestCase (ApplePlatform.MacOSX, "osx-arm64;osx-x64", "macOS")] From cd407addaf6f87478aff3be20cc345902c2ba6d5 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Wed, 1 Jul 2026 15:14:49 +0200 Subject: [PATCH 16/23] =?UTF-8?q?[test=E2=88=AB]=20Fix=20flaky=20SecProtoc?= =?UTF-8?q?olMetadataTest.TlsDefaults=20--=20ServerName=20is=20null.=20Fix?= =?UTF-8?q?es=20#25877=20(#25885)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 https://github.com/dotnet/macios/issues/25877 🤖 Pull request created by Copilot --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- tests/monotouch-test/Security/SecProtocolMetadataTest.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/monotouch-test/Security/SecProtocolMetadataTest.cs b/tests/monotouch-test/Security/SecProtocolMetadataTest.cs index ce774ed5e85c..fcd9b57c9110 100644 --- a/tests/monotouch-test/Security/SecProtocolMetadataTest.cs +++ b/tests/monotouch-test/Security/SecProtocolMetadataTest.cs @@ -81,6 +81,8 @@ public void TlsDefaults () Assert.That (s.NegotiatedTlsProtocolVersion, Is.EqualTo (TlsProtocolVersion.Tls12).Or.EqualTo (TlsProtocolVersion.Tls13), "NegotiatedTlsProtocolVersion"); // we want to test the binding/API - not the exact value which can vary depending on the negotiation between the client (OS) and server... Assert.That (s.NegotiatedTlsCipherSuite, Is.Not.EqualTo (0), "NegotiatedTlsCipherSuite"); + if (s.ServerName is null) + TestRuntime.IgnoreInCI ("ServerName is null - likely network proxy interference"); Assert.That (s.ServerName, Is.EqualTo ("www.microsoft.com"), "ServerName"); // we don't have a TLS-PSK enabled server to test this Assert.That (s.AccessPreSharedKeys ((psk, pskId) => { }), Is.False, "AccessPreSharedKeys"); From fbae9d881c20ebb3036b56832dc5f5096ecf337b Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Wed, 1 Jul 2026 16:06:58 +0200 Subject: [PATCH 17/23] [tests] Mark tests inconclusive on premature response termination. Fixes #25873 (#25875) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 https://github.com/dotnet/macios/issues/25873 --- 🤖 Pull request created by Copilot --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- tests/common/TestRuntime.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/common/TestRuntime.cs b/tests/common/TestRuntime.cs index f7a8394faf62..61bdd2d9c62b 100644 --- a/tests/common/TestRuntime.cs +++ b/tests/common/TestRuntime.cs @@ -1624,6 +1624,7 @@ public static void IgnoreInCIIfBadNetwork (Exception? ex) IgnoreInCIIfSshConnectionError (ex); IgnoreInCIIfTimedOut (ex); IgnoreInCIIfHttpClientTimedOut (ex); + IgnoreInCIIfResponseEndedPrematurely (ex); } public static void IgnoreInCIIfBadNetwork (NSError? error) @@ -1700,6 +1701,15 @@ public static void IgnoreInCIIfTimedOut (Exception ex) } } + public static void IgnoreInCIIfResponseEndedPrematurely (Exception ex) + { + var httpIoEx = FindInner (ex); + if (httpIoEx is null) + return; + + IgnoreInCI ($"Ignored due to premature response termination: {httpIoEx.Message}"); + } + public static void IgnoreInCIIfForbidden (Exception ex) { IgnoreInCIfHttpStatusCodes (ex, HttpStatusCode.BadGateway, HttpStatusCode.GatewayTimeout, HttpStatusCode.ServiceUnavailable, HttpStatusCode.Forbidden); From aef785108083ce13ca2fca5663e7b9a67642abf8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2026 18:37:30 +0200 Subject: [PATCH 18/23] Bump zizmorcore/zizmor-action from 0.5.6 to 0.5.7 (#25898) Bumps [zizmorcore/zizmor-action](https://github.com/zizmorcore/zizmor-action) from 0.5.6 to 0.5.7. --- .github/workflows/zizmor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index cbcfa25496fd..5cac1fa13f00 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -29,6 +29,6 @@ jobs: echo "files=$files" >> "$GITHUB_OUTPUT" - name: Run zizmor - uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6 + uses: zizmorcore/zizmor-action@192e21d79ab29983730a13d1382995c2307fbcaa # v0.5.7 with: inputs: ${{ steps.find-files.outputs.files }} From 3893969bf4c7d295bdb101a0efa018970eccf18a Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Wed, 1 Jul 2026 13:55:15 +0200 Subject: [PATCH 19/23] [xtro] Update ignore files. --- .../MacCatalyst-AVFoundation.ignore | 4 ++++ .../MacCatalyst-Foundation.ignore | 1 - .../MacCatalyst-ReplayKit.ignore | 4 ---- .../common-MultipeerConnectivity.ignore | 3 --- .../api-annotations-dotnet/common-ReplayKit.ignore | 14 -------------- .../{iOS-ARKit.ignore => iOS-ARKitCore.ignore} | 3 --- .../api-annotations-dotnet/iOS-AVFoundation.ignore | 6 ++++++ .../api-annotations-dotnet/iOS-Foundation.ignore | 1 - .../api-annotations-dotnet/iOS-ReplayKit.ignore | 4 ---- .../macOS-AVFoundation.ignore | 2 ++ .../api-annotations-dotnet/macOS-ReplayKit.ignore | 2 -- .../tvOS-AVFoundation.ignore | 6 ++++++ .../api-annotations-dotnet/tvOS-Foundation.ignore | 1 - .../api-annotations-dotnet/tvOS-ReplayKit.ignore | 2 -- 14 files changed, 18 insertions(+), 35 deletions(-) delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ReplayKit.ignore delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/common-MultipeerConnectivity.ignore delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/common-ReplayKit.ignore rename tests/xtro-sharpie/api-annotations-dotnet/{iOS-ARKit.ignore => iOS-ARKitCore.ignore} (69%) delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-ReplayKit.ignore diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AVFoundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AVFoundation.ignore index a35c2b5ea741..86a41247218f 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AVFoundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AVFoundation.ignore @@ -41,3 +41,7 @@ !missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaCharacteristic(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 !missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaType(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 !missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaType(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAudioSession::Activate(AVFoundation.AVAudioSessionActivationOptions,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAudioSession::Deactivate(AVFoundation.AVAudioSessionDeactivationOptions,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVPlayerItem::FetchAccessLog(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVPlayerItem::FetchErrorLog(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore index 5a95299307ec..456945bdd632 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore @@ -481,7 +481,6 @@ !missing-selector! NSAppleEventDescriptor::initListDescriptor not bound !missing-selector! NSAppleEventDescriptor::initRecordDescriptor not bound -!missing-null-allowed! 'System.Void Foundation.NSBundleResourceRequest::BeginAccessingResources(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 !missing-null-allowed! 'System.Void Foundation.NSFileManager::GetFileProviderServices(Foundation.NSUrl,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 !missing-null-allowed! 'System.Void Foundation.NSFileManager::GetFileProviderServices(Foundation.NSUrl,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 !missing-null-allowed! 'System.Void Foundation.NSFilePresenter::AccommodatePresentedItemEviction(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ReplayKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ReplayKit.ignore deleted file mode 100644 index 6229b58b47d1..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ReplayKit.ignore +++ /dev/null @@ -1,4 +0,0 @@ -!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 -!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 -!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 -!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-MultipeerConnectivity.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-MultipeerConnectivity.ignore deleted file mode 100644 index 53210f28762b..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-MultipeerConnectivity.ignore +++ /dev/null @@ -1,3 +0,0 @@ - -# results from initial block parameter nullability analysis -!missing-null-allowed! 'Foundation.NSProgress MultipeerConnectivity.MCSession::SendResource(Foundation.NSUrl,System.String,MultipeerConnectivity.MCPeerID,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-ReplayKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-ReplayKit.ignore deleted file mode 100644 index 6665409550f5..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-ReplayKit.ignore +++ /dev/null @@ -1,14 +0,0 @@ - -# results from initial block parameter nullability analysis -!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastController::FinishBroadcast(System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 -!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastController::StartBroadcast(System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 -!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::ExportClip(Foundation.NSUrl,System.Double,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 -!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StartCapture(System.Action`3,System.Action`1)' is missing a '?' on parameter 'captureHandler' block parameter #2 -!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StartCapture(System.Action`3,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 -!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StartClipBuffering(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 -!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StartRecording(System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 -!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StopCapture(System.Action`1)' is missing a '?' on parameter 'handler' block parameter #0 -!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StopClipBuffering(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 -!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StopRecording(Foundation.NSUrl,System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 -!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StopRecording(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 -!missing-null-allowed! 'System.Void ReplayKit.RPScreenRecorder::StopRecording(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-ARKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-ARKitCore.ignore similarity index 69% rename from tests/xtro-sharpie/api-annotations-dotnet/iOS-ARKit.ignore rename to tests/xtro-sharpie/api-annotations-dotnet/iOS-ARKitCore.ignore index 82c35c238f35..de62b09b3ac4 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-ARKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-ARKitCore.ignore @@ -1,10 +1,7 @@ -# results from initial block parameter nullability analysis !missing-null-allowed! 'System.Void ARKit.ARGeoTrackingConfiguration::CheckAvailability(CoreLocation.CLLocationCoordinate2D,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 !missing-null-allowed! 'System.Void ARKit.ARGeoTrackingConfiguration::CheckAvailability(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 !missing-null-allowed! 'System.Void ARKit.ARReferenceImage::Validate(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 !missing-null-allowed! 'System.Void ARKit.ARSession::CaptureHighResolutionFrame(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 !missing-null-allowed! 'System.Void ARKit.ARSession::CaptureHighResolutionFrame(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 -!missing-null-allowed! 'System.Void ARKit.ARSession::CreateReferenceObject(CoreGraphics.NMatrix4,CoreGraphics.NVector3,CoreGraphics.NVector3,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 -!missing-null-allowed! 'System.Void ARKit.ARSession::CreateReferenceObject(CoreGraphics.NMatrix4,CoreGraphics.NVector3,CoreGraphics.NVector3,System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 !missing-null-allowed! 'System.Void ARKit.ARSession::GetCurrentWorldMap(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #0 !missing-null-allowed! 'System.Void ARKit.ARSession::GetCurrentWorldMap(System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-AVFoundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-AVFoundation.ignore index 1694891a208b..c0813cebdb4d 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-AVFoundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-AVFoundation.ignore @@ -33,3 +33,9 @@ !missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaCharacteristic(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 !missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaType(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 !missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaType(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAudioSession::Activate(AVFoundation.AVAudioSessionActivationOptions,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAudioSession::Deactivate(AVFoundation.AVAudioSessionDeactivationOptions,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVContentKeyRequest::MakeOptionalStreamingContentKeyRequestData(Foundation.NSData,Foundation.NSData,Foundation.NSDictionary`2,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVContentKeyRequest::MakeOptionalStreamingContentKeyRequestData(Foundation.NSData,Foundation.NSData,Foundation.NSDictionary`2,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVPlayerItem::FetchAccessLog(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVPlayerItem::FetchErrorLog(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore index f172157cb958..99ac20ca21ed 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore @@ -10,7 +10,6 @@ ## does not exists in iOS as a type - but some API refers to it (messy) !unknown-type! NSPortMessage bound -!missing-null-allowed! 'System.Void Foundation.NSBundleResourceRequest::BeginAccessingResources(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 !missing-null-allowed! 'System.Void Foundation.NSFileManager::GetFileProviderServices(Foundation.NSUrl,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 !missing-null-allowed! 'System.Void Foundation.NSFileManager::GetFileProviderServices(Foundation.NSUrl,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 !missing-null-allowed! 'System.Void Foundation.NSFilePresenter::AccommodatePresentedItemEviction(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-ReplayKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-ReplayKit.ignore index ca08fcd2bbce..e5cc9d558167 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-ReplayKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-ReplayKit.ignore @@ -3,7 +3,3 @@ # It doesn't seem useful though in ReplayKit, so just skip binding it. !missing-field! SCStreamErrorDomain not bound -!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 -!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 -!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 -!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-AVFoundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-AVFoundation.ignore index b8cb9fa6e4c7..54555e4fd5da 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-AVFoundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-AVFoundation.ignore @@ -62,3 +62,5 @@ !missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaCharacteristic(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 !missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaType(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0 !missing-null-allowed! 'System.Void AVFoundation.AVMutableMovie::LoadTracksWithMediaType(System.String,System.Action`2,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVPlayerItem::FetchAccessLog(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVPlayerItem::FetchErrorLog(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-ReplayKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-ReplayKit.ignore deleted file mode 100644 index 038a08ef5c7c..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-ReplayKit.ignore +++ /dev/null @@ -1,2 +0,0 @@ -!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityController::ShowBroadcastPicker(CoreGraphics.CGPoint,AppKit.NSWindow,System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 -!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityController::ShowBroadcastPicker(CoreGraphics.CGPoint,AppKit.NSWindow,System.String,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVFoundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVFoundation.ignore index 0b4b70b5f781..e749f0a69b41 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVFoundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVFoundation.ignore @@ -27,3 +27,9 @@ !missing-field! AVAudioSessionInterruptionReasonKey not bound !missing-null-allowed! 'System.Void AVFoundation.AVCapturePhotoOutput::SetPreparedPhotoSettings(AVFoundation.AVCapturePhotoSettings[],System.Action`2)' is missing a '?' on parameter 'completionHandler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAudioSession::Activate(AVFoundation.AVAudioSessionActivationOptions,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVAudioSession::Deactivate(AVFoundation.AVAudioSessionDeactivationOptions,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVContentKeyRequest::MakeOptionalStreamingContentKeyRequestData(Foundation.NSData,Foundation.NSData,Foundation.NSDictionary`2,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVContentKeyRequest::MakeOptionalStreamingContentKeyRequestData(Foundation.NSData,Foundation.NSData,Foundation.NSDictionary`2,System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 +!missing-null-allowed! 'System.Void AVFoundation.AVPlayerItem::FetchAccessLog(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 +!missing-null-allowed! 'System.Void AVFoundation.AVPlayerItem::FetchErrorLog(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.ignore index 0eb91bafc428..87f5144b64a3 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.ignore @@ -13,4 +13,3 @@ !missing-selector! NSXPCInterface::setXPCType:forSelector:argumentIndex:ofReply: not bound !missing-selector! NSXPCInterface::XPCTypeForSelector:argumentIndex:ofReply: not bound -!missing-null-allowed! 'System.Void Foundation.NSBundleResourceRequest::BeginAccessingResources(System.Action`1)' is missing a '?' on parameter 'completionHandler' block parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-ReplayKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-ReplayKit.ignore index 20dec69e186b..c5f884d2d9d3 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-ReplayKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-ReplayKit.ignore @@ -6,5 +6,3 @@ # It doesn't seem useful though in ReplayKit, so just skip binding it. !missing-field! SCStreamErrorDomain not bound -!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #0 -!missing-null-allowed! 'System.Void ReplayKit.RPBroadcastActivityViewController::LoadBroadcastActivityViewController(System.Action`2)' is missing a '?' on parameter 'handler' block parameter #1 From 8ed9bd9bfb083feb61e0bae6fa914d29a2ad8ae9 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Wed, 1 Jul 2026 14:29:12 -0400 Subject: [PATCH 20/23] [github] Use bundle patch format for code-radiator merge PRs (#25896) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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> --- .github/workflows/code-radiator.lock.yml | 10 +++++----- .github/workflows/code-radiator.md | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code-radiator.lock.yml b/.github/workflows/code-radiator.lock.yml index a8c2bbdee7f7..4806d651674e 100644 --- a/.github/workflows/code-radiator.lock.yml +++ b/.github/workflows/code-radiator.lock.yml @@ -1,4 +1,4 @@ -# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"35d5436b6ffc734b76d2a30e5a881da35eac7b638a285c210f1f7bc7da139ca5","body_hash":"45ef756cba45af7752ec1432a03d6e147be19220efb74c41b103d9dff20bab56","compiler_version":"v0.80.9","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.5","engine_versions":{"copilot":"1.0.63"}} +# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"bab9dfd29c20eabb5800659cdcc257aa8ada9e1e3e05aa98e43c0cd4de708074","body_hash":"45ef756cba45af7752ec1432a03d6e147be19220efb74c41b103d9dff20bab56","compiler_version":"v0.80.9","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.5","engine_versions":{"copilot":"1.0.63"}} # gh-aw-manifest: {"version":1,"secrets":["COPILOT_PAT_0","COPILOT_PAT_1","COPILOT_PAT_2","COPILOT_PAT_3","COPILOT_PAT_4","COPILOT_PAT_5","COPILOT_PAT_6","COPILOT_PAT_7","COPILOT_PAT_8","COPILOT_PAT_9","GH_AW_CI_TRIGGER_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/cache/save","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/checkout","sha":"9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0","version":"v7.0.0"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e","version":"v6.4.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"8c7d04ebf1ece56cd381446125da3e0f6896294a","version":"v0.80.9"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.7","digest":"sha256:aae231e4635c8999d039c132f1602d3df850fe9b84a00aa2b5ac981179b5661c","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.7@sha256:aae231e4635c8999d039c132f1602d3df850fe9b84a00aa2b5ac981179b5661c"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.7","digest":"sha256:009caf2e3d88fa77b64e9a03a95a228fc58db0f1701c6d324b29ba5a3c7c79b6","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.7@sha256:009caf2e3d88fa77b64e9a03a95a228fc58db0f1701c6d324b29ba5a3c7c79b6"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.7","digest":"sha256:deb1d4e19de62d51cee0508057a596a19315c3423ada4d675cad136dc8037c96","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.7@sha256:deb1d4e19de62d51cee0508057a596a19315c3423ada4d675cad136dc8037c96"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.27","digest":"sha256:fe984bddde4ec05d756d9043edb0a32912e6b7b72f6a121b1082f29221421cc7","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.3.27@sha256:fe984bddde4ec05d756d9043edb0a32912e6b7b72f6a121b1082f29221421cc7"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b","pinned_image":"ghcr.io/github/gh-aw-node@sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b"},{"image":"ghcr.io/github/github-mcp-server:v1.4.0","digest":"sha256:2afb26356481d1a350e14544a6e160f7f7ec1561a1ea309b823665abf0309036","pinned_image":"ghcr.io/github/github-mcp-server:v1.4.0@sha256:2afb26356481d1a350e14544a6e160f7f7ec1561a1ea309b823665abf0309036"}]} # This file was automatically generated by gh-aw (v0.80.9). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md # @@ -539,9 +539,9 @@ jobs: mkdir -p "${RUNNER_TEMP}/gh-aw/safeoutputs" mkdir -p /tmp/gh-aw/safeoutputs mkdir -p /tmp/gh-aw/mcp-logs/safeoutputs - cat > "${RUNNER_TEMP}/gh-aw/safeoutputs/config.json" << 'GH_AW_SAFE_OUTPUTS_CONFIG_6044a72a80d34d00_EOF' - {"add_comment":{"max":10,"target":"*"},"add_labels":{"max":10,"target":"*"},"close_pull_request":{"max":10},"create_issue":{"max":10},"create_pull_request":{"allowed_base_branches":["net*.0","xcode*","xcode*.*"],"draft":false,"max":10,"max_patch_files":1000,"max_patch_size":10240,"protect_top_level_dot_folders":true,"protected_files":["package.json","bun.lockb","bunfig.toml","deno.json","deno.jsonc","deno.lock","global.json","NuGet.Config","Directory.Packages.props","mix.exs","mix.lock","go.mod","go.sum","stack.yaml","stack.yaml.lock","pom.xml","build.gradle","build.gradle.kts","settings.gradle","settings.gradle.kts","gradle.properties","package-lock.json","yarn.lock","pnpm-lock.yaml","npm-shrinkwrap.json","requirements.txt","Pipfile","Pipfile.lock","pyproject.toml","setup.py","setup.cfg","Gemfile","Gemfile.lock","uv.lock","CODEOWNERS","DESIGN.md","README.md","CONTRIBUTING.md","CHANGELOG.md","SECURITY.md","CODE_OF_CONDUCT.md","AGENTS.md","CLAUDE.md","GEMINI.md"],"protected_files_policy":"request_review","signed_commits":false},"create_report_incomplete_issue":{},"merge_pull_request":{"max":10},"missing_data":{},"missing_tool":{},"noop":{"max":1,"report-as-issue":"true"},"push_to_pull_request_branch":{"if_no_changes":"warn","max":10,"max_patch_size":10240,"protect_top_level_dot_folders":true,"protected_files":["package.json","bun.lockb","bunfig.toml","deno.json","deno.jsonc","deno.lock","global.json","NuGet.Config","Directory.Packages.props","mix.exs","mix.lock","go.mod","go.sum","stack.yaml","stack.yaml.lock","pom.xml","build.gradle","build.gradle.kts","settings.gradle","settings.gradle.kts","gradle.properties","package-lock.json","yarn.lock","pnpm-lock.yaml","npm-shrinkwrap.json","requirements.txt","Pipfile","Pipfile.lock","pyproject.toml","setup.py","setup.cfg","Gemfile","Gemfile.lock","uv.lock","CODEOWNERS","DESIGN.md","README.md","CONTRIBUTING.md","CHANGELOG.md","SECURITY.md","CODE_OF_CONDUCT.md","AGENTS.md","CLAUDE.md","GEMINI.md"],"protected_files_policy":"allowed","signed_commits":false,"target":"*","title_prefix":"🤖 Merge 'main' =\u003e '"},"report_incomplete":{},"update_pull_request":{"allow_body":true,"allow_title":true,"max":10,"update_branch":false}} - GH_AW_SAFE_OUTPUTS_CONFIG_6044a72a80d34d00_EOF + cat > "${RUNNER_TEMP}/gh-aw/safeoutputs/config.json" << 'GH_AW_SAFE_OUTPUTS_CONFIG_780f55a7ff64e922_EOF' + {"add_comment":{"max":10,"target":"*"},"add_labels":{"max":10,"target":"*"},"close_pull_request":{"max":10},"create_issue":{"max":10},"create_pull_request":{"allowed_base_branches":["net*.0","xcode*","xcode*.*"],"draft":false,"max":10,"max_patch_files":1000,"max_patch_size":10240,"patch_format":"bundle","protect_top_level_dot_folders":true,"protected_files":["package.json","bun.lockb","bunfig.toml","deno.json","deno.jsonc","deno.lock","global.json","NuGet.Config","Directory.Packages.props","mix.exs","mix.lock","go.mod","go.sum","stack.yaml","stack.yaml.lock","pom.xml","build.gradle","build.gradle.kts","settings.gradle","settings.gradle.kts","gradle.properties","package-lock.json","yarn.lock","pnpm-lock.yaml","npm-shrinkwrap.json","requirements.txt","Pipfile","Pipfile.lock","pyproject.toml","setup.py","setup.cfg","Gemfile","Gemfile.lock","uv.lock","CODEOWNERS","DESIGN.md","README.md","CONTRIBUTING.md","CHANGELOG.md","SECURITY.md","CODE_OF_CONDUCT.md","AGENTS.md","CLAUDE.md","GEMINI.md"],"protected_files_policy":"request_review","signed_commits":false},"create_report_incomplete_issue":{},"merge_pull_request":{"max":10},"missing_data":{},"missing_tool":{},"noop":{"max":1,"report-as-issue":"true"},"push_to_pull_request_branch":{"if_no_changes":"warn","max":10,"max_patch_size":10240,"protect_top_level_dot_folders":true,"protected_files":["package.json","bun.lockb","bunfig.toml","deno.json","deno.jsonc","deno.lock","global.json","NuGet.Config","Directory.Packages.props","mix.exs","mix.lock","go.mod","go.sum","stack.yaml","stack.yaml.lock","pom.xml","build.gradle","build.gradle.kts","settings.gradle","settings.gradle.kts","gradle.properties","package-lock.json","yarn.lock","pnpm-lock.yaml","npm-shrinkwrap.json","requirements.txt","Pipfile","Pipfile.lock","pyproject.toml","setup.py","setup.cfg","Gemfile","Gemfile.lock","uv.lock","CODEOWNERS","DESIGN.md","README.md","CONTRIBUTING.md","CHANGELOG.md","SECURITY.md","CODE_OF_CONDUCT.md","AGENTS.md","CLAUDE.md","GEMINI.md"],"protected_files_policy":"allowed","signed_commits":false,"target":"*","title_prefix":"🤖 Merge 'main' =\u003e '"},"report_incomplete":{},"update_pull_request":{"allow_body":true,"allow_title":true,"max":10,"update_branch":false}} + GH_AW_SAFE_OUTPUTS_CONFIG_780f55a7ff64e922_EOF - name: Generate Safe Outputs Tools env: GH_AW_TOOLS_META_JSON: | @@ -1970,7 +1970,7 @@ jobs: GH_AW_ALLOWED_DOMAINS: "*.githubusercontent.com,api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,codeload.github.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,docs.github.com,github-cloud.githubusercontent.com,github-cloud.s3.amazonaws.com,github.blog,github.com,github.githubassets.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,lfs.github.com,objects.githubusercontent.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,patch-diff.githubusercontent.com,ppa.launchpad.net,raw.githubusercontent.com,registry.npmjs.org,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com" GITHUB_SERVER_URL: ${{ github.server_url }} GITHUB_API_URL: ${{ github.api_url }} - GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":10,\"target\":\"*\"},\"add_labels\":{\"max\":10,\"target\":\"*\"},\"close_pull_request\":{\"max\":10},\"create_issue\":{\"max\":10},\"create_pull_request\":{\"allowed_base_branches\":[\"net*.0\",\"xcode*\",\"xcode*.*\"],\"draft\":false,\"max\":10,\"max_patch_files\":1000,\"max_patch_size\":10240,\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"README.md\",\"CONTRIBUTING.md\",\"CHANGELOG.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"AGENTS.md\",\"CLAUDE.md\",\"GEMINI.md\"],\"protected_files_policy\":\"request_review\",\"signed_commits\":false},\"create_report_incomplete_issue\":{},\"merge_pull_request\":{\"max\":10},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"true\"},\"push_to_pull_request_branch\":{\"if_no_changes\":\"warn\",\"max\":10,\"max_patch_size\":10240,\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"README.md\",\"CONTRIBUTING.md\",\"CHANGELOG.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"AGENTS.md\",\"CLAUDE.md\",\"GEMINI.md\"],\"protected_files_policy\":\"allowed\",\"signed_commits\":false,\"target\":\"*\",\"title_prefix\":\"🤖 Merge 'main' =\\u003e '\"},\"report_incomplete\":{},\"update_pull_request\":{\"allow_body\":true,\"allow_title\":true,\"max\":10,\"update_branch\":false}}" + GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":10,\"target\":\"*\"},\"add_labels\":{\"max\":10,\"target\":\"*\"},\"close_pull_request\":{\"max\":10},\"create_issue\":{\"max\":10},\"create_pull_request\":{\"allowed_base_branches\":[\"net*.0\",\"xcode*\",\"xcode*.*\"],\"draft\":false,\"max\":10,\"max_patch_files\":1000,\"max_patch_size\":10240,\"patch_format\":\"bundle\",\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"README.md\",\"CONTRIBUTING.md\",\"CHANGELOG.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"AGENTS.md\",\"CLAUDE.md\",\"GEMINI.md\"],\"protected_files_policy\":\"request_review\",\"signed_commits\":false},\"create_report_incomplete_issue\":{},\"merge_pull_request\":{\"max\":10},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"true\"},\"push_to_pull_request_branch\":{\"if_no_changes\":\"warn\",\"max\":10,\"max_patch_size\":10240,\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"README.md\",\"CONTRIBUTING.md\",\"CHANGELOG.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"AGENTS.md\",\"CLAUDE.md\",\"GEMINI.md\"],\"protected_files_policy\":\"allowed\",\"signed_commits\":false,\"target\":\"*\",\"title_prefix\":\"🤖 Merge 'main' =\\u003e '\"},\"report_incomplete\":{},\"update_pull_request\":{\"allow_body\":true,\"allow_title\":true,\"max\":10,\"update_branch\":false}}" GH_AW_CI_TRIGGER_TOKEN: ${{ secrets.GH_AW_CI_TRIGGER_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/.github/workflows/code-radiator.md b/.github/workflows/code-radiator.md index 363c58328ef1..9a9bebe5152e 100644 --- a/.github/workflows/code-radiator.md +++ b/.github/workflows/code-radiator.md @@ -63,6 +63,7 @@ safe-outputs: create-pull-request: max: 10 draft: false + patch-format: bundle signed-commits: false allowed-base-branches: - "net*.0" From 273e2296e0900069d885a6f1f9878cf6996f8cf6 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Wed, 1 Jul 2026 21:35:28 +0200 Subject: [PATCH 21/23] [docs] Improve XML docs for TWTweetComposeViewControllerResult (#25901) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Improve XML documentation for the `TWTweetComposeViewControllerResult` enum: - Replace 'To be added.' placeholders with meaningful descriptions - Remove empty `` 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> --- src/Twitter/Enums.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Twitter/Enums.cs b/src/Twitter/Enums.cs index f94c681dc345..833b36d061c4 100644 --- a/src/Twitter/Enums.cs +++ b/src/Twitter/Enums.cs @@ -14,12 +14,11 @@ namespace Twitter { // untyped enum -> TWTweetComposeViewController.h where the values are equals to those of // SLComposeViewControllerResult, which is a NSInteger -> SLComposeViewController.h, but a // sizeof(TWTweetComposeViewControllerResultDone) shows it's 4 bytes (on a 64 bits process) - /// An enumeration whose values specify the results of composing a tweet in a . - /// To be added. + /// An enumeration whose values specify the results of composing a tweet in a . public enum TWTweetComposeViewControllerResult { - /// To be added. + /// The user cancelled the tweet composition. Cancelled, - /// To be added. + /// The user completed the tweet composition. Done, } From 855705d0b7260b274fa3a9c3c41cd0b421d414ca Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Wed, 1 Jul 2026 21:46:36 +0200 Subject: [PATCH 22/23] [github-actions] Ignore gh-aw-managed actions in dependabot config (#25903) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 https://github.com/dotnet/macios/pull/25897 Fixes https://github.com/dotnet/macios/pull/25899 🤖 Pull request created by Copilot --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a67731185ab9..20ce373be20a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,3 +9,9 @@ updates: ignore: - dependency-name: "github/gh-aw-actions/**" - dependency-name: "github/gh-aw-actions" # Managed by gh aw compile. Version-locked to the gh-aw compiler; do not bump. + # The following actions only appear in gh-aw generated workflow files + # (*.lock.yml and agentics-maintenance.yml). They are managed by the + # gh-aw compiler and should not be bumped by dependabot. + - dependency-name: "actions/cache/**" + - dependency-name: "actions/download-artifact" + - dependency-name: "actions/setup-node" From 5bebeb4eb78bc102646e35944f2d362ca9335cf3 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Wed, 1 Jul 2026 22:12:24 +0200 Subject: [PATCH 23/23] [dotnet] Enable AOT generic instantiation deduplication when PrepareAssemblies=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> --- dotnet/targets/Xamarin.Shared.Sdk.targets | 29 +++ tests/dotnet/UnitTests/PerformanceTests.cs | 168 +++++++++++++++--- .../PopulateApplicationAssembliesStep.cs | 1 + 3 files changed, 175 insertions(+), 23 deletions(-) diff --git a/dotnet/targets/Xamarin.Shared.Sdk.targets b/dotnet/targets/Xamarin.Shared.Sdk.targets index 232d6e16fdeb..8c4fe11207d9 100644 --- a/dotnet/targets/Xamarin.Shared.Sdk.targets +++ b/dotnet/targets/Xamarin.Shared.Sdk.targets @@ -1479,6 +1479,35 @@ + + + + + <_DedupAssemblyInResolvedFileToPublish Include="@(ResolvedFileToPublish)" Condition="'%(Filename)%(Extension)' == 'aot-instances.dll'" /> + + + + Assembly + PreserveNewest + $(_AssemblyPublishDir)aot-instances.dll + aot-instances.dll + + + + <_DotNetRoot Condition="'$(IsMacEnabled)' == 'true'">$(_DotNetRootRemoteDirectory) diff --git a/tests/dotnet/UnitTests/PerformanceTests.cs b/tests/dotnet/UnitTests/PerformanceTests.cs index 73f88a7af72e..0ab037950a57 100644 --- a/tests/dotnet/UnitTests/PerformanceTests.cs +++ b/tests/dotnet/UnitTests/PerformanceTests.cs @@ -1,51 +1,173 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +using System.Diagnostics; + namespace Xamarin.Tests { [TestFixture] public class PerformanceTests : TestBaseClass { [Test] - [TestCase (ApplePlatform.iOS, "iossimulator-arm64")] - public void PrepareAssemblies (ApplePlatform platform, string runtimeIdentifiers) + [TestCase (ApplePlatform.iOS, true)] + public void PrepareAssemblies (ApplePlatform platform, bool useMonoRuntime) { Configuration.IgnoreIfIgnoredPlatform (platform); + + string runtimeIdentifiers; + switch (platform) { + case ApplePlatform.iOS: + runtimeIdentifiers = "iossimulator-arm64;ios-arm64"; + break; + case ApplePlatform.TVOS: + runtimeIdentifiers = "tvossimulator-arm64;tvos-arm64"; + break; + case ApplePlatform.MacCatalyst: + runtimeIdentifiers = "maccatalyst-arm64"; + break; + case ApplePlatform.MacOSX: + runtimeIdentifiers = "osx-arm64"; + break; + default: + Assert.Inconclusive ($"Don't know which runtime identifiers to use for {platform}"); + return; + } + Configuration.AssertRuntimeIdentifiersAvailable (platform, runtimeIdentifiers); - if (string.IsNullOrEmpty (Environment.GetEnvironmentVariable ("ENABLE_PERFORMANCE_TESTS"))) + var enablePerformanceTests = Environment.GetEnvironmentVariable ("ENABLE_PERFORMANCE_TESTS"); + if (string.IsNullOrEmpty (enablePerformanceTests)) Assert.Ignore ("Test ignored because ENABLE_PERFORMANCE_TESTS is not set."); + var watch = Stopwatch.StartNew (); var projects = new string [] { "MySimpleApp", "monotouch-test" }; var results = new List (); var attempts = 3; + var report = new StringBuilder (); foreach (var project in projects) { - var project_path = GetProjectPath (project, runtimeIdentifiers: runtimeIdentifiers, platform: platform, out var appPath); - - var result = new PrepareAssembliesTestResult { - Project = project, - }; - foreach (var propertyValue in new bool [] { false, true }) { - var properties = GetDefaultProperties (runtimeIdentifiers); - properties ["PrepareAssemblies"] = propertyValue.ToString (); - - for (var i = 1; i <= attempts; i++) { - Clean (project_path); - var rv = DotNet.AssertBuild (project_path, properties); - (propertyValue ? result.EnabledBuildTimes : result.DisabledBuildTimes).Add (rv.Duration); + var project_path = GetProjectPath (project, runtimeIdentifiers: runtimeIdentifiers, platform: platform, out var _); + + foreach (var rid in runtimeIdentifiers.Split (';')) { + foreach (var linkMode in new string [] { "None", "SdkOnly" }) { + var result = new PrepareAssembliesTestResult { + Project = project, + RuntimeIdentifier = rid, + LinkMode = linkMode, + }; + foreach (var propertyValue in new bool [] { false, true }) { + var properties = GetDefaultProperties (rid); + properties ["PrepareAssemblies"] = propertyValue.ToString (); + properties ["MtouchLink"] = linkMode; + properties ["UseMonoRuntime"] = useMonoRuntime ? "true" : "false"; + + for (var i = 1; i <= attempts; i++) { + Clean (project_path); + var rv = DotNet.AssertBuild (project_path, properties); + result.GetBuildTimes (propertyValue).Times.Add (rv); + } + } + results.Add (result); } } - results.Add (result); } - foreach (var result in results.OrderBy (v => v.Project)) { - Console.WriteLine ($"Results for: {result.Project}"); - Console.WriteLine ($" Enabled timings: {string.Join (", ", result.EnabledBuildTimes.Select (v => v.ToString ()))} average: {TimeSpan.FromTicks ((long) result.EnabledBuildTimes.Average (v => v.Ticks))}"); - Console.WriteLine ($" Disabled timings: {string.Join (", ", result.DisabledBuildTimes.Select (v => v.ToString ()))} average: {TimeSpan.FromTicks ((long) result.DisabledBuildTimes.Average (v => v.Ticks))}"); + var orderedResults = results.OrderBy (v => v.Project).ThenBy (v => v.RuntimeIdentifier).ThenBy (v => v.LinkMode).ToList (); + + var runtime = useMonoRuntime ? "MonoVM" : "CoreCLR"; + + report.AppendLine ($"# PrepareAssemblies performance report ({platform.AsString ()}/{runtime})"); + report.AppendLine (); + report.AppendLine ("## Summary"); + report.AppendLine (); + var summaryHeaders = new [] { "Project", "Runtime identifier", "Link mode", "PrepareAssemblies=false", "PrepareAssemblies=true", "Difference" }; + var summaryRows = new List (); + foreach (var result in orderedResults) { + summaryRows.Add (new [] { + result.Project, + result.RuntimeIdentifier, + result.LinkMode, + result.GetBuildTimes (false).Average.ToString (), + result.GetBuildTimes (true).Average.ToString (), + result.AverageDifference.ToString (), + }); + } + AppendMarkdownTable (report, summaryHeaders, summaryRows); + report.AppendLine (); + + foreach (var result in orderedResults) { + report.AppendLine ($"## {result.Project} ({result.RuntimeIdentifier} / LinkMode={result.LinkMode})"); + report.AppendLine (); + var disabledTimes = result.GetBuildTimes (false).Times; + var enabledTimes = result.GetBuildTimes (true).Times; + var runCount = Math.Max (disabledTimes.Count, enabledTimes.Count); + var detailHeaders = new [] { "Run", "Disabled", "Enabled", "Disabled binlog", "Enabled binlog" }; + var detailRows = new List (); + for (var i = 0; i < runCount; i++) { + var disabled = i < disabledTimes.Count ? disabledTimes [i] : null; + var enabled = i < enabledTimes.Count ? enabledTimes [i] : null; + detailRows.Add (new [] { + $"#{i + 1}", + disabled?.Duration.ToString () ?? "", + enabled?.Duration.ToString () ?? "", + disabled?.BinLogPath ?? "", + enabled?.BinLogPath ?? "", + }); + } + detailRows.Add (new [] { + "**Average**", + result.GetBuildTimes (false).Average.ToString (), + result.GetBuildTimes (true).Average.ToString (), + "", + "", + }); + AppendMarkdownTable (report, detailHeaders, detailRows); + report.AppendLine (); + report.AppendLine ($"Difference (of average): {result.AverageDifference}"); + report.AppendLine (); + } + + report.AppendLine ($"Total duration: {watch.Elapsed}"); + Console.WriteLine (report); + + if (enablePerformanceTests.Contains ("%SPEC%")) { + for (var i = 1; i < 256; i++) { + var path = enablePerformanceTests.Replace ("%SPEC%", $"{platform.AsString ()}-{runtime}-{i}"); + if (File.Exists (path)) + continue; + File.WriteAllText (path, report.ToString ()); + Console.WriteLine ($"Wrote report to: {path}"); + break; + } } } + static void AppendMarkdownTable (StringBuilder report, string [] headers, List rows) + { + var widths = new int [headers.Length]; + for (var i = 0; i < headers.Length; i++) + widths [i] = headers [i].Length; + foreach (var row in rows) { + for (var i = 0; i < row.Length; i++) + widths [i] = Math.Max (widths [i], row [i].Length); + } + + report.AppendLine ("| " + string.Join (" | ", headers.Select ((h, i) => h.PadRight (widths [i]))) + " |"); + report.AppendLine ("| " + string.Join (" | ", widths.Select (w => new string ('-', w))) + " |"); + foreach (var row in rows) + report.AppendLine ("| " + string.Join (" | ", row.Select ((c, i) => c.PadRight (widths [i]))) + " |"); + } + class PrepareAssembliesTestResult { public required string Project; - public List EnabledBuildTimes = new (); - public List DisabledBuildTimes = new (); + public required string RuntimeIdentifier; + public required string LinkMode; + BuildTimes EnabledBuildTimes = new (); + BuildTimes DisabledBuildTimes = new (); + + public BuildTimes GetBuildTimes (bool enabled) => enabled ? EnabledBuildTimes : DisabledBuildTimes; + public TimeSpan AverageDifference => EnabledBuildTimes.Average - DisabledBuildTimes.Average; + } + + class BuildTimes { + public List Times = new (); + public TimeSpan Average => TimeSpan.FromTicks ((long) Times.Average (v => v.Duration.Ticks)); } } } diff --git a/tools/assembly-preparer/PopulateApplicationAssembliesStep.cs b/tools/assembly-preparer/PopulateApplicationAssembliesStep.cs index 59c25473d317..f45107100f28 100644 --- a/tools/assembly-preparer/PopulateApplicationAssembliesStep.cs +++ b/tools/assembly-preparer/PopulateApplicationAssembliesStep.cs @@ -35,6 +35,7 @@ protected override void TryProcess () break; default: var ad = Configuration.Application.AddAssembly (assemblyDefinition); + ad.IsDedupAssembly = Path.GetFileName (Configuration.DedupAssembly).Equals (Path.GetFileName (assembly.OutputPath), StringComparison.OrdinalIgnoreCase); ad.FullPath = assembly.OutputPath; break; }