qml: Compile application sources ahead of time

bitcoin-core/gui-qml: PR #863

3 suggestions

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

Optional improvements

Link

[suggestion] · Linux stale-cache read monitoring misses the Qt ≥ 6.6 policy in CI

CI never runs the real Linux stale-cache read check on Qt ≥ 6.6, leaving the QML_DISK_CACHE=aot branch without application-level coverage for read-only host-cache access.

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

Details and suggested fix

The real smoke runs only in artifacts.yml: Ubuntu 24.04 uses Qt 6.4 and therefore the disable-cache branch, while macOS skips inotify monitoring. The Qt 6.10 Linux job runs CTest, whose cache-policy entry patches out launch(); the C++ policy test only checks environment values. Add the existing real-smoke step to the Qt 6.10 job with BITCOIN_CORE_APP pointing to build/bin/bitcoin-core-app. Set QML_TEST_QPA_PLATFORM=minimal if needed. This would check that the newer policy avoids opening a stale unit even when its contents remain unchanged.


Link

[suggestion] · Cache smoke test does not confirm that preinit.qml loaded

The smoke can pass if startup remains alive without reaching preinit.qml, because it checks only five seconds of process survival; no actual false pass is established.

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

Details and suggested fix

The upgrade fixture seeds a stale unit only for preinit.qml, but launch() terminates any surviving process after the observation window without confirming that this document's root exists. A stall before engine->load, or skipped onboarding, would leave the monitored file untouched and satisfy the cache assertions. Fresh profiles currently select onboarding, and failed root creation exits with an error. Wait with a bounded timeout for an observable signal emitted after the preinit root exists, and add an alive-but-not-ready control that must fail. Capture output in a file rather than an undrained pipe so diagnostics cannot themselves block startup.


Link

[suggestion] · Canonical formatter's minimum-integer fix lacks regression coverage

The canonical format() overflow fix lacks an INT64_MIN regression test; no current caller producing that value was identified.

Location: qml/bitcoinunits.cpp:44 (head).

Details and suggested fix

The existing minimum-integer row invokes formatForDisplay(), whose magnitude calculation is separate, so it cannot catch a regression to signed negation in format(). Add direct format() assertions using SeparatorStyle::NEVER and std::numeric_limits<qint64>::min(): expect -9223372036854775808 for SAT and -92233720368.54775808 for BTC. These cover the unsigned quotient and the nonzero remainder introduced by this sanitizer fix.


Coverage details

Earlier concerns

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