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

Bugfix MTE-4206 macos-15 Github Actions runner and Xcode 16.2 (backport #23904) #23917

Open
wants to merge 1 commit into
base: release/v134
Choose a base branch
from

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Dec 20, 2024

📜 Tickets

Jira ticket

💡 Description

This PR address the following caused by the Xcode 16 and the Github Actions runner upgrade:

  • Bump Xcode version to 16.2
  • xcpretty does not work if a test fails, even intermittently. We pin the version of xcpretty to 0.3.0 instead of using 0.4.0 from the Github Actions macos-15 runner. (We have installed v0.3.0 previously, but we did not pin the version.)
  • For previous versions of iOS, if the simulator runtime is already installed, do not attempt to reinstall the runtime.
  • Use the same command to compile and test throughout all Focus tests.

Focus for iOS 15, 16 and 17: https://github.com/mozilla-mobile/firefox-ios/actions/runs/12422652690
Focus UI Tests: https://github.com/mozilla-mobile/firefox-ios/actions/runs/12422654698

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

This is an automatic backport of pull request #23904 done by [Mergify](https://mergify.com).

* Try bumping xcpretty

* Bumping xcode versions

* Use arm64 runners?

* Looks like we cannot use arm64 runners :(

* Don't use arm64 flag

* Install erb package (used by xcpretty) manually

* Don't tee the log to see what happens

* Forgot about xcpretty for now

* Just run smoke test

* Pipe everything to tee

* uninstall xcpretty before downgrade

* Uninstall specific version

* Let's uninstall again

* Force 0.3.0 of xcpretty

* Put back some reporting?

* Let's confirm if old xcpretty is the fix!

* Fix identation

* Pin xcpretty version for previous iOS tests

* No need to install ruby and python packages for compilation

* Put back ARCH arguments

* Let's use the same arguments on previous-os.yml

* Try iOS 17.4 instead of 17.5

* Fix result directories

* Query existing runtimes

* Use iOS 17.5 instead

* Improve message for not installing runtime

* We confirmed the xcpretty version :)

* Print mesg if old runtime is needed

* Let's try for iOS 16 and 15

* What is output?

* Use -z?

* Why grep failed?

* Do you like these quotes?

* Can we grep?

* Prevent non-match to exit the workflow

* Put iOS 17.5 back

(cherry picked from commit 622b94a)
@mergify mergify bot requested a review from a team as a code owner December 20, 2024 15:53
@mergify mergify bot requested review from rpappalax and removed request for a team December 20, 2024 15:53
@mobiletest-ci-bot
Copy link

Messages
📖 Edited 2 files
📖 Created 0 files

Generated by 🚫 Danger Swift against aaaebef

@clarmso clarmso requested a review from isabelrios December 20, 2024 16:53
@clarmso
Copy link
Collaborator

clarmso commented Dec 20, 2024

Copy link
Contributor

@mdotb-moz mdotb-moz left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants