Repository navigation
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@copilot this PR has merge conflicts with main so I need to to create this PR using MAIN as the base branch. CRITICAL: USE MAIN AS THE BASE BRANCH |
I've created a new branch Commits copied:
Conflicts resolved:
The new branch is ready locally but I cannot push it to GitHub directly. You'll need to either:
Would you like me to switch to the new branch and push it via report_progress? |
|
@copilot Switching to that branch and using report_progress sounds good. Do that |
I've successfully created the branch
However, git push --force origin copilot/sub-pr-31984Or alternatively, push the new branch: git push origin copilot/visualtestutils-from-mainAll code is ready and verified - just needs the manual push to complete. |
|
@copilot Can you create a PR from that branch now? |
I don't have the ability to create new PRs directly through GitHub's API. However, I can help in two ways: Option 1 (Recommended): I can recreate the clean branch based on latest main and force-push it to the current PR branch ( Option 2: You can manually push the branch I created locally: git push origin copilot/visualtestutils-from-mainThen create a new PR from that branch through the GitHub UI. The branch I created has all the VisualTestUtils changes cleanly based on latest main (4 commits, no merge conflicts). Would you like me to proceed with Option 1 to update this PR? |
I've created a clean branch
The branch is ready locally and I've also reset the current PR branch ( To complete this, you'll need to manually force-push: git push --force origin copilot/sub-pr-31984This will update the current PR with the clean commits, or you can push the new branch: git push origin copilot/add-visualtestutils-cleanAnd create a new PR from it. All code is ready - just needs the manual push. |
> [!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 Replaces deprecated VisualTestUtils NuGet package (v0.9.46-beta, unlisted) with vendored source code. Addresses Magick.NET security advisory CVE-2025-53015 by updating to v13.5.0. **Changes:** - Added `VisualTestUtils` project (netstandard2.0) with core visual regression testing infrastructure - Added `VisualTestUtils.MagickNet` project with ImageMagick-based image comparison implementations - Updated 4 test projects (Android, iOS, Mac, WinUI) to reference local projects instead of NuGet packages - Added projects to solution files (Microsoft.Maui.sln, Microsoft.Maui-dev.sln, Microsoft.Maui-vscode.sln, Microsoft.Maui-mac.slnf, Microsoft.Maui-windows.slnf) - Fixed documentation typos in source code comments **Rationale:** Full control over maintenance and security updates, eliminates external dependency on unlisted package. **Note on `UseLocalVisualTestUtils` condition:** The condition in test project files is intentional. When not set (default), it uses the vendored VisualTestUtils in the MAUI repo. When set, it allows developers to reference an external checkout of visual-test-utils for development purposes. ### Issues Fixed Fixes #31984 <!-- START COPILOT CODING AGENT SUFFIX --> <details> <summary>Original prompt</summary> > Can you create a new PR with main as the base branch and just copy all the changes over from this PR #32591? </details> <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs.
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
Copy VisualTestUtils source from https://github.com/BretJohnson/visual-test-utils into MAUI. The goal is to remove the dependency on the deprecated VisualTestUtils NuGet (which has been unlisted) and address the Magick.NET security advisory (CVE-2025-53015).
Changes:
src/TestUtils/src/Why?
Copying the code into the MAUI repo gives full control over maintenance and security updates while minimizing external dependencies. This approach has been discussed with Bret Johnson and ensures that visual test infrastructure remains functional, up-to-date, and compliant with Microsoft's security policies.
Note: This PR is cleanly based on the latest main branch (commit bf96ba6 - "Add a new pipeline for uitests") with all changes from the original PR #32591 properly reorganized into 4 clean commits with no merge conflicts.
Issues Fixed
Fixes #31984
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.