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

Don't suppress exit codes Appium driver install #27024

Merged
merged 5 commits into from
Jan 10, 2025
Merged

Don't suppress exit codes Appium driver install #27024

merged 5 commits into from
Jan 10, 2025

Conversation

jfversluis
Copy link
Member

@jfversluis jfversluis commented Jan 9, 2025

Description of Change

For some reason the exit codes were reset on the appium driver doctor calls. If the drivers are not installed correctly, the tests will fail so we want to fail early and not let the whole pipeline go through when this happens.

This PR removes the suppressing of the exit codes for these calls so that the pipeline should fail whenever the one of the drivers fails to install.

Additionally, this PR makes changes in how the JAVA_HOME variable is set. For macOS, this step always seemed to fail as can be seen here

image

This needed to be fixed so that the appium driver doctor calls do not report the unset JAVA_HOME variable as an error.

Issues Fixed

Fixes #27013

@jfversluis jfversluis added the area-testing Unit tests, device tests label Jan 9, 2025
@jfversluis jfversluis added this to the .NET 9 SR3 milestone Jan 9, 2025
@jfversluis jfversluis requested review from PureWeen and Copilot January 9, 2025 09:16
@jfversluis jfversluis requested a review from a team as a code owner January 9, 2025 09:16
@jfversluis jfversluis requested a review from tj-devel709 January 9, 2025 09:16

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)
  • eng/scripts/appium-install.ps1: Language not supported
@jfversluis jfversluis requested a review from rmarinho January 9, 2025 10:06
@jfversluis jfversluis marked this pull request as draft January 9, 2025 10:21
@jfversluis jfversluis marked this pull request as ready for review January 9, 2025 10:42
@jfversluis jfversluis enabled auto-merge (squash) January 10, 2025 08:29
@jfversluis
Copy link
Member Author

Failing test unrelated

@jfversluis jfversluis disabled auto-merge January 10, 2025 15:54
@jfversluis jfversluis merged commit 246b5df into main Jan 10, 2025
102 of 104 checks passed
@jfversluis jfversluis deleted the fix-27013 branch January 10, 2025 15:54
@github-actions github-actions bot locked and limited conversation to collaborators Feb 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing Unit tests, device tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Testing] If an appium driver isn't installed make the tests fail faster
2 participants