-
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
Changes from 2 commits
39e6d4a
c5635bf
9a554a1
c2ab494
c54a8e1
c61388c
5638e8f
dff1b83
c536cc0
ce86e9c
dc718ff
1f0779a
42dd48f
0b6048f
80ef0fd
8efa353
6a28ae6
7588b5a
c199e00
edc56e7
3312fd5
f73a493
ee1ea73
0da2f6b
0f19ac3
05a4018
46fc441
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,19 +34,20 @@ 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 \ | ||
--ios_version "18.2" \ | ||
--erase_simulator --localize_simulator \ | ||
--devices "iPhone 16" --languages "$lang" \ | ||
--output_directory "l10n-screenshots/$lang" \ | ||
--xcodebuild_formatter xcbeautify \ | ||
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. The default formatter on Bitrise is now |
||
$EXTRA_FAST_LANE_ARGS | tee output.txt | ||
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 | ||
|
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.