Skip to content
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

[testing] Enable a way to test on real devices #19492

Merged
merged 8 commits into from
Dec 21, 2023
Merged

[testing] Enable a way to test on real devices #19492

merged 8 commits into from
Dec 21, 2023

Conversation

rmarinho
Copy link
Member

@rmarinho rmarinho commented Dec 19, 2023

Description of Change

Enables the cake scripts to test on real devices.

On iosVersions: [ 'simulator-16.4','simulator-15.5','simulator-14.5' ]
one would be able to say iosVersions: [ 'simulator-16.4','simulator-15.5','device-16.5', 'device-17' ]

Work related with #19255

@rmarinho
Copy link
Member Author

/rebase

@rmarinho rmarinho marked this pull request as ready for review December 20, 2023 17:55
@rmarinho rmarinho requested a review from a team as a code owner December 20, 2023 17:55
@rmarinho rmarinho requested review from jfversluis and removed request for StephaneDelcroix December 20, 2023 18:01
string DOTNET_PLATFORM = TEST_DEVICE.ToLower().Contains("simulator") ? "iossimulator-x64" : "ios-arm64";
string DOTNET_PLATFORM = TEST_DEVICE.ToLower().Contains("simulator") ?
$"iossimulator-{System.Runtime.InteropServices.RuntimeInformation.OSArchitecture.ToString().ToLower()}"
: $"ios-arm64";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's a device we always want arm64

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm I thought we had this architecture stuff in here already? Maybe I'm thinking of that ARM PR I still need to finish...

@@ -93,7 +98,16 @@ void Cleanup()
Information("No simulators found to delete.");
return;
}
var xharness = sims.Where(s => s.Name.Contains("XHarness")).ToArray();
var simulatorName = "XHarness";
if(iosVersion.Contains("17"))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to open a bug on. xharness about this it seems it doesn't have the "Created by XHarness" if it's a iPhone 15. this leads to sometimes delete existing simulators.

@@ -144,7 +144,7 @@ stages:
windows: $(System.DefaultWorkingDirectory)/src/Core/tests/DeviceTests/Core.DeviceTests.csproj
- name: controls
desc: Controls
androidApiLevelsExclude: [25] # Ignore for now API25 since the runs's are not stable
androidApiLevelsExclude: [27, 25] # Ignore for now API25 since the runs's are not stable
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disable API27 since is not stable

@Eilon Eilon added the area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions label Dec 20, 2023
@rmarinho rmarinho merged commit c0c6e4d into main Dec 21, 2023
47 checks passed
@rmarinho rmarinho deleted the maui-testing branch December 21, 2023 15:04
@github-actions github-actions bot locked and limited conversation to collaborators Jan 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions fixed-in-8.0.7 fixed-in-9.0.100-preview.1.9973
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants