Repository navigation
Conversation
This comment has been minimized.
This comment has been minimized.
kubaflo
left a comment
There was a problem hiding this comment.
Multi-Model Review — PR #35973
Verdict: ❌ NEEDS_CHANGES
Confidence: High (unanimous across all 4 models)
All 4 models independently identified issues that should be addressed before merging.
Model agreement: gemini (NEEDS_CHANGES/1), gpt-5.5 (NEEDS_CHANGES/1), opus-4.6 (NEEDS_CHANGES/1), opus-4.8 (NEEDS_CHANGES/2)
Findings: 4 unique issues identified.
| <ApplicationIdGuid>11111111-2222-3333-4444-555555555555</ApplicationIdGuid> | ||
| <ApplicationDisplayVersion>2.3</ApplicationDisplayVersion> | ||
| <ApplicationVersion>42</ApplicationVersion> | ||
| </PropertyGroup> |
There was a problem hiding this comment.
The relative path $(MSBuildThisFileDirectory)..\..\..\ assumes the test directory is located within the MAUI repository bin/ folder. However, on Azure Pipelines CI, TestDirectory is located under AGENT_TEMPDIRECTORY (e.g., .../test-dir/ApplicationArtifactsAreEnrichedWithMauiMetadata/). As a result, traversing up 3 directories points to AGENT_TEMPDIRECTORY/src/Workload/... instead of the repository, causing MSB4019 missing import errors and failing the integration tests.
| <ApplicationDisplayVersion>2.3</ApplicationDisplayVersion> | ||
| <ApplicationVersion>42</ApplicationVersion> | ||
| </PropertyGroup> | ||
| <Import Project="$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\..\..\src\Workload\Microsoft.Maui.Sdk\Sdk\Microsoft.Maui.Sdk.After.targets'))" /> |
There was a problem hiding this comment.
This import is rooted at the generated test project's MSBuildThisFileDirectory and walks up three directories to find src/Workload. That happens to work for local fallback TestDirectory under the repo's bin/test-dir, but in Azure Pipelines TestEnvironment.GetTestDirectoryRoot() uses AGENT_TEMPDIRECTORY/test-dir, so ......\src does not point at the MAUI checkout and the new Build integration test cannot import Microsoft.Maui.Sdk.After.targets. The current CI failures in the Build integration lanes are consistent with this PR-introduced test path issue.
(found by: 5, 4)
| <Target Name="SeedApplicationArtifacts"> | ||
| <ItemGroup> | ||
| <ApplicationArtifact Include="$(MSBuildProjectDirectory)/artifacts/platform/android/MyArtifactApp-Signed.apk"> | ||
| <PackageFormat>apk</PackageFormat> |
There was a problem hiding this comment.
The explicit <Import Project="$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\\..\\..\\src\\Workload\\...'))" /> assumes the project directory is 3 levels deep inside the repo root. Locally this resolves from <repo>/bin/test-dir/<testname>/ to <repo>/. In CI, TestDirectory is under $AGENT_TEMPDIRECTORY/test-dir/<testname>/, so 3 parent traversals land in the agent temp directory—not the repo. The targets file won't exist there, causing a build error. This is the likely cause of the CI 'Build integration tests' failures on both macOS and Windows.
| Lines="@(ApplicationArtifact->'%(Filename)%(Extension)|%(PackageFormat)|%(ApplicationTitle)|%(ApplicationName)|%(ApplicationId)|%(ApplicationIdGuid)|%(ApplicationDisplayVersion)|%(ApplicationVersion)|%(Signed)|%(PackageId)|%(PlatformName)|%(BundleIdentifier)')" | ||
| Overwrite="true" /> | ||
| </Target> | ||
| <Target Name="WritePublishApplicationArtifactsMetadata" DependsOnTargets="SeedApplicationArtifacts;_AddMauiApplicationArtifactMetadata"> |
There was a problem hiding this comment.
Both WriteGetApplicationArtifactsMetadata and WritePublishApplicationArtifactsMetadata depend directly on SeedApplicationArtifacts;_AddMauiApplicationArtifactMetadata, so they exercise the metadata target in isolation rather than through a real GetApplicationArtifacts/Publish invocation; the actual wiring is only checked indirectly by the string Assert.Contains on the depends-on file (line 178). The Publish variant therefore adds no coverage beyond the Get variant. This is understandable while the platform GetApplicationArtifacts target is unavailable in net11, but consider collapsing the duplicate target (or asserting the real wiring) once the platform producers land.
MauiBot
left a comment
There was a problem hiding this comment.
Expert Review — 2 findings
See inline comments for details.
MauiBot
left a comment
There was a problem hiding this comment.
Expert Review — 2 findings
See inline comments for details.
MauiBot
left a comment
There was a problem hiding this comment.
Expert Review — 2 findings
See inline comments for details.
MauiBot
left a comment
There was a problem hiding this comment.
Expert Review — 5 findings
See inline comments for details.
MauiBot
left a comment
There was a problem hiding this comment.
Expert Review — 2 findings
See inline comments for details.
MauiBot
left a comment
There was a problem hiding this comment.
Expert Review — 1 findings
See inline comments for details.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
MAUI Autopilot · round 1 No code changes were published. The Windows Essentials device-test job failed before tests ran; all three models found both diagnostics unrelated to this PR.
|
<!-- copilot-assessment:v1 --> ### Agent assessment Self-reported assessment, not an independent review. Assessed revision: `c7d2aee904460de8f1689ab1f48d0915b3ba2e3f` | Dimension | Assessment | Rationale | |---|---|---| | Change confidence | 9/10 | ↑ Compiled; changed next_round script passes `node --check`.<br>↑ Replay: SOURCE=tests with nothing published now stops; expert/threads/conflicts unchanged.<br>↓ Not yet observed live. | | Diagnosis confidence | 9.5/10 | ↑ next_round log for run 46635171157: "#35973: every thread is answered; the loop continues" with SOURCE=tests, publish skipped.<br>↑ 27 identical "fix (tests, round 1)" runs at head 3125261 in 6 h, ~100 "round 1" comments since Nov 27. | | Evidence fit | 9/10 | ↑ #35973 was ~3.4k of the ~38k AI credits in the 95 measured autopilot runs, all at the same head.<br>↓ Remaining spend is from genuine expert fix rounds (avg ~510 credits), which this does not change. | <!-- /copilot-assessment --> <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change A tests fix round that decides the failures are unrelated publishes nothing. `next_round` then re-dispatched the loop ("every thread is answered"), and `pre_activation` found the same `FAILED` test comment for the same head and ran the same tests round again, every ~15 minutes, indefinitely. #35973 did this ~100 times. - `next_round`: a `tests` round that publishes nothing now stops the loop (like `conflicts`), with `s/autopilot-needs-maintainer-decision` and a specific Stopped message. - Docs: the stage table notes that a tests round that publishes nothing stops for a maintainer decision. Validation: `gh aw compile maui-expert-autopilot`; `node --check` on the changed script; replay of the decision for each source. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
312526123e9b6e3f2d8d4099d7578df6c71de47e↑ Targets import only for Windows App SDK TFMs, so Android/Apple builds are unaffected.
↓ Real Windows template build/publish tests run only on Windows CI and have not been inspected for this revision.
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
Adds
@(ApplicationArtifact)items for Windows App SDK applications, matching the contract that .NET for Android and .NET for Apple platforms already provide:The Windows producer ships in
Microsoft.Maui.Core's existingbuildTransitivetargets (WinUI.ApplicationArtifacts.targets, imported next toWinUI.targets). There is no separate NuGet package and no workload change. It could move into the Windows App SDK later.It defines
GetApplicationArtifacts(depends onBuild, returns@(ApplicationArtifact), extensible via$(GetApplicationArtifactsDependsOn)) and refreshes items forPublish, so this works:It activates only for non-
.wapprojWindows App SDK projects withExe/WinExeoutput. SetEnableWindowsApplicationArtifacts=falseto opt out.What is reported
Only final application outputs, read from Windows App SDK output properties and item lists (no directory scanning):
PackageFormatIsDirectorydirectorytruemsixfalsemsixbundlefalsemsixuploadfalseappinstallerfalseLegacy
appx*formats are handled the same way. Intermediates, dependency framework packages, symbols, certificates and install scripts are not reported.Metadata:
PackageFormat,IsDirectory,Signed,EntryPoint,RuntimeIdentifier,PlatformName=Windows, plus the commonApplicationId,ApplicationName,ApplicationTitle,ApplicationDisplayVersionandApplicationVersion(from the final Appx manifest when packaged;a.b.c.dmaps to display versiona.b.cand versiond).Testing
dotnet test src/TestUtils/src/Microsoft.Maui.IntegrationTests/Microsoft.Maui.IntegrationTests.csproj --filter "FullyQualifiedName~WindowsApplicationArtifactsTargetsTest|FullyQualifiedName~WindowsTemplateTest.ApplicationArtifacts": passed (12/12) on macOS. Fixture tests cover packaged, sparse, unpackaged build/publish, and inert project shapes.Issues Fixed
N/A