-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Separate snapshot diffs artifacts in CI #31724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request refactors the UI test pipeline to improve artifact publishing for snapshot diffs across multiple platforms. The changes extract snapshot diff collection logic into a reusable template and modernize the artifact publishing approach.
Key changes:
- Creates a new reusable template for collecting and publishing snapshot diff artifacts
- Replaces deprecated
PublishBuildArtifacts@1tasks with modernPublishPipelineArtifact@1 - Generates separate platform-specific artifacts instead of single combined artifacts
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| eng/pipelines/common/ui-tests.yml | Adds template calls for snapshot diff collection across Android, iOS, Windows, and Mac platforms |
| eng/pipelines/common/ui-tests-steps.yml | Removes old inline snapshot diff publishing logic and adds comment about Notification Center |
| eng/pipelines/common/ui-tests-collect-snapshot-diffs.yml | New template implementing modernized snapshot diff collection and publishing logic |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update ui-tests-steps.yml * Fake test snapshot diff * Replace hardcoded tfm * Update ui-tests-steps.yml * Update ui-tests-steps.yml * Different approach * Update ui-tests.yml * Update ui-tests.yml * Update ui-tests.yml * Reusable template * Revert "Fake test snapshot diff" This reverts commit 99c982a. * Update eng/pipelines/common/ui-tests-collect-snapshot-diffs.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Also check files in subfolders --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> # Conflicts: # eng/pipelines/common/ui-tests.yml
This pull request updates the UI test pipeline steps to improve artifact publishing and snapshot diff validation across platforms. It also introduces a temporary UI change to help validate the new pipeline logic. The main changes are grouped below:
Pipeline improvements and artifact handling:
PublishBuildArtifacts@1task with the newerPublishPipelineArtifact@1for publishing snapshot diff artifacts for Android, iOS, Windows, and Mac (Catalyst) platforms, ensuring more robust and modern artifact handling.$(tfm)) from the build matrix instead of hardcodingnet9.0in artifact paths, making the pipeline more flexible and reducing maintenance overhead when frameworks change.After this change there are separate
uitests-snapshots-results-*artifacts that only have the diffs so that people don't have to download gigabytes of data just for some screenshots. See below.Screenshot taken from this build: https://dev.azure.com/xamarin/public/_build/results?buildId=151073&view=artifacts&pathAsName=false&type=publishedArtifacts