-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Use custom mobile testing API #53871
Use custom mobile testing API #53871
Conversation
Tagging subscribers to this area: @hoyosjs Issue DetailsThis PR mainly fixe these two areas:
|
This should improve things, however, I am a bit worried what happens when timeouts occur. We won't be able to uninstall in those cases? |
The |
But I presume that when Helix kills the job and it shuts down the |
That will leave all the artifacts that tests create on the device, not just the app. To be 100% sure that tests will be running against the newest version of the app, I could call the uninstall function right before install function. Would that resolve your concern? |
@greenEkatherine I think we already do uninstall before install, right? |
According to the log, it does try to uninstall the same app before installing it. Here is an example
Both the installation and uninstallation logs are saved at I also noticed that the |
@fanyang-mono in that case you need |
Sorry I meant to say |
I double checked code - it shouldn't be a case. We don't even provide apk to install in that case, only package name. Could you please share a link to some build for example? |
I only tried it locally. Will share with you the long. |
@greenEkatherine You are right. |
Converting tests to use |
With this change, the time spent by runtime tests running on Android x64 has dropped more than 16% (from 2h to 1h40min). |
string xharnessCmd; | ||
string cmdStr; | ||
string appExtension; | ||
int timeout = 240000; // Set timeout to 4 mins, because the installation on Android arm64/32 devices could take up to 4 mins on CI |
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.
@greenEkatherine are these 4 minutes valid?
Co-authored-by: Přemek Vysoký <premek.vysoky@microsoft.com>
Co-authored-by: Přemek Vysoký <premek.vysoky@microsoft.com>
Co-authored-by: Přemek Vysoký <premek.vysoky@microsoft.com>
The change of this PR only applies to mobile targets, so the runtime tests lanes on non-mobile targets are back to previous speed. |
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.
Looks good to me, thank you!
This PR mainly fixe these two areas:
Collection Fixtures
syntax for runtime tests generation script, when target is mobile. And invoke app installation/uninstallation at shared fixture class.Fixes #53382
Contribute to #45568