Skip to content

frontend: remux queue model notifies views consistently - #1555

Merged
zackees merged 4 commits into
masterfrom
fix/remux-queue-model
Oct 21, 2026
Merged

zackees merged 4 commits into
masterfrom
fix/remux-queue-model

Conversation

@zackees

@zackees zackees commented Oct 20, 2026

Copy link
Copy Markdown
Member

Split from #1464 (ec5401f, c0b1813), with a new RED test first.

  • beginProcessing()/endProcessing() now change isProcessing between beginRemoveRows/endRemoveRows and beginInsertRows/endInsertRows, so rowCount() agrees with each row notification.
  • dataChanged ranges from checkInputPath() and the processing state updates stop at the last column/row (none is sent for an empty queue).

Test: test/cmocka/test_remux_queue_model.cpp (tests.d/test_remux_queue_model.cmake) builds the real frontend/utility/RemuxQueueModel.cpp.hpp against a PCH stand-in (test/cmocka/remux-queue-stubs/, same pattern as crash-handler-stubs/) with Qt Widgets on the offscreen platform, and checks every row/data notification against rowCount()/columnCount().

Local RED (test commit alone, standalone build against nixpkgs Qt 6.11 + cmocka): all 4 cases fail

[  FAILED  ] input_path_change_range_is_valid        (1 != 0 invalid dataChanged)
[  FAILED  ] begin_processing_notifies_consistently  (3 != 2 rowCount at rowsRemoved)
[  FAILED  ] end_processing_notifies_consistently    (2 != 1 rowCount at rowsAboutToBeInserted)
[  FAILED  ] empty_queue_sends_no_invalid_range      (1 != 0 invalid dataChanged)

GREEN after the two fix commits: 4/4 pass. ./lint passes. Ledger lines in docs/features.md copied from #1464.

The Windows Qt from obs-deps ships no qoffscreen.dll, so the test hung in
Tier 2 on Windows behind Qt's modal no-platform message box. Use the minimal
platform there and fail fast when its plugin is missing, as
test_close_top_level does, and give the test a 120 s ctest timeout.
@zackees

zackees commented Oct 20, 2026

Copy link
Copy Markdown
Member Author

Coordinator fixup: the Windows Tier 2 job hung twice (over an hour each, normal is 4-7 min) in "Validate Tier 2 on Windows". The test set QT_QPA_PLATFORM=offscreen, but the Windows Qt from obs-deps ships no qoffscreen.dll, so Qt showed its modal no-platform message box and ctest waited forever. Pushed a fixup: that uses the minimal platform on Windows and fails fast if its plugin is missing (same as test_close_top_level), plus a 120 s ctest timeout. Auto-merge stays on.

@zackees
zackees added this pull request to the merge queue Oct 21, 2026
Merged via the queue into master with commit 13c5a47 Oct 21, 2026
25 checks passed
@zackees
zackees deleted the fix/remux-queue-model branch October 26, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant