Skip to content

obs-build: remux queue test on Windows/macOS via MSVC import libraries (#1878, slice 3) - #1986

Merged
zackees merged 5 commits into
masterfrom
infra/1878-cmocka-win-mac
Oct 23, 2026
Merged

zackees merged 5 commits into
masterfrom
infra/1878-cmocka-win-mac

Conversation

@zackees

@zackees zackees commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Fixes #1878 once green. Stacked on #1968 (in the merge queue).

  • RED (local): platform::package_link_options is a todo!() stub. msvc_links_package_import_libraries_without_gnu_flags and gnu_and_apple_keep_search_and_runtime_paths panic.
  • GREEN:
    • On MSVC, pkg-config packages link their <name>.lib import library by path, and system libraries by name. Before this, add_package passed -L, -Wl,-rpath and -l to link.exe. GNU and Apple targets keep the existing flags, now in one function.
    • The Windows/macOS Check Published Qt SDK step installs cmocka (brew on macOS; on Windows vcpkg cmocka, plus pkgconf for the pkg-config crate) and runs native_build::canonical_remux_queue_runs_unchanged through Cargo and CMake, with QT_QPA_PLATFORM_PLUGIN_PATH set.
  • Cost: the Windows vcpkg build of cmocka and pkgconf is not cached yet. The step logs its time. If it is too slow, a follow-up can reuse Tier 2's vcpkg-bin cache.

Tiers: Tier 1 (platform/shared_library.rs), plus the unchanged C++ remux queue test on both hosts. Tiers 2 to 4 are otherwise not affected.

Result (run 40035525192): native_build::canonical_remux_queue_runs_unchanged ... ok and native_build::native_test_graph_generates_qt_metaobjects ... ok on both windows-2025-vs2026 and macos-26. The Qt SDK step took 1 min 54 s on Windows (including the uncached vcpkg build of cmocka and pkgconf) and 34 s on macOS.

Later commits on this branch:

  • bce0130: libtest takes --exact once.
  • 2620026 (RED) and c607066 (GREEN): QT_SDK_PATHS now includes tests/native.rs, src/validation* and platform/shared_library.rs. Without that, the rebased PR's own run skipped the step.

…1878)

package_link_options is a todo!() stub: an MSVC target must link
<name>.lib by path, without the GNU -L/-Wl,-rpath/-l flags add_package
writes today; GNU and Apple targets keep them.
…n the remux queue test on Windows/macOS (GREEN, #1878)

package_link_options gives link.exe <name>.lib paths (system libraries by
name) and keeps -L/-Wl,-rpath/-l for GNU and Apple targets. The Qt SDK
step installs cmocka (brew; vcpkg cmocka + pkgconf on Windows) and runs
canonical_remux_queue_runs_unchanged through Cargo and CMake.
libtest rejected the second --exact (run 40031306534).
@zackees
zackees force-pushed the infra/1878-cmocka-win-mac branch from 77a24de to bce0130 Compare October 23, 2026 22:24
)

tests/native.rs, src/validation and platform/shared_library.rs don't set
qt_sdk, so this PR's own run skipped the Qt step on both lanes.
@zackees
zackees marked this pull request as ready for review October 23, 2026 23:02
@zackees
zackees enabled auto-merge October 23, 2026 23:02
@zackees
zackees added this pull request to the merge queue Oct 23, 2026
Merged via the queue into master with commit be19f61 Oct 23, 2026
32 checks passed
@zackees
zackees deleted the infra/1878-cmocka-win-mac 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.

build: compile and run Cargo Qt graph tests against published Windows/macOS Qt SDKs

1 participant