Review report

bitcoin-core/gui-qml: PR #863

3 suggestions

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

Optional improvements

Link

[suggestion] · Linux stale-cache read coverage misses the Qt ≥6.6 AOT policy

No checked-in recurring job combines the real Linux stale-cache read monitor with the Qt ≥6.6 QML_DISK_CACHE=aot branch.

Location: .github/workflows/artifacts.yml:66 (head).

Details and suggested fix

The real smoke runs only in artifacts.yml, on Ubuntu 24.04 with distro Qt 6.4 and on macOS. Ubuntu therefore exercises the disable-cache branch, while macOS skips read monitoring and checks only files and contents. The Qt 6.10 CI job and the depends jobs run CTest, whose Python cache-policy entry mocks launch(). Component and integration tests load generated QML, and the C++ policy test checks environment values, but these checks do not seed and monitor a stale host unit. This leaves read-only host-cache regressions in the modern policy without recurring smoke coverage. Add the existing real-smoke step to the Linux Qt 6.10 job, pointing BITCOIN_CORE_APP at its built executable, and retain the mocked detector test separately.


Link

[suggestion] · Cache smoke test never confirms preinit.qml was loaded

The upgrade smoke can pass when the child stays alive without reaching preinit.qml, because it checks process survival rather than document readiness.

Location: test/functional/qml_test_cache_policy.py:127 (head).

Details and suggested fix

The stale unit is keyed only to :/qml/pages/preinit.qml, but launch() merely polls for an early exit for five seconds, then terminates the child and discards its output. A child stalled before the load, or a future startup path that skips onboarding, can leave the cache untouched and satisfy the assertions without exercising that lookup. No current startup stall or onboarding skip was found for this fresh-datadir invocation; failed root creation returns an error that the smoke catches. The mocked negative control tests the detector, not application readiness. Wait with a bounded timeout for an observable signal emitted after the preinit root exists, and fail with captured diagnostics if it never arrives. Add a control whose child remains alive without producing that signal.


Link

[suggestion] · Modern cache policy overrides the documented disable setting

On Qt ≥6.6, startup discards QML_DISABLE_DISK_CACHE, making the setting still supplied by the README and component/integration test environments ineffective.

Location: qml/qmlcachepolicy.cpp:17 (head).

Details and suggested fix

ConfigureQmlCachePolicy() removes an explicit QML_DISABLE_DISK_CACHE and replaces any QML_DISK_CACHE value with aot. Both the integration application and component runner apply this policy, and the new unit test deliberately requires the removal. Forcing embedded AOT matches the stated deployment goal, but it also removes these environment controls as a troubleshooting opt-out; availability of other Qt runtime fallbacks has not been established. Keep forced AOT if that is the intended policy, but document that the application overrides these controls and remove the inert disable setting from the README commands and test environments for executables that apply the policy. Retain it separately for tests that still need it. This keeps the instructions consistent without changing the requirement that generated-QML tests exercise embedded units.


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.