Skip to content

feat(DW-1668): extract a pure cache→live handoff/empty-view policy and unit test it - #1694

Open
abaranouski wants to merge 4 commits into
feat/kotlin-sdk-phase-1from
feat/DW-1668
Open

abaranouski wants to merge 4 commits into
feat/kotlin-sdk-phase-1from
feat/DW-1668

Conversation

@abaranouski

@abaranouski abaranouski commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Known gaps

  • Run-suite this round came back FAIL (DW-1668/poc/artifacts/05-junit.md): the new Appium
    class TransactionHistoryEmptyFilterTest (in the linked tests PR) has 2/5 failures
    (testEmptyFilterSurvivesViewRecreation, testEmptyFilterSurvivesCacheRebuild). Both were
    re-run against the pre-fix base commit (fc6400ebb) on the same device and failed identically —
    a real, pre-existing stale-row defect this test newly documents, not a regression this PR
    introduced. The pre-existing defect is filed as Transaction history: stale filtered row resurfaces after view recreation or manual cache rebuild #1699; the two tests stay in the tests PR unchanged
    to document it. The QA-analysis stage (06-analysis.md) concludes the ticket's own ask is done
    and verified, so this PR is ready for review.
  • The isBuildingCache observer computes policy.swapToLive but never applies it (pre-review
    suggestion, non-blocking — see «Самопроверка» below): safe today because of a coroutine-ordering
    invariant, not because the code's structure guarantees it. Not fixed this round; flagged for a
    future consolidation if the reviewer wants it.
  • TransactionsListPolicyTest covers the extracted pure function only — it cannot catch a
    regression in the Fragment's observer wiring itself (needs a Robolectric/instrumented-Fragment
    harness this module doesn't have). Accepted as-is; the linked tests PR's new Appium class is the
    mitigation available without that infrastructure.

Тикет: DW-1668

WalletTransactionsFragment decided inline, inside loadStateFlow.collectLatest, when to swap the
cache adapter for the live one, when to show the loading overlay, and when to show the empty view —
five inputs combined ad hoc, with no unit coverage (the module has no Fragment/Robolectric harness).
Extracted the decision into a pure top-level function, transactionsListPolicy(...), returning a
TransactionsListPolicy(swapToLive, isLoading, isEmpty) data class; both call sites
(loadStateFlow's collector and the isBuildingCache observer) now call it and apply its result
instead of computing their own booleans.

Проверка

  • До: the five-input swap/loading/empty decision lived inline with no unit coverage; the
    isBuildingCache observer used its own narrower formula and never called
    showEmptyView()/showTransactionList() at all.
  • После: TransactionsListPolicyTest (8 cases) covers the four ticket-named sequences plus two
    review-driven edge cases, hand-verified against the function's algebra and run on the build host:
    ktlintCheck :wallet:compile_testNet3DebugKotlin test_testNet3DebugUnitTest →
    exit 0, tests="8" skipped="0" failures="0" errors="0". Device-level coverage for the
    Fragment-wiring sequences these unit tests cannot reach is in the linked tests PR; its one red
    signal is a pre-existing defect confirmed identical on base and fix (see Known gaps).

Риск мержа

  • Откат: обратимо — git revert, тестовый код и чистая экстракция без изменения внешнего
    поведения.
  • Кого затронет: только экран истории транзакций (WalletTransactionsFragment) — внешний
    контракт (БД, сеть, другие экраны) не менялся.

Критерии приёмки

Критерий Статус Где
Извлечь swap/loading/empty решение в чистую функцию входов cacheHasRows, loadStates.refresh, transactionsLoaded, isBuildingCache, cacheAdapterAttached, liveAdapter.itemCount, header-empty ✅ выполнено transactionsListPolicy(...), WalletTransactionsFragment.kt
Fragment становится тонким вызывающим кодом на обоих call site'ах ✅ выполнено loadStateFlow.collectLatest и isBuildingCache.observe
Sequence 1 — cached rows → empty live result, empty header → swap, затем empty view ✅ выполнено TransactionsListPolicyTest.kt
Sequence 2 — late cachedRows emission после detach → без повторного attach, empty view не меняется ✅ выполнено TransactionsListPolicyTest.kt
Sequence 3 — пересоздание view после settled empty результата → немедленный swap, без стейл-кэш вспышки ✅ выполнено TransactionsListPolicyTest.kt + линкованный Appium-тест (красный — см. Known gaps)
Sequence 4 — снятие фильтра после empty результата → строки возвращаются ✅ выполнено TransactionsListPolicyTest.kt

Вне задачи: нет.

Самопроверка: pre-review (3 раунда, 06b-prereview.md) нашла и это привело к исправлению 2
блокирующих находок (round 2: isBuildingCache observer не вызывал showEmptyView()/
showTransactionList(); round 3: lastRefreshState не сбрасывался в onViewCreated). Финальный
раунд (SUGGESTIONS, 0 blocking) оставил 2 некритичных замечания открытыми: (1) isBuildingCache
observer не применяет policy.swapToLive — безопасно сегодня по коррутин-инварианту, не по
структуре кода; (2) тест покрывает только чистую функцию, не Fragment-wiring — нужна инфраструктура
(Robolectric), которой в модуле нет.

Tests PR: abaranouski/dashwallet-auto#27

Summary by CodeRabbit

  • Bug Fixes
    • Improved transitions from cached transactions to live results, preventing stale cached entries from reappearing after the live list settles.
    • Loading and empty states now account for available transactions, cache rebuilding, and whether the header contains content.
    • Refreshed views correctly display the settled transaction-list state, including when loading completed before the view was recreated.
    • Cache rebuild updates now refresh list and empty-state visibility, avoiding a blank screen when no transactions are available.

…d unit test it

WalletTransactionsFragment decided the cache→live adapter swap, the loading
overlay and the empty view inline inside its loadStateFlow collector, as a
function of several independently-arriving inputs (cache commit, Pager load
state, transactionsLoaded, isBuildingCache, cacheAdapterAttached). The module
has no Fragment/Robolectric harness, so none of that had tests beyond the
Appium filter test (#1666, follow-up DW-1668).

Extract transactionsListPolicy as a pure function of those inputs plus
liveAdapter.itemCount and whether the header is empty, returning the
swap/loading/empty decision. The Fragment now applies the result instead of
computing it inline. Unit tests cover the four handoff sequences from the
ticket (startup swap to an empty result, a late cache commit after detach,
view recreation after an empty result settled, clearing the filter) plus two
edge cases for the header and cache-rebuild overlay.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The transaction-list fragment now uses a shared policy to determine cache-to-live adapter handoff, loading visibility, and empty-state visibility. The policy accounts for header contents and cache rebuilds. Unit tests cover the policy’s state results.

Changes: Transaction list behavior

Layer / File(s) Summary
Transaction-list state policy
wallet/src/de/schildbach/wallet/ui/main/WalletTransactionsFragment.kt
The new policy calculates adapter handoff and loading and empty states from refresh, cache, live transaction, cache rebuild, and header state.
Fragment integration and policy tests
wallet/src/de/schildbach/wallet/ui/main/WalletTransactionsFragment.kt, wallet/test/de/schildbach/wallet/ui/main/TransactionsListPolicyTest.kt
The fragment stores the latest refresh state and applies policy results during load-state and cache-rebuild updates. Tests cover cache emissions, view recreation, refiltering, headers, and rebuild states.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Refactor

Possibly related issues

Possibly related PRs

  • dashpay/dash-wallet#1666: Changes the transaction-list handoff and display-state behavior that this PR moves into a policy and tests.

Suggested reviewers: hashengineering, thepastaclaw

Merge Risk: Minimal · up to f78aa

This change moves the transaction list's cache-to-live handoff, loading, and empty-view decisions into a tested policy function. No concrete regression was established. One timing edge case around cache rebuilds could not be fully ruled out, but it appears unlikely in practice.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: extracting the cache-to-live handoff and empty-view decision into a pure policy function with unit tests. It follows the conventional commit style and carries the tick…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names the main change: extracting the cache-to-live handoff and empty-view decision into a pure policy function with unit tests. It follows the conventional commit style and carries the ticket ID. The changeset adds transactionsListPolicy and TransactionsListPolicyTest, which match the title. The title is 83 characters, which is slightly long but still readable.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 47a5fb4 and f78aad7.

Files selected for processing: 2

  • wallet/src/de/schildbach/wallet/ui/main/WalletTransactionsFragment.kt
  • wallet/test/de/schildbach/wallet/ui/main/TransactionsListPolicyTest.kt

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@thepastaclaw

thepastaclaw commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

✅ Final review complete — no blockers (commit f78aad7)

@thepastaclaw thepastaclaw 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.

Final validation — Phase 1 + Phase 2

The extraction preserves the existing cache-to-live handoff and loading/empty decisions; no behavioral regression was identified. One non-blocking test-coverage suggestion remains for a reachable rebuild state where loading and empty outputs overlap. Current build and check jobs pass; the automated review remains pending, and no local builds or tests were run.

🟡 1 suggestion(s)

Approved: nothing here blocks the merge. The non-blocking findings are optional: fix them forward, in this PR or a follow-up, without waiting for another review round.

Review provenance

Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)

  • Triage: low by gpt-6.1-sol (effort low) — This is a contained extraction of existing transaction-list display decisions into a pure function with focused unit tests, without changing critical surfaces or external contracts.
  • Phase 1 reviewers: glm-5.3-flash — general (completed, effort high); agent phase1-reviewer
  • Phase 1 model: glm-5.3-flash — zai quota: 5h 99% left, weekly 87% left; passed over gemini-3.8-flash-high (antigravity quota lookup failed)
  • Fresh verifier: gpt-6.1-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort medium); agent phase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review (PastaClaw). How to work through them:
- Verify each finding against the code; fix only what is real, as narrowly as the finding.
- If a finding is wrong, decline it on its thread in one or two sentences; the bot answers once and stops.
- To defer one, link a tracking issue on its thread (or reply asking the bot to file one).
- Suggestions don't block the merge, but most are worth fixing in this PR; judge each on its merits.
- Keep the PR's scope; don't grow it to satisfy hardening suggestions.
- Carried items were raised in an earlier round: read the thread first, and don't re-fix what you already fixed, declined or deferred there. Disputed and deferred items are already handled and are not listed.

In `wallet/test/de/schildbach/wallet/ui/main/TransactionsListPolicyTest.kt`:
- [SUGGESTION] wallet/test/de/schildbach/wallet/ui/main/TransactionsListPolicyTest.kt:156-158: Cover rebuilding after transactionsLoaded has already latched true
  The rebuild test only exercises transactionsLoaded=false. TxDisplayCacheService never resets that latch, but a later known-zero rebuild sets isBuildingCache=true again. With a settled refresh, no visible rows, and an empty header, the extracted policy therefore returns both isLoading=true and isEmpty=true. This preserves the existing behavior: showEmptyView() independently checks !isBuildingCache before displaying the empty text. Add a test for this overlapping output and document the sink's guard so the new policy coverage records that these flags are intentionally not mutually exclusive. This is a coverage improvement, not a behavioral regression.

Comment on lines +156 to +158
assertEquals(false, rebuildingWithCacheRowsVisible.isLoading)
}
}

@thepastaclaw thepastaclaw Nov 10, 2026 •

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.

✅ Resolved at f78aad75; see the replies below.

🟡 Suggestion: Cover rebuilding after transactionsLoaded has already latched true

The rebuild test only exercises transactionsLoaded=false. TxDisplayCacheService never resets that latch, but a later known-zero rebuild sets isBuildingCache=true again. With a settled refresh, no visible rows, and an empty header, the extracted policy therefore returns both isLoading=true and isEmpty=true. This preserves the existing behavior: showEmptyView() independently checks !isBuildingCache before displaying the empty text. Add a test for this overlapping output and document the sink's guard so the new policy coverage records that these flags are intentionally not mutually exclusive. This is a coverage improvement, not a behavioral regression.

Suggested change
assertEquals(false, rebuildingWithCacheRowsVisible.isLoading)
}
}
assertEquals(false, rebuildingWithCacheRowsVisible.isLoading)
}
@Test
fun `a later rebuild can request loading and empty handling together`() {
// transactionsLoaded remains true across later rebuilds. showEmptyView()
// separately suppresses the empty text while isBuildingCache is true.
val laterRebuild = transactionsListPolicy(
cacheAdapterAttached = true,
cacheHasRows = false,
refreshState = settled,
transactionsLoaded = true,
isBuildingCache = true,
liveItemCount = 0,
headerIsEmpty = true
)
assertEquals(TransactionsListPolicy(swapToLive = true, isLoading = true, isEmpty = true), laterRebuild)
}
}

source: glm-5.3-flash (phase1-reviewer: general)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

claude: @thepastaclaw Done — added the overlapping-latch test (a later rebuild can request loading and empty handling together) in ed0daacdb. Two further Fragment-wiring bugs turned up in local pre-review after that commit and are also fixed on this push: 9a1a31bcf made the isBuildingCache observer apply transactionsListPolicy's isLoading/isEmpty instead of its own formula (it never called showEmptyView()/showTransactionList()), and f78aad754 resets the new lastRefreshState field in onViewCreated so a recreated view can't read a stale value from the previous one. All 8 TransactionsListPolicyTest cases pass on the build host at current head f78aad754.

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.

Thanks for the update. reviewsys handles this finding and will respond in this thread and re-review on push once the draft PR is marked ready for review.

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.

Resolved (re-reviewed at f78aad75): Your added overlapping-latch test asserts all three policy outputs for transactionsLoaded=true during a later rebuild and documents the separate empty-text guard, which remains present in showEmptyView(). I also verified the observer visibility updates and onViewCreated refresh-state reset you described.

abvgedeika and others added 3 commits November 11, 2026 12:59
…true

thepastaclaw (PR #1694) flagged that the rebuild test only exercised
transactionsLoaded=false. Add the overlapping case: a later known-zero
rebuild with the latch already true returns isLoading=true and
isEmpty=true together, which showEmptyView() independently guards via
!isBuildingCache.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…bserver

The isBuildingCache.observe callback computed its own spinner-only
hasRows formula and never called showEmptyView()/showTransactionList().
A rebuild that completes without a fresh loadStateFlow emission (e.g.
replaceAll(emptyList()) over an already-empty cache, which triggers no
Room invalidation) left the screen at whatever loading/empty state the
prior emission last set — a blank history screen instead of the empty
view.

Capture the live Pager's last-seen refresh LoadState in a Fragment-scoped
var and re-run transactionsListPolicy from the isBuildingCache callback,
applying its full loading/empty result, so this path uses the same single
source of truth as loadStateFlow's own collector.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
onViewCreated already resets cacheAdapterAttached/cacheHasRows for the
documented case where this Fragment's view is torn down and rebuilt
while the Fragment instance survives (e.g. a bottom-nav tab swap), but
left lastRefreshState holding the previous view's settled LoadState.
isBuildingCache's observer now feeds that stale value into
transactionsListPolicy, so a redelivered StateFlow value arriving before
the new view's own loadStateFlow emission could show the empty view
over a wallet that has history. Reset it to LoadState.Loading alongside
its siblings, for the same reason.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@thepastaclaw

Copy link
Copy Markdown
Contributor

@abaranouski on it — I've queued this as job cj-20261112-082825-3b04 and will reply here or link a PR when there's something to look at.

@abaranouski
abaranouski marked this pull request as ready for review November 12, 2026 08:36

@thepastaclaw thepastaclaw 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.

Re-review — Final validation — Phase 1 + Phase 2

At f78aad7, the rebuild observer now updates loading/empty visibility and view recreation resets the saved refresh state; no blocking regression was found. One non-blocking consolidation suggestion remains because the two callers apply different subsets of the extracted policy. This was a static review: current CI build and check jobs pass, the review check is pending, and the eight policy-test results remain author-reported rather than independently executed.

🟡 1 suggestion(s)

Approved: nothing here blocks the merge. The non-blocking findings are optional: fix them forward, in this PR or a follow-up, without waiting for another review round.

Review provenance

Source: reviewer 1: muse-spark-1.3-contributor (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)

  • Triage: normal by gpt-6.1-sol (effort low) — The change extracts and rewires transaction-list loading, adapter handoff, and empty-state decisions across lifecycle observers with sequence tests, requiring ordinary behavioral review but touching no critical surface.
  • Phase 1 reviewers: muse-spark-1.3-contributor — general (completed, effort xhigh); agent phase1-reviewer
  • Phase 1 model: muse-spark-1.3-contributor — not quota-gated; passed over gemini-3.8-flash-high (antigravity quota lookup failed), glm-5.3-flash (not used above high effort; tier asks max)
  • Fresh verifier: gpt-6.1-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort high); agent phase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review (PastaClaw). How to work through them:
- Verify each finding against the code; fix only what is real, as narrowly as the finding.
- If a finding is wrong, decline it on its thread in one or two sentences; the bot answers once and stops.
- To defer one, link a tracking issue on its thread (or reply asking the bot to file one).
- Suggestions don't block the merge, but most are worth fixing in this PR; judge each on its merits.
- Keep the PR's scope; don't grow it to satisfy hardening suggestions.
- Carried items were raised in an earlier round: read the thread first, and don't re-fix what you already fixed, declined or deferred there. Disputed and deferred items are already handled and are not listed.

In `wallet/src/de/schildbach/wallet/ui/main/WalletTransactionsFragment.kt`:
- [SUGGESTION] wallet/src/de/schildbach/wallet/ui/main/WalletTransactionsFragment.kt:488-489: Apply the complete policy through one Fragment-local renderer
  The building observer applies isLoading and isEmpty but ignores swapToLive, while the loadStateFlow collector applies all three outputs. These outputs are coupled: transactionsListPolicy excludes cached rows from its visibility calculations whenever swapToLive is true, assuming that the adapter swap is also performed. The collector currently updates lastRefreshState and swaps synchronously without suspension, so this is a consistency improvement rather than a demonstrated behavioral regression. Extract a Fragment-local applyPolicy function that performs the guarded adapter swap before updating visibility, and call it from both observers. This keeps adapter ownership in the Fragment and makes both callers honor the policy's complete contract.

Comment on lines +488 to +489
binding.loading.isVisible = policy.isLoading
if (policy.isEmpty) showEmptyView() else showTransactionList()

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.

🟡 Suggestion: Apply the complete policy through one Fragment-local renderer

The building observer applies isLoading and isEmpty but ignores swapToLive, while the loadStateFlow collector applies all three outputs. These outputs are coupled: transactionsListPolicy excludes cached rows from its visibility calculations whenever swapToLive is true, assuming that the adapter swap is also performed. The collector currently updates lastRefreshState and swaps synchronously without suspension, so this is a consistency improvement rather than a demonstrated behavioral regression. Extract a Fragment-local applyPolicy function that performs the guarded adapter swap before updating visibility, and call it from both observers. This keeps adapter ownership in the Fragment and makes both callers honor the policy's complete contract.

source: muse-spark-1.3-contributor (phase1-reviewer: general); gpt-6.1-sol (phase2-reviewer: general)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

claude: @thepastaclaw Thanks — and this matches our own local pre-review finding on the same gap (06b-prereview.md). We traced it the same way: it confirms this is not a demonstrated behavioural regression, just a consistency improvement, since the collector updates lastRefreshState and performs the adapter swap synchronously with no suspension point in between. We're keeping this PR scoped to the transactionsListPolicy extraction and the two wiring fixes (9a1a31bcf, f78aad754); the Fragment-local applyPolicy consolidation you describe goes with the next change to this Fragment rather than into this PR.

@HashEngineering

Copy link
Copy Markdown
Collaborator

QA — run 50, build 12000301 (12.0.3-qa01): no regression seen, but no targeted stream either

Stating this one precisely, because "it was in the build and nothing broke" is weaker evidence than a pass and should not be read as one. Commit under test: f78aad75.

What it got

This PR was in the build for every device stream and was exercised incidentally by every restore, rescan, Reset Wallet and in-place upgrade in the run — on wallets of 4, 11 and 3,294 transactions, including a restore of the large reference wallet and a full Reset-and-restore cycle.

No empty-list flash and no stuck list was observed in any of them.

What it did not get

The run did not construct the cases this PR's own unit tests cover — view recreation resetting lastRefreshState, a later rebuild latched with transactionsLoaded=true, the policy applied from the isBuildingCache observer. So this is "nothing regressed in ordinary use", not "the handoff policy was verified".

If a targeted stream would be useful — rotation or process death during isBuildingCache, a backgrounded rebuild, a restore interrupted mid-cache — it can be run against this same signed APK; say the word and it will be.

Build provenance

Build: qa/integration-12.0.3 @ 883e49e4 = feat/kotlin-sdk-phase-1 @ 83a56f72 — the v12.0.2 tag, the commit that shipped to Google Play — plus ten PRs merged in this order: #1686 #1712 #1719 #1548 #1694 #1697 #1713 #1721 #1717 #1718. All ten merged clean. No branch was rebased or updated, by request, so this is each PR as its author left it. The order was settled by trial-merging rather than by GitHub's mergeable flag.

The SDK pin does not move — int36, the same pin 12.0.2 shipped with, and checked rather than assumed: libdash_sdk_jni.so was unpacked from this APK and from the shipped 12.0.2 and compared byte for byte (60,350,088 B, sha256 950faef8a1a6fe2d…, identical). Everything reported above is therefore an app change, not an engine one.

APK: versionCode 12000301, 328,718,680 B, sha256 f5684c4e4ec8f80a5642d2cb2074e17970d1156f7af6034b3b3409e87c2a8ce7, project release key. _testNet3 only — no mainnet or prod arm was built, by request.

Run: QA run 50, testnet, 2026-11-19. Five Android 16 devices plus one at API 29. Unit tests on the merged tree: 5,007 passing, 0 failures.

@HashEngineering

Copy link
Copy Markdown
Collaborator

QA run 52 — carried forward unchanged, plus upgrade and unit-test coverage

This PR is in builds 12000303 and 12000304 at commit f78aad754 — byte-identical to the commit run 50 tested, which I verified rather than assumed. Its run 50 results therefore stand as they are, and run 52 did not re-run them.

What run 52 adds for this PR specifically:

  • Three in-place upgrades (12000302 → 12000303 → 12000304) with this PR present: balances, unspent and total outputs, shielded notes, identities and contact requests byte-identical before and after each one.
  • Unit tests on 12000304: 4,779 tests across 330 classes, 0 failures, 0 errors, 1 skipped. 12000303 never had them run; that gap is now closed.
  • No crash, ANR, fatal exception or low-memory kill on any device across the run.

No new finding against this PR.

How this was tested

Builds. 12000303 = feat/kotlin-sdk-phase-1 @ 83a56f723 (the v12.0.2 tag) + Kotlin SDK int42 + dashj-platform 5.1.0-dev.3-20261123.212721-1, with #1686, #1712, #1719, #1548, #1694, #1697, #1713, #1721, #1717, #1718 and #1730 merged at their then-current heads.
12000304 = the same, plus #1736, and with #1725/#1721/#1718/#1714 taken from qa/spv-restart-with-1721-1718 @ 9244f3324 instead of merged separately. APK sha256 96422c3acd8dab7939ab12402d407a5500326f454564aae5b877e6c9e7e2c253.

Devices. Android 16 (API 36) emulators, testnet, release-signed builds. Platform protocol 14.

Unit tests on 12000304: 4,779 tests across 330 classes, 0 failures, 0 errors, 1 skipped.

Both SDK native libraries are byte-identical in size across the two builds, so differences between them come from the PRs and not from the SDK underneath.

Full report: https://github.com/HashEngineering/dash-wallet-qa-report — run 52.

@HashEngineering

Copy link
Copy Markdown
Collaborator

QA run 56 — PASS on a 7,459-transaction wallet

Tested where a handoff gap would actually show: a wallet of 7,459 transactions, cold start, sampling the History view every ~2 s for 24 samples.

samples showing history content 23
samples showing the empty view 0
first content visible sample 2

The cached rows render immediately and "no transactions to display" never appears during the cache → live handoff.

A correction I owe you

My first attempt at this measurement reported 0 empty views and 0 rows, which reads like a pass but was simply blind: the probe matched row labels Received|Sent|Internal|Topup Fee, and this wallet's history is CoinJoin-grouped — it renders as "23 November / 987 transactions / Mixing Transactions". Nothing matched while the screen was full. The figures above are from the corrected probe, which also matches the grouped forms.


QA run 56, 2026-11-30. Build 12000305 (12.0.3-qa05), branch qa/integration-12.0.3-qa05
off feat/kotlin-sdk-phase-1 @ 19ec4858dd — twelve PRs in ten merges, no conflicts.
Pins: Kotlin SDK 5.1.0-int43-20261126.183836-1, dashj-platform 5.1.0, dashj 24.0.0 — the
same pairing the shipped 12.0.3 builds use. APK sha256
76d464966bcad134c9e5360d8524ae5fb2850b46f6d9e23f83f9d0d08d56a2c3.
Unit tests 4,841 / 330 classes, 2 failures, both reproduced on the bare base.
Devices: Android 16 emulators, testnet at Platform protocol 15.

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.

4 participants