Repository navigation
ci: ratchet the shared build files and scope OS-named libobs/cmake files (#3237) - #3296
Merged
Merged
Conversation
…) (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
5 tasks
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.
Last sub-issue of #3232.
ci/shared-build-files.txtlists the 82 build filesci_scopetreats 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.libobs/cmakefiles still starting every platform (rust-os-{windows,macos,nix}.cmake,windows/obs-module.rc.in,macos/entitlements.plist,linux/libobs.pc.in).is_sharednow defers topath_platformsforlibobs/cmake/, as it already did foros-<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;
./lintok.Refs #3237, #3232