Release stage_itscreen 1.0.2 with Linux client 4.410.123

This commit is contained in:
Andrei Smaliak 2026-09-15 19:06:02 +02:00
parent 8f3ea30aab
commit 827c865422
7 changed files with 126 additions and 4 deletions

View File

@ -0,0 +1,69 @@
# Local Edge: gaps between cyclic images, 2026-09-15
Device: `g-box-8e6af561`, `192.168.0.110`, server device ID 4.
Installed client: **4.410.123**, stage **stage_itscreen 1.0.2**.
The Edge receipt identifies a local build, with no claimed published commit.
This task did not commit or push the changes.
## Findings and fixes
In `It-screenClient/LayoutControlSync.qml`, hourly playlist regeneration shifts
queue positions. The previous revision check compared the loaded media with the
item at its old array position. An unrelated item could therefore invalidate
unchanged playback, stop both player buffers, and leave a gap while the scheduler
waited for the next short clip. The check now uses component ID and media revision;
changed or removed media still invalidates playback.
`It-screenClient/mqtt_bridge_config.cpp` ran synchronous system commands in the
GUI thread every minute. Real helper calls on this Edge took about 1–2 seconds.
Checks now run in one background worker, with a consistent settings snapshot,
serialized subprocesses, coalesced changes, and no extra checks for unchanged
settings. Existing process timeouts and the periodic check remain bounded.
No changes to stage_env or the MQTT wire protocol were required.
## Verification
- Actual generator tested for all 24 hourly playlists. Seven index shifts
preserved unchanged media; changed/removed media still invalidated playback.
The previous implementation failed this regression at 02:00.
- Qt test on the Edge with a deliberately slow fake helper: previous code had
an 835 ms maximum heartbeat gap; final code had 23 ms. The test also verified
serialized calls and coalescing without modifying real MQTT configuration.
- 21 native Python contract tests, runtime Node test, 14 stage release tests,
and 10 display/installer tests passed.
- Physical X11 output sampled once per second for 300.2 seconds after installation:
300 samples, 21 image transitions, both images seen, zero blank samples.
The detector matched both light and dark application backgrounds, as well as
black/bright empty output. Minute-based MQTT checks ran during this observation.
- Server reported `410(build-4.410.123)` from `192.168.0.110`; service remained
active with zero automatic restarts.
The live observation covers five minutes, not a full hour. Hourly behavior was
checked using the generator/controller regression, without changing device time.
## Deployment and rollback material
Only the client binary was replaced on top of the installed stage 1.0.1; its
installer/display scripts are unchanged in 1.0.2. The stage receipt was recorded
through the existing stage version owner after validation.
New binary SHA-256:
`bd046e49f828d8416ab5460bb2c07a8664d82f7a4eab68cd674481cc825ed3c8`.
Previous binary and stage receipt are retained under
`/var/backups/iomatex-playback-20260915/` on the Edge. Reverting requires restoring
both the binary (using an atomic replacement) and its receipt, then restarting
`itscreen-x11`.
The same new binary, checksum, client version, stage manifest and release catalog
are prepared in the local repository. Temporary build sources, object files and
screen captures were removed from the Edge; no external packages were installed.
## Release publication, 2026-09-15
The Linux client sources are committed as `d49b91b` on `iomatex_dev`.
The stage 1.0.2 release carries build 4.410.123 and the verified checksum above.
It is published on the `ci-cd` branch with the stage release catalog.
The initial local-build observation and receipt described above are retained
as deployment history.

View File

@ -0,0 +1,53 @@
# UAE: Grass_Morning after replacing Edge, 2026-09-15
Device: `g-box-27d83450` (server device 66); model 11,
`Villa_18_Jumeirah_Irrigation`; component 75, `Grass_Morning`.
## Confirmed findings
- Server layout projection contained all eight current irrigation components.
- Grass_Morning resolved to register 1943 on module 186, device 66.
The detached device 38 was absent from the model's live device relation.
- MQTT reported the current board available, with no Modbus error. This alone
did not establish that the client had loaded its behavior model.
- At 17:52:48 Gulf time the kernel reported a bad ext4 block-bitmap checksum
on `/dev/mmcblk0p8` and remounted `/userdata` read-only.
- The client data directory is under `/userdata/itscreen`. Its cached model
files remained at 12:49, referring to the previous model, while its onscreen
log reported failures writing `journal2.json`.
- The filesystem had no ext4 journal, and its fstab check pass was zero.
## Recovery performed
1. Backed up client state and `/userdata` contents (excluding swap and
lost+found), verified the archive, and copied it outside the Edge.
2. Stopped the client and log watchdog, verified no users of `/userdata`, and
unmounted it. `e2fsck -pf` completed with code 1 (errors corrected).
3. Ran the existing `stage_env/iomatex-userdata-prepare` mechanism while the
filesystem was unmounted. It enabled the journal and set fstab pass to 2.
4. Mounted the filesystem and restarted the client and watchdog timer.
5. Confirmed read-write mount, clean filesystem, journal enabled, and storage
health status `ok`. Client logs then confirmed all eight current components
downloaded, including Grass_Morning; model files updated at 18:38 Gulf time.
Edge backup: `/var/backups/iomatex-grass-20260915/`.
An off-device copy is retained on UAE in
`/home/ansible/its_docker/edge-recovery-20260915/` (root-only).
All eight components were checked through their resolved API interface
relations: Grass uses 1943, Entrance 1944, Left Wall 1945, Right Wall 1946;
morning and evening pairs share their intended output. Every resolved output
belongs to module 186 / device 66. No additional old-device output was present.
No register tags were deleted. Register aliases are shared metadata, whereas
device-to-model membership determines the live binding; indiscriminately
deleting aliases on a detached device can damage other configurations.
The exact cause of the original filesystem corruption is not established.
The reported eMMC lifetime estimate is 0–10% with normal pre-EOL status;
this does not rule out hardware or power-loss faults. Journaled storage and
boot-time checks reduce exposure, but do not guarantee against recurrence.
Physical Push activation still requires a separate observed start/stop test;
successful configuration loading and an enabled UI button are not proof that
the relay has switched.

View File

@ -23,7 +23,7 @@
"version": "1.0.0" "version": "1.0.0"
}, },
"stage_itscreen": { "stage_itscreen": {
"version": "1.0.1" "version": "1.0.2"
}, },
"stage_reverse_tunnels": { "stage_reverse_tunnels": {
"version": "1.0.0" "version": "1.0.0"

Binary file not shown.

View File

@ -1 +1 @@
5288c92065bb38aa97dce21fd7cacb9bf70fef1929c044ba6b196e3e14fa8f06 itscreen bd046e49f828d8416ab5460bb2c07a8664d82f7a4eab68cd674481cc825ed3c8 itscreen

View File

@ -1 +1 @@
4.410.122 4.410.123

View File

@ -1,3 +1,3 @@
{ {
"version": "1.0.1" "version": "1.0.2"
} }