fix: skip push registration in e2e - #1245
Draft
ovitrif wants to merge 8 commits into
Draft
Conversation
|
ovitrif
marked this pull request as draft
September 10, 2026 13:13
ben-kaufman
previously approved these changes
Sep 10, 2026
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.
Closes #1244
This PR skips push notification registration in E2E builds so those wallets stop registering short-lived FCM tokens with the Bitkit notification server.
Description
LightningRepo.registerForNotificationsreturns early with one info log whenEnv.isE2eTestis set. It is the single path for node start,FcmService.onNewToken, and the DevSettings action, so all three skip together. The FCM token fetch and keychain cache are simply not reached; receive-side handling is untouched.Skipped push registrationin E2E builds.E2E=trueis already set on exactly the builds that matter: the three E2E APK steps ine2e.ymlande2e_migration.yml, plusjust e2e. No new flag, no Gradle or workflow change.ci.ymlandui-testsnever launch the app on a device, and release builds never setE2E.Behavior on first launch, token rotation, wallet restore, and every non-E2E build is unchanged. Node-not-running handling is unchanged because the guard sits inside
executeWhenNodeRunning.Context: Blocktank staging thread; server-side pruning of dead tokens is synonymdev/bitkit-notification-server#19.
Follow-up: iOS counterpart synonymdev/bitkit-ios#739, same choke point.
Design
N/A — no UI changes.
Preview
N/A — no user-visible changes.
QA Notes
Manual Tests
just e2e assembleDevDebug→ install → create wallet → node start: log showsSkipped push registration in E2E buildand noRegistering device for notifications…line.regression:just build→ create wallet → node start:registerForNotificationsproceeds to the FCM token fetch as before.just e2e assembleDevDebug→ Settings → Dev Settings → Register For LSP Notifications: toastSkipped push registration.WakeToTimeoutreject lines: no new node ids appear.Automated Checks
Env.isE2eTest.Env.isE2eTestis a compile-time constant, so the skip path is exercised by anyE2E=truebuild, including every CI E2E run.just buildandjust lintpass on the current head.