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 #23904

Merged
merged 36 commits into from
Dec 20, 2024

Conversation

clarmso
Copy link
Collaborator

@clarmso clarmso commented Dec 19, 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)

@clarmso clarmso requested a review from a team as a code owner December 19, 2024 22:11
@mobiletest-ci-bot
Copy link

mobiletest-ci-bot commented Dec 19, 2024

Messages
📖 Edited 2 files
📖 Created 0 files

Generated by 🚫 Danger Swift against 0d43594

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

@mdotb-moz mdotb-moz merged commit 622b94a into main Dec 20, 2024
19 of 21 checks passed
@mdotb-moz mdotb-moz deleted the cs/MTE-4206-focus-github-actions branch December 20, 2024 07:28
@clarmso
Copy link
Collaborator Author

clarmso commented Dec 20, 2024

@Mergifyio backport release/v134

Copy link
Contributor

mergify bot commented Dec 20, 2024

backport release/v134

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Dec 20, 2024
* 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)
clarmso added a commit that referenced this pull request Jan 8, 2025
#23904) (#23917)

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

* 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)

Co-authored-by: Clare So <[email protected]>
mdotb-moz pushed a commit that referenced this pull request Jan 14, 2025
#23904) (#23917)

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

* 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)

Co-authored-by: Clare So <[email protected]>
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