Skip to content

CI: open the PC app's main window and fail on QML warnings - #35

Merged
thtbee merged 1 commit into
mainfrom
ui-check
Oct 19, 2026
Merged

thtbee merged 1 commit into
mainfrom
ui-check

Conversation

@thtbee

@thtbee thtbee commented Oct 19, 2026

Copy link
Copy Markdown
Owner

What and why

MainWindow.qml stopped loading on main after #29 (fixed in e4b279a), and CI stayed green: the QML tests use stubs and can't load the app's windows, and the installer smoke test starts the app minimized.

  • nectarlink-desktop --ui-check --data-dir <dir> starts the whole app on its own data, opens the main window, quits after 8 seconds and exits with an error if QML reported a warning or an error. Qt's messages go to stderr instead of the log file. It refuses to run without --data-dir.
  • scripts/ui-check.ps1 runs it on the staged package with a fresh folder under target\ui-check and NECTARLINK_NO_ADB=1.
  • The Windows CI job runs it after packaging.

How it was tested

  • Fails on the MainWindow.qml from before e4b279a (Cannot assign to non-existent property "onWindowVisibilityChanged"), passes on main.
  • cargo clippy -p nectarlink-desktop --all-targets -D warnings, cargo fmt --check, and the desktop tests (221, with a new one for the option).

MainWindow.qml stopped loading on main (fixed in e4b279a) and CI stayed
green: the QML tests use stubs and can't load the app's windows, and the
installer smoke test starts the app minimized.

`nectarlink-desktop --ui-check --data-dir <dir>` starts the whole app on
its own data, opens the main window, quits after 8 seconds and fails if
QML reported a warning or an error, with Qt's messages on stderr instead
of the log file. scripts/ui-check.ps1 runs it on the staged package, and
the Windows CI job runs that after packaging.

Checked locally: it fails on the MainWindow.qml from before e4b279a
("Cannot assign to non-existent property") and passes on main.
@thtbee
thtbee merged commit 5bdcadb into main Oct 19, 2026
6 checks passed
@thtbee
thtbee deleted the ui-check branch October 19, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant