test(core): Multi-isolate spike evidence for Amplify configure (#5302) - #7266
Draft
cadivus wants to merge 1 commit into
Draft
test(core): Multi-isolate spike evidence for Amplify configure (#5302)#7266cadivus wants to merge 1 commit into
cadivus wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7266 +/- ##
==========================================
+ Coverage 40.97% 40.98% +0.01%
==========================================
Files 121 121
Lines 8273 8273
Branches 3598 3598
==========================================
+ Hits 3390 3391 +1
+ Misses 4883 4882 -1 🚀 New features to boost your workflow:
|
cadivus
force-pushed
the
feat/isolate-spike-bg-messenger
branch
2 times, most recently
from
August 12, 2026 12:19
2702123 to
a0416c8
Compare
…5302) Spike for #5302. Test-only; no production code touched. - amplify_core: a spawned isolate inherits no Amplify state and completes `configure()` on its own, without disturbing the parent. The per-instance `AmplifyAlreadyConfiguredException` guard is unchanged. - amplify_flutter: a bare `Isolate.spawn`ed isolate has no `BinaryMessenger`, so platform channel calls throw; passing `RootIsolateToken` to `BackgroundIsolateBinaryMessenger.ensureInitialized` installs one. - amplify_datastore example: proves the native SDK is a process-wide singleton, so a spawned isolate with fresh Dart state still hits an already-configured native Amplify. Registered in `main_test.dart` so it runs on the existing e2e_android legs; gated to Android, skipped on e2e_ios. - amplify_secure_storage example: the native Pigeon round trip from a background isolate. Left device-gated and out of CI -- that example has web and wasm legs, and `dart:io`/`dart:isolate` do not compile for web. Carries a testing plan in its header.
cadivus
force-pushed
the
feat/isolate-spike-bg-messenger
branch
from
August 12, 2026 13:00
a0416c8 to
5f163d7
Compare
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.
configure()on its own, without disturbing the parent. The per-instanceAmplifyAlreadyConfiguredExceptionguard is unchanged. →packages/amplify_core/test/amplify_class_isolate_test.dartIsolate.spawned isolate has noBinaryMessenger, so platform-channel calls throw;RootIsolateToken+BackgroundIsolateBinaryMessenger.ensureInitializedinstalls one (the binding still does not exist). →packages/amplify/amplify_flutter/test/isolate_binary_messenger_test.dart(first tests in this package, soflutter testnow runs there)AmplifyAlreadyConfiguredExceptionback from Kotlin (dartStateWasEmpty: true+errorCode: AmplifyAlreadyConfiguredExceptionin one run). Runs and passes on the existinge2e_androidlegs (API 24 + 35), skipped one2e_ios. →packages/amplify_datastore/example/integration_test/isolate_native_singleton_test.dart. The secure-storage Pigeon harness stays device-gated with a testing plan (that example has web/wasm legs;dart:io/dart:isolatedo not compile for web).