Repository navigation
Conversation
The combined tests app can fail to launch on the simulator with empty Xcode build settings or "Unable to start the app on the device" after a successful flutter build. Product iOS e2e already retries that shape; smoke did not, so a flake failed the required check. Give smoke the same alarm-bounded retries, simulator recycle, numeric tally, and crash-report dump as reusable_e2e_ios.yaml. Co-authored-by: Jude Selase Kwashie <SelaseKay@users.noreply.github.com>
Contributor
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
SelaseKay
marked this pull request as ready for review
November 25, 2026 12:05
demolaf
approved these changes
Nov 27, 2026
Lyokone
requested changes
Nov 30, 2026
Lyokone
left a comment
Contributor
There was a problem hiding this comment.
The script itself is a faithful copy of the wrapper, but the timings were tuned for the per-package example apps and don't fit the smoke job. A few things to sort out before this goes in.
Co-authored-by: Jude Selase Kwashie <SelaseKay@users.noreply.github.com>
Co-authored-by: Jude Selase Kwashie <SelaseKay@users.noreply.github.com>
The SPM retry stays inside the 25 minute Build Application step, so the job budget is not 50 minutes of build time. Co-authored-by: Jude Selase Kwashie <SelaseKay@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
The combined
testsapp one2e-smokeiOS can fail to launch after a successfulflutter build ios.flutter testthen printsNo Xcode build settings have been found/Unable to start the app on the deviceand0 tests passed, 1 failedwithout running any tests. Product iOS e2e already retries that launch-failure shape inreusable_e2e_ios.yaml; the smoke iOS job ranflutter testonce and treated the flake as a real failure.This PR extracts that wrapper into
.github/workflows/scripts/flutter-test-ios-retry.sh(the iOS twin offlutter-test-android-retry.sh). Both the smoke iOS job and the tworeusable_e2e_ios.yamlE2E steps call it, so there is one copy. A retry happens only when no test has started (✅ <test>from a passing run, or a❌line that is not❌ loading <file> (failed)). The synthetic0 tests passed, 1 failedlaunch failure is still retried. A hang or crash after a test has started is not. The last retry still recycles the simulator, the numeric tally is still the verdict, and the crash-report dump still runs on step failure.Alarms are
FLUTTER_TEST_ALARM_SECONDS,FLUTTER_TEST_RETRY_ALARM_SECONDS, andFLUTTER_TEST_FINAL_ALARM_SECONDS. Defaults stay 900 / 600 / 600, which is what the per-package jobs used. The smoke job sets all three to 1200. The last six passing smoke runs onmaintook 660, 672, 684, 722, 800, and 821 seconds, and 300–554 seconds of that was the Xcode build insideflutter testeven afterBuild Application, so a later attempt is not a warm 600 second run. 1200 is 379 seconds over the slowest of those.The smoke E2E step is 85 minutes (about 74.5 in the worst case: emulator boot, three 20 minute attempts, the log dump, and an 11 minute simulator recycle). The smoke job is 160 minutes so a job-level timeout does not skip the crash dump. The reusable iOS step is 55 minutes and the job is 130: 900 + 90 + 600 + 660 + 600 seconds is 47.5 minutes, which did not fit the old 45 minute step. Nightly mode stays at 5 minutes. Product-e2e alarms are unchanged.
The smoke macOS job,
reusable_e2e_macos.yaml, ande2e_tests_pipeline.yamlstill have their own wrappers. That is a separate follow-up.Related Issues
Seen on #19010 and independently on https://github.com/firebase/flutterfire/actions/runs/45442661602. No tracking issue.
Checklist
///).melos run analyze) does not report any problems on my PR.Breaking Change
Test plan
e2e-smoke/iosruns on this PR (a.github/workflowschange should select every platform).Result tally: passed=N failed=0with N > 0.Launch failure - retryingand then either recover or still fail after three attempts — never a green job with0 tests passed.