Skip to content

ci: Scope platform jobs by path alone; POSIX reaches Linux and macOS - #911

Merged
zackees merged 3 commits into
masterfrom
ci/897-path-only-scope
Oct 15, 2026
Merged

zackees merged 3 commits into
masterfrom
ci/897-path-only-scope

Conversation

@zackees

@zackees zackees commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Refs #897, #847, #900. Replaces the content scanning from #898. Supersedes #902 (closed).

Policy (maintainer)

  • Scoping by path alone. If a file of a platform changes, that platform's CI runs. File contents are never read.
  • POSIX files are shared by Linux and macOS. Changing *-posix.c, unix/ or libobs/util/platform-nix.c (macOS builds it, see libobs/cmake/os-macos.cmake) starts both.
  • Core files carry no platform defines at all. The lint in ci: Ratchet platform conditionals in shared C/C++ files (#847) #900 enforces this, so a core change runs on Linux.

Change

RED / GREEN

  • RED 13673f2: rewritten test_ci_scope.py against a stub platform_paths, FAILED (errors=10).
  • GREEN: Ran 11 tests ... OK, ./lint ok.

Known gap until #847 lands

Core files that still have grandfathered platform conditionals (the #900 baseline, ~520 conditionals) now run on Linux only, even when an edit sits in an #ifdef _WIN32 block. Pushes and the merge queue are scoped the same way. Every platform still runs with ci-full, on schedule, workflow_dispatch, tags and release branches, and in the release gate. The gap closes as #847 moves each block into platform files, and #900 stops new ones.

@zackees

zackees commented Oct 15, 2026

Copy link
Copy Markdown
Member Author

Proof in real PR CI (probe PRs #912–#915, closed after reading)

probe change macOS jobs Windows jobs
#912 libobs/util/threading-posix.c (POSIX) ran skipped
#913 libobs/util/platform-cocoa.m ran skipped
#914 libobs/util/threading-windows.c skipped ran
#915 line inside #ifdef _WIN32 in core libobs/obs.c skipped skipped (Linux only, per policy)

A POSIX change starts macOS (Linux always runs). A macOS change starts only macOS, a Windows change only Windows, and a core file change runs on Linux only. Speed, from replaying the last 120 PR runs: PRs that start both native runners go from 92 to 58, saving about 25 native runner-minutes per affected PR (865 in total). Wall time is bounded by Linux Tier 2 (~13 min).

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