Skip to content

facade: isolate shared Qt platform workarounds - #1597

Merged
zackees merged 2 commits into
masterfrom
infra/884-shared-qt-platform
Oct 21, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/884-shared-qt-platform

Conversation

@zackees

@zackees zackees commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #884. Move nine shared host/compiler conditionals behind a shared Qt facade, preserving behavior. No Rust port or user-visible feature change.

RED → GREEN

RED 51ab5b3: original checkbox/dialog/modifier behavior passes Windows/macOS/Linux/BSD characterization; four boundary/build checks fail (missing facade and shared branches).

GREEN 47025f8: five operations in shared/qt/platform/qt-platform.hpp, implemented by per-host unity groups selected in the existing qt-wrappers interface target. Existing shared wrappers forward modifier mapping; properties-view invokes checkbox, color/font options and post-dialog raising at the same call sites. macOS retains Control/Meta swapping and QTBUG-42661 raising; only Linux avoids native color dialogs, BSD preserves its original defaults; all non-Windows hosts avoid native font dialogs.

The MSVC 4505 suppression moves from the moc header to the properties-view interface compiler option, replacing the header pragma that already affected its consuming translation units. No other warning suppression changes. The ratchet baseline drops by nine.

Validation

  • 93 focused boundary/build-group/ratchet/scope/Qt-lane checks pass; one real Qt test skips locally because Qt development files are absent.
  • Compiler harness runs actual production bodies for four host policies and all 32 modifier combinations per host, including ignored bits. Original implementation characterization passed before extraction.
  • Real Qt offscreen test is wired into the existing Linux Qt lane using its pinned prefix; a specified prefix makes missing Qt fail. It exercises actual policy bodies with real QCheckBox/QWidget/QFlags and every modifier combination.
  • Pinned clang-format, gersemi, shell syntax and whitespace checks pass.
  • Full native validation 39532227178 dispatched on GREEN. Complete full run succeeded: all native Windows/macOS/Linux app builds, Qt/offscreen checks, Tier 2 and Flatpak passed.

No public C header, existing C test, new workflow or WebSocket gitlink is changed. Tier 1/2/3 Rust port requirements do not apply to this C++ facade refactor; native app and existing test coverage run in full validation. No protocol change requiring Tier 4.

CI timing flake

PR Windows Tier 2 first failed the unchanged output-delay reconnect test's exact two-second lower bound; its immediate cdb replay passed all five cases. Tracked separately in #1598. The independent full run on the exact same GREEN passed all 166 Windows tests in both C and Rust modes (output-delay: 9.57 s OFF, 9.56 s ON; job 119005697387). The complete full run passed, including all native app builds, Qt, Tier 2 and Flatpak. The single failed Windows PR job was retried after the initial workflow completed and passed; complete PR CI is green; no whole-workflow rerun or source change was made to retry.

The full Qt job 119002031939 log confirms the real offscreen executable compiled and ran, and all 19 existing Qt-linked tests passed.

Queue infrastructure retry

Merge-group run 39535345032 fast gate failed before code checks because packages.microsoft.com/ubuntu/26.04/prod returned HTTP 403 to apt-get update (job 119010700574). The Qt lane passed. After that run completed, only the failed fast-gate job was retried; no source changes, whole-workflow retry or admin bypass.

The targeted fast-gate retry and all dependent native checks succeeded in 39535345032. GitHub had automatically ejected the original queue entry after the 403. Resubmitted through the normal merge queue; new merge-group run 39536797614 is active.

@zackees
zackees marked this pull request as ready for review October 21, 2026 02:51
@zackees
zackees added this pull request to the merge queue Oct 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 21, 2026
@zackees
zackees added this pull request to the merge queue Oct 21, 2026
Merged via the queue into master with commit db2534b Oct 21, 2026
76 of 78 checks passed
@zackees
zackees deleted the infra/884-shared-qt-platform branch October 26, 2026 15:45
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.

facade: shared/properties-view and shared/qt: move 9 platform conditionals into platform-named files

1 participant