2 suggestions
Optional improvements
[suggestion] · Integration tests omit the application's generated QML units
The integration and component tests embed source QML rather than the generated units selected by Qt 6.6+ production builds, leaving AOT behavior beyond the startup smoke test uncovered.
Location: test/integration/CMakeLists.txt:25 (head).
Details and suggested fix
qt6_add_qml_module attaches the generated units only to bitcoin-core-app. Here, and in bitcoinqml_qmltests, qt6_add_resources instead embeds the application files as plain sources. Calling the production run() applies its cache policy but does not give the integration executable those generated units, so its settings-navigation and QML-warning assertions exercise a different execution form from Qt 6.6+ production builds. The artifact smoke test only launches onboarding for five seconds, and the GUI functional workflow uses Qt 6.4, where the policy selects the source fallback. Factor the module setup into a helper and apply it to the integration executable with a separate output directory, so a Qt 6.6+ integration job exercises generated units too. The mock-based component tests can remain source-only. No AOT-specific misbehavior has been observed.
[suggestion] · Stale-cache smoke test cannot detect reads without writes
The upgrade scenario checks only cache filenames and contents, so a host-cache read that leaves the file unchanged passes despite the test's stated no-host-cache-use guarantee.
Location: test/functional/qml_test_cache_policy.py:134 (head).
Details and suggested fix
The fixture seeds arbitrary invalid bytes at the hashed path for preinit.qml, launches the app, and then compares only the cache file set and the seeded file's contents. Qt could open and read that file without rewriting it and satisfy both assertions. The C++ unit test checks environment assignments directly, not effective cache access during a QML load. Keep the write checks and add read-sensitive observation of the dedicated cache directory, for example file-open monitoring on Linux, with a policy-bypassing control that demonstrates the fixture detects access. Whether removing or delaying the policy would leave the current smoke test passing depends on Qt's loader order and is not established here.