Repository navigation
test(android): await git commit success callback - #560
Merged
Codename-11 merged 2 commits intoSep 9, 2026
Merged
Codename-11 merged 2 commits into
Codename-11 merged 2 commits into
Conversation
Mutation success is published before detail refresh finishes and the callback runs. Await callback delivery explicitly instead of treating the state flow as a callback-completion barrier. Signed-off-by: Jack <JLHunzicker@gmail.com>
|
🤖 Hermes-Relay automated PR intake Thanks for the focused Android test fix! The PR targets A maintainer will review the implementation and CI results. |
12 tasks done
Owner
|
Hey @JackHunzicker, appreciate the PR - and the interest in the project 😁 This looks good! Thanks for splitting this out from #559 as well. Merging now! |
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.
Summary
Fix a race in the Android Git-state commit-success callback test. The test treated mutation success publication as proof that its callback had already run, although the ViewModel refreshes repository details before invoking the callback.
This is an independent test-only fix; it is not part of the hosted-room feature in #559.
Changes
GitTargetin aCompletableDeferredand await delivery with a bounded timeout.alpharepository assertion.Verification
Baseline:
df0fe59b0b11b5b1646b62b9d2c23ef791194984(freshly fetchedorigin/dev).Verified patch:
bb23e6ab483316b24931cfc3a9edc69197691a18. Its required hosted checks passed, including Android tests, lint and build. Local test scope is recorded below.All Android commands used the Windows machine-wide lane and the installed Android SDK, with
ANDROID_HOMEandANDROID_SDK_ROOTset.expected:<alpha> but was:<null>at the callback assertion.:app:testGooglePlayDebugUnitTest.GitStateViewModelTest,GitStateWriteViewModelTest, andGitStateExtrasViewModelTest.git diff --checkpassed.Screenshots
No visual change.
Compatibility / risk
Test-only. No upstream API, production behavior, storage, security/privacy, translation, server/plugin, desktop, or documentation changes. No migration or rollout required. Changelog: N/A, no user-visible change.
Lineage / contributor credit
devtest, discovered while checking feat(android): add capability-gated hosted rooms #559.Signed-off-bytrailer.Checklist
dev, unless this is adev→mainrelease PR or a focused production-tag hotfix PR tomainCHANGELOG.mdis updated for user-visible changes, or N/A is listed above