mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
qml: enforce QML lint and Core validation in CI #1096
No reviewers
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml!1096
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/qmllint-ci"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Enable QML static analysis and enforce the pinned Core checks against the app while preserving Qt 6.2 support.
qml_linttarget using Qt 6.10 tooling, generated C++ metadata, and both resource compatibility variants.ApplicationModelsinterface. Qualify model access and give extracted components explicit inputs and signals.ComponentBehavior: Boundand target-lessPropertyChanges. Other warnings and errors fail CI.Sanitizer exceptions cover intentional unsigned overflow in Qt's hash function and the independently reproduced Qt software texture-cache leak. Negative controls verify that unrelated integer errors and application leaks still fail, including leaks in an executable named
bitcoin-core-app.Local validation:
GUI sanitizer tests retain IPC, Core's 512 KiB stack limit, the original shutdown timeout, and strict stderr checks.
Latest review fixes and validation
At
f37f636d0b, onboarding and shared settings components require explicit settings-model injection, live Settings entry points provide their model, and the mocks expose only the accessor available in the current application mode. Developer settings are hidden while the live model is unavailable. Model ownership is unchanged.Validation: 28 onboarding, 28 settings-navigation and four settings-status tests pass. The missing-injection regression rejects the original default behavior. Strict lint for both compatibility variants matches the pristine PR head exactly: 11 existing Qt 6.11 property-override warnings per variant, with no introduced warnings; strict lint is therefore not locally green on that Qt version.
🟠 Minor · Sanitizer CI leaves the bootstrap and QML component runners uninstrumented
The new sanitizer job includes
bitcoinqml_bootstrap_tests,bitcoinqml_qmltestsand its warning probes without sanitizer instrumentation, leaving a coverage gap in the new gate rather than introducing a production regression.Location: cmake/Sanitizers.cmake:29 (head).
🔵 Suggestion · Settings injection adds a negative test that the next commit removes
The settings rollout replaces incorrect typed defaults with explicit injection, then removes its runtime negative test one commit later; head uses explicit injection correctly, but combining the follow-ups would make the change easier to validate.
Location: qml/pages/onboarding/OnboardingWizard.qml:15 at ade7c01bb8e4 (commit) (commit).
🔵 Suggestion · PSBT migration temporarily drops the review-only GUI assertions
f7776f9freplaces the review-only PSBT GUI checks with model assertions, while1713da2crestores warning text, Send/Save visibility and cleared-input checks; those assertions are present at head.Location: test/integration/psbt/test_psbt.cpp:69 at f7776f9fcdf2 (commit) (commit).
🔵 Suggestion · The wallet-permission claim in
4bd75175does not match its patch4bd75175says it restores read-only wallet-fixture permissions at scope exit, but its patch changes only CI container configuration and documentation.Location: .github/workflows/ci.yml:58 at 4bd75175f84e (commit) (commit).
🔵 Suggestion · The PR description omits two wallet send and PSBT behavior changes
The lint/CI-focused description omits changes to watch-only draft Send availability and known-PSBT recognition, although the wallet commit subjects identify both.
Location: qml/models/walletqmlmodel.cpp:2403 (head).
Review coverage was incomplete.
Reviewed:
042d9388dda4· Review report