-
Notifications
You must be signed in to change notification settings - Fork 3k
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-4133 Disable retries in fastlane #24251
Open
clarmso
wants to merge
6
commits into
main
Choose a base branch
from
cs/MTE-4133-bitrise-retries
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+46
−10
Open
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
39e6d4a
Enable retries in fastlane
clarmso c5635bf
Hardcode xcbeautify as the formatter. It's the default on Bitrise
clarmso 9a554a1
Sometimes we can open the tab tray
clarmso c2ab494
Create L10nSnapshotTests test plan. Enable test retries.
clarmso c54a8e1
Use test plan for L10n
clarmso c61388c
Use old wait for now.
clarmso File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ for lang in $LOCALES; do | |
echo "$(date) Snapshotting $lang" | ||
mkdir "l10n-screenshots/$lang" | ||
fastlane snapshot --project firefox-ios/Client.xcodeproj --scheme L10nSnapshotTests \ | ||
--number_of_retries 0 \ | ||
--number_of_retries 3 \ | ||
--skip_open_summary \ | ||
--xcargs "-maximum-parallel-testing-workers 2" \ | ||
--derived_data_path l10n-screenshots-dd \ | ||
|
@@ -46,7 +46,7 @@ for lang in $LOCALES; do | |
if [ "$?" != "0" ]; then | ||
echo "Fastlane exited with code: $?" | ||
exit $? | ||
elif grep -q "** TEST FAILED **"; then | ||
elif grep -q "TEST FAILED" "output.txt"; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "output.txt" was missing previously, so this line might not be working properly before. |
||
echo "Test/compilation failed" | ||
exit 1 | ||
elif grep -q "Caught error" "output.txt"; then | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I can't tell if the default value has changed or not by reading the documentation. Let's hard code this value.
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.
👀
testHistoryTableContextMenu
failed. The whole list of tests are rerun. This may not be what we want.https://app.bitrise.io/build/bc7e1954-3780-4157-afeb-51e10ad9ff3d?tab=log
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.
no, we don't want retries. Just one execution per locale no matter the reesult. Please see explanation here:https://mozilla.slack.com/archives/C02KSH6QNBS/p1737374666180979?thread_ts=1737374476.241319&cid=C02KSH6QNBS
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.
This option is ignored now by fastlane. We should use set the retry opion to off from xcode and to do that, we need to create a test plan for the L10n schema where we can configure that. I have done that locally, forced a test to fail, and there are no retries.
Please try that and let me know in case you want a hack session to do that together.
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.
I have created a
L10nSnapshotTests
test plan and have the schema to use the test plan.