Skip to content

ci: retry iOS smoke e2e launch failures - #19012

Open
SelaseKay wants to merge 4 commits into
mainfrom
invertase/e2e-smoke-ios-retry-009d
Open

SelaseKay wants to merge 4 commits into
mainfrom
invertase/e2e-smoke-ios-retry-009d

Conversation

@SelaseKay

@SelaseKay SelaseKay commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

The combined tests app on e2e-smoke iOS can fail to launch after a successful flutter build ios. flutter test then prints No Xcode build settings have been found / Unable to start the app on the device and 0 tests passed, 1 failed without running any tests. Product iOS e2e already retries that launch-failure shape in reusable_e2e_ios.yaml; the smoke iOS job ran flutter test once 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 of flutter-test-android-retry.sh). Both the smoke iOS job and the two reusable_e2e_ios.yaml E2E 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 synthetic 0 tests passed, 1 failed launch 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, and FLUTTER_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 on main took 660, 672, 684, 722, 800, and 821 seconds, and 300–554 seconds of that was the Xcode build inside flutter test even after Build 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, and e2e_tests_pipeline.yaml still 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

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (melos run analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

Test plan

  • Confirm e2e-smoke / ios runs on this PR (a .github/workflows change should select every platform).
  • A green run should print Result tally: passed=N failed=0 with N > 0.
  • If the flake hits, the log should show Launch failure - retrying and then either recover or still fail after three attempts — never a green job with 0 tests passed.

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>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@SelaseKay
SelaseKay marked this pull request as ready for review November 25, 2026 12:05

@Lyokone Lyokone left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread .github/workflows/e2e_tests_smoke.yaml Resolved
SelaseKay and others added 3 commits December 1, 2026 07:22
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>
@SelaseKay
SelaseKay requested a review from Lyokone December 2, 2026 13:12

This branch has not been deployed

No deployments
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.

3 participants