Skip to content

ci: ratchet the shared build files and scope OS-named libobs/cmake files (#3237) - #3296

Merged
zackees merged 2 commits into
masterfrom
ci/3237-shared-build-ratchet
Oct 31, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/3237-shared-build-ratchet

Conversation

@zackees

@zackees zackees commented Oct 31, 2026

Copy link
Copy Markdown
Member

Last sub-issue of #3232.

  • ci/shared-build-files.txt lists the 82 build files ci_scope treats as consumed by every platform (an edit starts macOS + Windows). ci/test_shared_build_files.py (runs in ./lint) fails a new shared file until it is moved into a per-OS file / per-unit fragment or listed with a reason, and fails stale entries, so the set only shrinks. Per-unit families (rust-exports.d/, C++ cmocka tests, tests.d/) and docs are excluded: adding one is not a new central list.
  • Building the list found six OS-named libobs/cmake files still starting every platform (rust-os-{windows,macos,nix}.cmake, windows/obs-module.rc.in, macos/entitlements.plist, linux/libobs.pc.in). is_shared now defers to path_platforms for libobs/cmake/, as it already did for os-<os>.cmake.

RED 799e448: test_shared_build_files 1 failure + 3 errors (no list); test_ci_scope rust-os-windows.cmake → (True, True, False) != (True, False, False).
GREEN 9196f44: those plus test_cmake_common_os_neutral and test_hidden_symbol_fragments pass; ./lint ok.

Refs #3237, #3232

…) (RED)

test_shared_build_files: ci/shared-build-files.txt does not exist (1 failure,
3 errors). test_ci_scope: libobs/cmake/rust-os-windows.cmake starts macOS too,
(True, True, False) != (True, False, False): only os-<os>.cmake is exempt from
the shared rule, not the other OS-named libobs/cmake files.

Refs #3237, #3232
… to their OS (#3237) (GREEN)

ci/shared-build-files.txt records the 82 build files ci_scope treats as
consumed by every platform; ci/test_shared_build_files.py fails a new one
until it is moved into a per-OS file or per-unit fragment or listed with a
reason, and fails a stale entry, so the set only shrinks. Per-unit families
(rust-exports.d fragments, C++ cmocka tests, tests.d registrations) and docs
are not central lists and stay out of it.

Building the list showed six OS-named libobs/cmake files still starting
every platform: rust-os-{windows,macos,nix}.cmake and windows/, macos/,
linux/ templates. is_shared now defers to path_platforms for libobs/cmake,
as it already did for os-<os>.cmake, so they start only their OS.

Refs #3237, #3232
@zackees
zackees added this pull request to the merge queue Oct 31, 2026
Merged via the queue into master with commit f2dc8a3 Oct 31, 2026
36 checks passed
@zackees
zackees deleted the ci/3237-shared-build-ratchet branch October 31, 2026 22:34
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