Phase progress reports, optimization notes and profiling output stay local and are now ignored. Drop the links that pointed to them.
153 lines
8.2 KiB
Markdown
153 lines
8.2 KiB
Markdown
# Validation
|
|
|
|
Run `scripts/validate` using matching Qt and Quickshell imports. `nix develop`
|
|
provides these. For native packages, set `QML_IMPORT_PATH` to the distribution's
|
|
Quickshell and Qt QML module locations.
|
|
|
|
Quickshell 0.3.1 marks PanelWindow uncreatable in static metadata because its
|
|
implementation is selected at runtime. The validator suppresses this one diagnostic
|
|
locally on PanelWindow declarations; all other warnings fail validation. Real Wayland execution
|
|
is mandatory to validate those windows.
|
|
|
|
Manual Phase 1 checks:
|
|
|
|
1. Launch `scripts/glassmxrph run`, check bars on all monitors.
|
|
2. Cog opens settings on the active monitor; close button, Escape and outside click dismiss it.
|
|
3. Change custom accent/opacity/radius; reopen and restart to verify persistence.
|
|
4. Toggle reduced motion and change workspace; inspect occupied/urgent states.
|
|
5. Run the launcher command a second time; confirm no second instance starts.
|
|
6. Write a valid palette JSON to the documented state path and select Matugen.
|
|
7. Inspect `quickshell log --path ./quickshell` for QML/DBus errors.
|
|
8. Restore/stop only this configuration; leave unrelated shell processes intact.
|
|
|
|
Automated configuration tests verify preservation of custom settings, unknown keys,
|
|
pinned applications, validation failures, future versions and immutable updates.
|
|
|
|
## Verified Phase 1 results
|
|
|
|
On 2026-10-03, using the versions in compatibility.md:
|
|
|
|
- Configuration unit tests passed.
|
|
- All project QML passed qmllint (with the two documented, line-scoped
|
|
PanelWindow metadata exceptions).
|
|
- `python3 tests/runtime.py` passed in a real Hyprland session: no QML warnings
|
|
or DBus errors; duplicate prevention, atomic preference persistence, live
|
|
palette updates, settings IPC, and corrupt-file preservation all passed.
|
|
- Both landscape and portrait display bars were created at their own output
|
|
coordinates. The settings panel was visually inspected.
|
|
- The pinned x86_64-linux Nix package built successfully.
|
|
|
|
`tests/runtime.py` is an opt-in graphical test and requires Python 3. It briefly
|
|
shows the preview, uses temporary XDG directories and terminates its own process.
|
|
Do not run it over an already running glassMxrph instance.
|
|
|
|
Not yet verified: another distro, ARM hardware, monitor hotplug, fractional scale,
|
|
manual keyboard/outside-click interaction coverage, or HyprGlass effects. They
|
|
remain acceptance work for subsequent phases; successful lint is not proof of them.
|
|
|
|
## Phase 2 tray validation
|
|
|
|
Use the patched runtime supplied by the locked flake:
|
|
|
|
```sh
|
|
nix develop
|
|
./scripts/validate
|
|
python3 tests/runtime.py
|
|
dbus-run-session -- python3 tests/tray_runtime.py
|
|
nix build --no-update-lock-file
|
|
```
|
|
|
|
The tray fixture requires Python dbus-python/PyGObject and QtTest, supplied by the
|
|
development shell. It registers two SNI objects on one DBus connection and exports
|
|
an actual DBusMenu with normal/disabled/hidden items, separators, icons, checkboxes,
|
|
radio items and two levels of submenus. QtTest injects input into this shell only;
|
|
it does not move the physical mouse or activate another application's menu actions.
|
|
Do not run the tests while another glassMxrph instance is running.
|
|
|
|
Covered by the isolated tray regression test:
|
|
|
|
- Discovery, no fabricated running-app icons, and removal of both tray objects.
|
|
- Hover intent delay, leaving before the delay, and icon-to-menu handover.
|
|
- Nested menu hover/activation, real DBus event delivery and application activation.
|
|
- Disabled actions, hidden entries, separators, icons, checkbox/radio rendering and live updates.
|
|
- Escape, disabled hover setting and immediate right-click despite disabled hover.
|
|
- Items without exported menus, opening on each available monitor, and closing on service exit.
|
|
- Clean QML/DBus logs once asynchronous menu loading has settled.
|
|
|
|
The real session separately verified discovery of NetworkManager, Blueman and
|
|
OpenDeck, and read-only loading of NetworkManager's actual menu. No real application
|
|
menu actions were triggered. The fixture glass menu was visually inspected.
|
|
|
|
Manual checks still useful: outside-click dismissal through the compositor, native
|
|
Shift-right-click fallback, physical pointer traversal at screen edges, hotplug,
|
|
fractional scaling and behavior on other distributions. QtTest input injection does
|
|
not prove the compositor's physical pointer routing.
|
|
|
|
Static lint also has three line-scoped `missing-type` exceptions for the
|
|
PopupAnchor flag properties: Quickshell 0.3.1 exposes the enums but omits their
|
|
flags types in qmltypes. The properties and enum values are verified against its
|
|
installed metadata and exercised in the real Wayland tests.
|
|
|
|
## Phase 3 dock validation
|
|
|
|
Use the standalone source runner and installed matching Quickshell/Qt modules.
|
|
No Nix rebuild or packaging changes were made in this phase.
|
|
|
|
```sh
|
|
./scripts/validate
|
|
python3 tests/runtime.py
|
|
python3 tests/dock_runtime.py
|
|
dbus-run-session -- python3 tests/tray_runtime.py
|
|
```
|
|
|
|
All four checks passed on 2026-10-03 with clean runtime logs. The existing patched
|
|
Quickshell binary was reused for the tray regression. Run graphical tests
|
|
sequentially, using a source path with no active instance. The dock test writes its
|
|
log/capture under ignored `.cache/`, uses temporary XDG preferences/desktop entries,
|
|
and closes only its own disposable fixture processes. It briefly creates/focuses
|
|
fixture windows on your desktop.
|
|
|
|
## Phase 4 launcher validation
|
|
|
|
On 2026-10-03, QML lint, search/configuration tests, launcher runtime tests and the
|
|
foundation/dock/tray regression suites passed with clean logs. Run
|
|
`python3 tests/launcher_runtime.py` sequentially with the existing suites, from an
|
|
unused source path. It requires Python 3, QtTest and a live Hyprland session, uses
|
|
temporary desktop entries/preferences, and restores the originally focused output.
|
|
The captured launcher was visually inspected. Nix integration
|
|
remains untouched and no new package build is claimed.
|
|
|
|
The launcher keyboard regression also holds the pointer over a result during opening;
|
|
hover/layout changes no longer override keyboard selection. The isolated suite passed
|
|
after this fix, and the existing source preview was allowed to reload normally.
|
|
|
|
## Phase 5 settings
|
|
|
|
`python3 tests/providers_test.py` checks filesystem and command argument safety. `python3 tests/settings_runtime.py` uses real Matugen 4.2.x and a recording wallpaper backend, isolated XDG state and QtTest input. It checks live palette updates, stale job suppression, failure recovery and settings editing. Screenshots/logs are saved under ignored `.cache/`.
|
|
|
|
## Phase 6 media
|
|
|
|
Run `dbus-run-session -- python3 tests/media_runtime.py` with dbus-python, PyGObject,
|
|
QtTest and Cava available. It creates two synthetic MPRIS players on a private bus,
|
|
uses isolated preferences and checks metadata, capability guards, player selection,
|
|
DBus actions, seek units, widget clicks, Cava lifecycle, monitor switching and fallback.
|
|
It also instantiates the compact Control Center component. Screenshots and logs live
|
|
under ignored `.cache/`. Real applications receive no playback commands.
|
|
|
|
## Phase 7 Control Center
|
|
|
|
`tests/system_providers_test.py` checks command boundaries, provider failures,
|
|
capabilities and confirmation before power commands. `tests/controlcenter_runtime.py`
|
|
uses real Wayland and read-only native discovery before injecting recording models
|
|
for writes. It verifies Qt input, module editing, both monitors, confirmation and
|
|
reopen behavior. No actual power, radio, volume or display change is executed.
|
|
The tray test also verifies Control Center/tray exclusivity.
|
|
|
|
## Phase 8
|
|
|
|
`./scripts/validate` includes `tests/metrics_test.py`. Run `python3 tests/metrics_runtime.py` in Hyprland with no project instance active for read-only telemetry, two-output placement, consumer lifecycle, live configuration, unavailable sources and clean logs. Uses isolated XDG preferences and a test-only screenshot driver; no hardware writes.
|
|
|
|
## Phase 9
|
|
|
|
`tests/polish.test.cjs` checks foreground contrast over a sampled RGB cube. `tests/polish_runtime.py` checks reduced motion, rapid routing, synthetic output fallback, palette error recovery and termination/restart of its own metrics collector. The existing launcher test includes the Phase 8 metrics command. Read-only environment checks are available through `scripts/glassmxrph doctor`.
|