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

Refactor MTE-2095 [v124] Consolidate and optimise bitrise files #18538

Merged

Conversation

isabelrios
Copy link
Contributor

@isabelrios isabelrios commented Feb 2, 2024

📜 Tickets

Jira ticket

Let's have an idea bout how the bitrise.yml file will look like. Using this PR to make so improvement and reduce code duplication too.

I addition to the consolidation, I'm doing some optimisations here to try to reduce the file's size

💡 Description

📝 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

@isabelrios isabelrios closed this Feb 2, 2024
@isabelrios isabelrios reopened this Feb 2, 2024
@mobiletest-ci-bot
Copy link

mobiletest-ci-bot commented Feb 2, 2024

Warnings
⚠️ Pull Request size seems relatively large. If this Pull Request contains multiple changes, please split each into separate PR will helps faster, easier review. Consider using epic branches for work that would affect main.
Messages
📖 Edited 5 files
📖 Created 0 files

Generated by 🚫 Danger Swift against 5a3d0e2

@isabelrios isabelrios force-pushed the irios-consolidate-bitriseyml-files branch 2 times, most recently from 1296d83 to ba1193f Compare February 5, 2024 17:06
@isabelrios isabelrios marked this pull request as ready for review February 5, 2024 17:06
@isabelrios isabelrios requested a review from a team as a code owner February 5, 2024 17:06
@isabelrios isabelrios requested review from jjSDET and AaronMT February 5, 2024 17:06
@isabelrios isabelrios force-pushed the irios-consolidate-bitriseyml-files branch from ba1193f to 102ffe2 Compare February 6, 2024 08:56
@isabelrios isabelrios marked this pull request as draft February 6, 2024 13:00
@isabelrios isabelrios marked this pull request as ready for review February 6, 2024 13:52
@isabelrios isabelrios marked this pull request as draft February 6, 2024 17:03
@isabelrios isabelrios force-pushed the irios-consolidate-bitriseyml-files branch from a329d4a to 43684f0 Compare February 7, 2024 11:26
@isabelrios isabelrios marked this pull request as ready for review February 7, 2024 11:30
@isabelrios isabelrios requested a review from a team as a code owner February 7, 2024 11:30
@isabelrios isabelrios changed the title Refactor MTE-2095 [v124] Consolidate both bitrise files Refactor MTE-2095 [v124] Consolidate and optimise bitrise files Feb 7, 2024
@isabelrios isabelrios closed this Feb 7, 2024
@isabelrios isabelrios reopened this Feb 7, 2024
# inputs:
# - content: |
# set -euxo pipefail
# echo "$BITRISE_ARTIFACT_PATHS"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this going to need the changes similar to firefox_pull_and_unzip-dependencies?

derived_data=${BITRISE_ARTIFACT_PATHS##*|}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, explained in Slack, the value we get in that variable depends on the artifacts that we generate in previous stage and that are passed to next one.
Since we specify that in this line:

- artifact_sources: build_applications.configure_build_fennec

I don't expect changes in this.
What we could do is to try to have a way to get that derived_data folder path for both app and re-use this code. But it will be easier to implement once we see both apps running I guess

@isabelrios isabelrios force-pushed the irios-consolidate-bitriseyml-files branch from 67ebc25 to 5a3d0e2 Compare February 8, 2024 10:58
@AaronMT AaronMT self-requested a review February 8, 2024 15:00
# run_if: '{{getenv "BUILD_FOCUS_IOS" | eq "true"}}'
run_tests:
workflows:
- build_and_test_1_SmokeTest2:
- build_and_test_1_SmokeTest1:
Copy link
Collaborator

Choose a reason for hiding this comment

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

💯 Thanks for renaming this workflow. test_1 and SmokeTest2 has been inconsistent here.

run_if: '{{getenv "BUILD_FIREFOX_IOS" | eq "true"}}'
- build_and_test_2_SmokeTest:
- build_and_test_2_SmokeTest2:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ditto. Smoketest2 instead of just Smoketest. 👍🏼

@@ -245,7 +245,7 @@
default = "YES">
</TestPlanReference>
<TestPlanReference
reference = "container:firefox-ios-tests/Tests/SmokeXCUITests.xctestplan">
reference = "container:firefox-ios-tests/Tests/Smoketest1.xctestplan">
Copy link
Collaborator

Choose a reason for hiding this comment

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

💯 Yes, this test plan should be called Smoketest1.

@isabelrios isabelrios merged commit bd14b38 into mozilla-mobile:main Feb 9, 2024
10 checks passed
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