Repository navigation
fix: stabilize the SMS integration tests and run them once per PR - #68
Merged
Merged
Conversation
The google_apis_playstore image updates Play services a few minutes after boot. The update force-stops Play services, which closes the consent dialog and drops the SMS retriever registration, so whichever test overlaps it fails. Disable Play Store before the tests start. Remove the SMS resend loop from run_sms_tests.sh. It was added for slow retriever registration, but healthy runs pass on the first send and resends never reached the app in the failing runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The SMS job already runs the whole integration test file, so the shared Android job repeated 15 of its 18 tests and cost a second build and emulator. Skip the shared platform jobs and let the SMS job fail CI now that it no longer flakes on Play services updates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
Flaky job.
Integration Tests (Android Emulator, SMS and hint)failed intermittently: 3 of the last 8 runs with a recorded result. The overall CI run still showed green because ofcontinue-on-error.The
google_apis_playstoreimage starts with an old copy of Play services, and Play Store updates it a few minutes after boot. The update force-stops Play services (installPackageLIin logcat), and both SMS APIs run inside it, so whichever test overlaps the update fails:The consent failure is well supported by logcat. The link to the retriever timeouts is inferred, because passing runs don't upload logcat to compare against.
Duplicate tests. The SMS job runs all 18 tests in
smart_auth_test.dart, and the shared Android job ran 15 of them again, at the cost of a second app build and emulator on every PR.Changes
ci.yml: disable Play Store withpm disable-userbefore the tests start. It lives in the workflow so local emulators keep their Play Store.run_sms_tests.sh: remove the SMS resend loop from fix: improve SMS retriever reliability in integration tests #62. It assumed slow retriever registration, but healthy runs pass on the first send and all six resends failed in the broken runs.ci.yml: passplatforms: noneso the shared platform jobs are skipped and the SMS job is the only Android job.Test & Analyzestill runs.ci.yml: removecontinue-on-error, so an SMS job failure now shows as a red check.Verification
Before the
platforms: nonechange, the SMS job passed 2 of 2 runs on this branch: Play Store disabled, 18 of 18 tests, no startup retries. That includes the Play services version built into the image. Two passes don't prove the flake is gone, since this job usually passed before too.The
platforms: nonepath has not run yet. This push is its first run.Not changed
Main CIruleset only requiresci / Test & Analyze, so the SMS job shows red on failure but doesn't block merges. Adding it as a required check is a separate decision, best made after a longer clean streak.create-release.ymlkeepsplatforms: android, so releases run the general tests on the shared job but not the SMS and hint tests.🤖 Generated with Claude Code