Repository navigation
video: keep publisher rows across MAVLink connection snapshots - #56
Merged
Merged
Conversation
The MAVLink child's periodic snapshot of connections.tdb deleted every row for the entry, including the video child's. The video child wrote its rows back on its own 5 s tick, so with a MAVLink session up they were missing for most of each cycle. The web interface then showed no publishers for the entry part of the time, and offered its MPEG-TS player for a raw thermal (Matroska) slot. Delete only the MAVLink index range, as the child exit path does.
|
Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head The change looks correct, with no issues found. The MAVLink snapshot now deletes only its own 0..999 index range. That matches the video child's complementary 1000+ range and the parent's existing child-exit cleanup, so publisher rows no longer disappear between video ticks. The new test passes on this head and fails with the old supportproxy.cpp, so it does guard the regression. |
tridge
marked this pull request as ready for review
December 1, 2026 08:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
With a MAVLink session up, the web interface lost track of an entry's video publishers for most of the time. A raw thermal (Matroska) slot was then offered the MPEG-TS/HEVC player instead of the raw thermal links.
Cause
The MAVLink child's periodic snapshot of
connections.tdbdeleted every row for the entry, including the rows written by the video child. The video child wrote its rows back on its own 5 s tick, so they were present for about 2 s of each 5 s cycle. An entry with video publishers but no MAVLink connection was not affected.Fix
The snapshot now deletes only the MAVLink index range, as the child exit path already does.
Testing
test_mavlink_snapshot_keeps_publisher_row: fails without the fix, passes with it.tests/test_video_child.py,test_kill_drop.py,test_drop_lost_request.py,test_parent_housekeeping.pyandtest_conn2_slot_orphan.pypass.