Move detailed QML functional coverage into integration tests #1090

Open
johnny9 wants to merge 39 commits from work/optimize-functional-tests-activity into qt6 AGit
johnny9 commented 2026-11-09 10:33:59 +00:00 (Migrated from github.com)

Move detailed QML feature regressions into 15 application integration modules using real Core regtest nodes, models and QML. Consolidate the remaining Python coverage into 11 interface_qml_* suites mapped to feature introduction.

Keep functional tests for feature smoke and happy paths, executable startup/shutdown, restart persistence, multi-node behavior, historical/Qt wallet compatibility and external-signer subprocesses. Detailed validation and failure permutations belong in integration or unit/component tests. Document the actual integration labels, paths and stage selection; preserve exit 77 for mixed pass/skip suites.

Cover encrypted Receive address generation with cancellation, wrong-password retry, rotation and automatic relocking; password-text cleanup; malformed and foreign PSBT review/recovery; and live watch-only review/export without offering a final Send action. Reuse the hardened-wallet fixture across Receive and Send.

Fix issues exposed by the migration: known-PSBT recognition, picker placement, send-completion focus, retained wallet/ribbon teardown, older/static Qt compatibility and asynchronous UI readiness. Finishing an unchanged amount no longer schedules another fee estimate and disables Review during its mouse press. Click helpers require a completed click, reject canceled presses, and re-check scrolling after deferred layout changes. Activity filter mocks now match production row-filter notifications and unchanged-range behavior. Unexpected QML warnings remain failures.

Validation at 1137c33186:

  • All 55 SendCreate and 57 ActivityList component checks pass locally on Qt 6.11.
  • Negative controls reproduce the unchanged-amount fee reschedule, the canceled press incorrectly reported as a click, deferred scrolling failure, and the mock's incorrect layout invalidation. The real watch-only test verifies exactly one Review click with Linux-style focus behavior.
  • All 122 runtime cases across all nine integration groups pass with zero failures or skips against the simulated CI merge and its exact Core revision, using Qt 6.11.2/minimal/software. The full run was outside the sandbox because macOS file-watcher delivery is restricted inside it; the two debug-log failures inside the sandbox also reproduce with the original helper.
  • Hosted CI passes on Ubuntu Qt 6.2, 6.4 and 6.10, Linux Depends, macOS Depends (static Qt 6.8), GUI functional tests, and Ubuntu artifacts: seven checks pass. All five previously failing platform test jobs pass.
  • The remaining macOS artifact job failed while cloning the public Core submodule (could not read Username for https://github.com), before application compilation. A rerun attempt was denied because this account lacks the required repository permissions; a maintainer rerun is needed. See https://github.com/bitcoin-core/gui-qml/actions/runs/43158774549/job/130984789769.

Local builds use HAVE_DECL_PIPE2=0 for the SDK 27/host macOS 26.6 symbol mismatch. No Core changes are committed. The broader unit/component error matrices remain separate work.

Move detailed QML feature regressions into 15 application integration modules using real Core regtest nodes, models and QML. Consolidate the remaining Python coverage into 11 `interface_qml_*` suites mapped to feature introduction. Keep functional tests for feature smoke and happy paths, executable startup/shutdown, restart persistence, multi-node behavior, historical/Qt wallet compatibility and external-signer subprocesses. Detailed validation and failure permutations belong in integration or unit/component tests. Document the actual integration labels, paths and stage selection; preserve exit 77 for mixed pass/skip suites. Cover encrypted Receive address generation with cancellation, wrong-password retry, rotation and automatic relocking; password-text cleanup; malformed and foreign PSBT review/recovery; and live watch-only review/export without offering a final Send action. Reuse the hardened-wallet fixture across Receive and Send. Fix issues exposed by the migration: known-PSBT recognition, picker placement, send-completion focus, retained wallet/ribbon teardown, older/static Qt compatibility and asynchronous UI readiness. Finishing an unchanged amount no longer schedules another fee estimate and disables Review during its mouse press. Click helpers require a completed click, reject canceled presses, and re-check scrolling after deferred layout changes. Activity filter mocks now match production row-filter notifications and unchanged-range behavior. Unexpected QML warnings remain failures. Validation at `1137c33186`: - All 55 SendCreate and 57 ActivityList component checks pass locally on Qt 6.11. - Negative controls reproduce the unchanged-amount fee reschedule, the canceled press incorrectly reported as a click, deferred scrolling failure, and the mock's incorrect layout invalidation. The real watch-only test verifies exactly one Review click with Linux-style focus behavior. - All 122 runtime cases across all nine integration groups pass with zero failures or skips against the simulated CI merge and its exact Core revision, using Qt 6.11.2/minimal/software. The full run was outside the sandbox because macOS file-watcher delivery is restricted inside it; the two debug-log failures inside the sandbox also reproduce with the original helper. - Hosted CI passes on Ubuntu Qt 6.2, 6.4 and 6.10, Linux Depends, macOS Depends (static Qt 6.8), GUI functional tests, and Ubuntu artifacts: seven checks pass. All five previously failing platform test jobs pass. - The remaining macOS artifact job failed while cloning the public Core submodule (`could not read Username for https://github.com`), before application compilation. A rerun attempt was denied because this account lacks the required repository permissions; a maintainer rerun is needed. See https://github.com/bitcoin-core/gui-qml/actions/runs/43158774549/job/130984789769. Local builds use `HAVE_DECL_PIPE2=0` for the SDK 27/host macOS 26.6 symbol mismatch. No Core changes are committed. The broader unit/component error matrices remain separate work.
rreview commented 2026-11-09 10:57:03 +00:00 (Migrated from github.com)

Earlier concerns neither republished nor resolved: 2 suggestions. See the Run archive linked from the Review report for their assessments.

🔵 Suggestion · Watch-only migration introduces an unsupported PSBT constructor

Source inspection shows that 7bf181be cannot compile the integration target against the unchanged Core pin; 53852f26 fixes the call twelve commits later.

Location: test/integration/signers/test_watchonly.cpp:66 at 7bf181be1ff9 (commit) (commit).

🔵 Suggestion · Default Click retries can conceal swallowed first clicks

The integration helper's default Click retries swallowed gestures and treats eventual delivery as success; no currently masked regression was identified.

Location: test/integration/fixture/test_util.h:201 (head).

🔵 Suggestion · Calendar Apply coverage bypasses pointer delivery

The calendar-range integration case invokes Apply's clicked() signal directly, leaving pointer accessibility untested; this does not establish a current UI defect.

Location: test/integration/wallet_activity/test_activity.cpp:292 (head).

🔵 Suggestion · Unlabelled scenario self-test is omitted from documented local runs

The new qml_scenario_runner CTest entry has no label, so the README's -L 'unit|qml' command skips its exit-status and stage-selection checks; unfiltered CI still includes them.

Location: test/CMakeLists.txt:8 (head).

Review coverage was incomplete.


Reviewed: 19a75d973e4b · Review report

<!-- ralph-major:bitcoin-core/gui-qml --> Earlier concerns neither republished nor resolved: 2 suggestions. See the Run archive linked from the Review report for their assessments. **🔵 Suggestion · Watch-only migration introduces an unsupported PSBT constructor** Source inspection shows that `7bf181be` cannot compile the integration target against the unchanged Core pin; `53852f26` fixes the call twelve commits later. Location: [test/integration/signers/test_watchonly.cpp:66 at 7bf181be1ff9 (commit)](<https://github.com/bitcoin-core/gui-qml/blob/7bf181be1ff9995a8024d8b1e83337b2ca995925/test/integration/signers/test_watchonly.cpp#L66>) (commit). **🔵 Suggestion · Default `Click` retries can conceal swallowed first clicks** The integration helper's default `Click` retries swallowed gestures and treats eventual delivery as success; no currently masked regression was identified. Location: [test/integration/fixture/test_util.h:201](<https://github.com/bitcoin-core/gui-qml/blob/19a75d973e4bc3e477143fb1fa92950fb139fb88/test/integration/fixture/test_util.h#L201>) (head). **🔵 Suggestion · Calendar Apply coverage bypasses pointer delivery** The calendar-range integration case invokes Apply's `clicked()` signal directly, leaving pointer accessibility untested; this does not establish a current UI defect. Location: [test/integration/wallet_activity/test_activity.cpp:292](<https://github.com/bitcoin-core/gui-qml/blob/19a75d973e4bc3e477143fb1fa92950fb139fb88/test/integration/wallet_activity/test_activity.cpp#L292>) (head). **🔵 Suggestion · Unlabelled scenario self-test is omitted from documented local runs** The new `qml_scenario_runner` CTest entry has no label, so the README's `-L 'unit|qml'` command skips its exit-status and stage-selection checks; unfiltered CI still includes them. Location: [test/CMakeLists.txt:8](<https://github.com/bitcoin-core/gui-qml/blob/19a75d973e4bc3e477143fb1fa92950fb139fb88/test/CMakeLists.txt#L8>) (head). Review coverage was incomplete. <!-- Review tier: sensitive --> --- Reviewed: [`19a75d973e4b`](<https://github.com/bitcoin-core/gui-qml/commit/19a75d973e4bc3e477143fb1fa92950fb139fb88>) · [Review report](<https://review.fish.foo/report/gui/1090-19a75d973e4bc3e477143fb1fa92950fb139fb88-3222-11.html>)
Sign in to join this conversation.
No description provided.