-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Windows (packaged) Device tests for CI #15629
Conversation
90034f9
to
75e2b0c
Compare
<Identity | ||
Name="2C0C8B63-C6D1-48CC-A934-5108983E28EE" | ||
Publisher="CN=User Name" | ||
Version="1.0.0.0" /> | ||
<Identity Publisher="CN=User Name" /> |
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.
Not hardcoding this will make it pick up the application ID from the csproj through single project
Name="2C0C8B63-C6D1-48CC-A934-5108983E28CB" | ||
Name="maui-package-name-placeholder" |
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.
Not hardcoding this will make it pick up the application ID from the csproj through single project
1250eb3
to
525ea4f
Compare
See #15530 for a TODO list of tests and test projects we need to look at after this is merged |
a65caa7
to
0c5b390
Compare
|
||
public static bool RunHeadless = false; |
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.
Not sure that this is still needed. No references in this PR.
public static bool RunHeadless = false; |
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.
Let's get this in and then we can perfect them later. Thanks for the iterations! Finally good to have tests running on all the things.
/backport to net7.0 |
Started backporting to net7.0: https://github.com/dotnet/maui/actions/runs/5572031588 |
@PureWeen backporting to net7.0 failed, the patch most likely resulted in conflicts: $ git am --3way --ignore-whitespace --keep-non-patch changes.patch
Applying: Build & Run Packaged Windows DeviceTests
.git/rebase-apply/patch:156: trailing whitespace.
warning: 1 line adds whitespace errors.
Using index info to reconstruct a base tree...
A eng/devices/windows.cake
M eng/pipelines/common/device-tests-steps.yml
M eng/pipelines/common/device-tests.yml
M eng/pipelines/device-tests.yml
Falling back to patching base and 3-way merge...
Auto-merging eng/pipelines/device-tests.yml
Auto-merging eng/pipelines/common/device-tests.yml
CONFLICT (content): Merge conflict in eng/pipelines/common/device-tests.yml
Auto-merging eng/pipelines/common/device-tests-steps.yml
CONFLICT (content): Merge conflict in eng/pipelines/common/device-tests-steps.yml
CONFLICT (modify/delete): eng/devices/windows.cake deleted in HEAD and modified in Build & Run Packaged Windows DeviceTests. Version Build & Run Packaged Windows DeviceTests of eng/devices/windows.cake left in tree.
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Build & Run Packaged Windows DeviceTests
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128 Please backport manually! |
@PureWeen an error occurred while backporting to net7.0, please check the run log for details! Error: git am failed, most likely due to a merge conflict. |
* Build & Run Packaged Windows DeviceTests * Disable running for Core * Skip failing tests * Skip Launcher tests * Update Launcher_Tests.cs * Update windows.cake * Revert "Update windows.cake" This reverts commit f94dfdd. * Update windows.cake
* Build & Run Packaged Windows DeviceTests * Disable running for Core * Skip failing tests * Skip Launcher tests * Update Launcher_Tests.cs * Update windows.cake * Revert "Update windows.cake" This reverts commit f94dfdd. * Update windows.cake
* Build & Run Packaged Windows DeviceTests * Disable running for Core * Skip failing tests * Skip Launcher tests * Update Launcher_Tests.cs * Update windows.cake * Revert "Update windows.cake" This reverts commit f94dfdd. * Update windows.cake
* Windows (packaged) Device tests for CI (#15629) * Build & Run Packaged Windows DeviceTests * Disable running for Core * Skip failing tests * Skip Launcher tests * Update Launcher_Tests.cs * Update windows.cake * Revert "Update windows.cake" This reverts commit f94dfdd. * Update windows.cake * Enable WinUI Core Tests on CI (#15885) * Fix WinUI test issues * - enable core tests * - core test fixes * - ignore semantics tests * - fix * - syntax errors * Correct merge mistake * Make it work? * Fix some tests * Fix WebView tests * Essentials & Graphics Windows app id fix * Update TestUtils.DeviceTests.Runners.csproj * Revert "Update TestUtils.DeviceTests.Runners.csproj" This reverts commit bec734e. * Set correct TFMs for DeviceTests --------- Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
This PR enables automated DeviceTests for packaged Windows apps for the following projects:
We should also enable
/src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj
&/src/Core/tests/DeviceTests/Core.DeviceTests.csproj
, but that one seems to crash right now so that needs some work.This PR adds the plumbing to run these tests through the pipeline and publish the test results.
Once this is merged we still need:
This is tracked by #15530