You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: Start native jobs for edits inside platform #if blocks in shared files #896
ci/ci_scope.py scopes macOS/Windows jobs by path only. A PR that edits only an #ifdef _WIN32 block inside a shared file (e.g. frontend/OBSApp.cpp) runs Linux only, so the Windows break surfaces at the release gate. #698 widens this hole until #847 lands.
Change
For files still listed in the #848 ratchet baseline, read the PR diff: if a changed line falls inside a platform #if block (same patterns as the #848 lint), turn on that OS's jobs. Files not in the baseline keep path-only scoping. The rule retires itself as the baseline empties.
Acceptance
A test in ci/ shows a hunk inside #ifdef _WIN32 in a shared file sets windows, and __APPLE__ sets macos.
Claiming: the remaining part of #896. #898 does the hunk-content scoping. This PR, stacked on #898, adds the branches that exclude Linux (#else of #ifdef __linux__, #ifndef __linux__, CMake else() after if(OS_LINUX)), plus real-CI probes that show macOS-only, Windows-only and skipped-native routing.
Releasing: the maintainer chose path-only scoping plus a ban on platform defines in core files (#900) over scanning content. Superseded by the path-only PR (linked when opened).
Closing per the decision in the last comment: path-only scoping plus the ban on platform conditionals in shared files (ci/platform_ifdef_ratchet.py, #848/#900) replaces diff-content scanning. Tracked from #930.
Activity
zackees commentedon Oct 15, 2026
Claiming: the remaining part of #896. #898 does the hunk-content scoping. This PR, stacked on #898, adds the branches that exclude Linux (
#elseof#ifdef __linux__,#ifndef __linux__, CMakeelse()afterif(OS_LINUX)), plus real-CI probes that show macOS-only, Windows-only and skipped-native routing.ci: RED test for a hunk that adds a Linux #else block (Refs #896, #897)
ci: Scope every line of a hunk by the blocks it sits in (GREEN, Refs #…
ci: RED tests for edits in branches that exclude Linux (Refs #896, #897)
ci: Scope #else of Linux conditionals to macOS and Windows (GREEN, Refs
ci: RED test for a hunk that adds a Linux #else block (Refs #896, #897)
ci: Scope every line of a hunk by the blocks it sits in (GREEN, Refs #…
zackees commentedon Oct 15, 2026
Releasing: the maintainer chose path-only scoping plus a ban on platform defines in core files (#900) over scanning content. Superseded by the path-only PR (linked when opened).
zackees commentedon Oct 16, 2026
Closing per the decision in the last comment: path-only scoping plus the ban on platform conditionals in shared files (
ci/platform_ifdef_ratchet.py, #848/#900) replaces diff-content scanning. Tracked from #930.