qml: Compile application sources ahead of time

bitcoin-core/gui-qml: PR #863

1 minor finding

Findings

Link

[minor] · Readiness fixtures depend on direct shebang-script execution

Source inspection shows that the three readiness fixtures would fail on native Windows, with whitespace in the Unix interpreter path, or with a noexec temporary directory, causing bitcoinqml_cache_policy_checks errors; no runtime failure was observed.

Location: test/functional/test_qml_cache_policy.py:41 (head).

Details and suggested fix

launch_script() writes an extensionless executable with #!{sys.executable} and passes it to launch(), which uses the file directly as subprocess.Popen's executable. Unix shebang parsing cannot preserve a whitespace-containing interpreter path, native Windows cannot execute this script directly, and a noexec temporary directory prevents execution. Popen consequently raises OSError instead of reaching the readiness, timeout, or exit-status assertions. The CTest entry does not exclude these environments. Adapt the synthetic child command to invoke [sys.executable, script, ...], following the explicit-interpreter pattern in test_qml_process_checks.py. This preserves real-process coverage without changing production launching.


Coverage details