Skip to content

ci: Start native jobs for edits inside platform #if blocks in shared files #896

Closed as not planned

Description

@zackees

Part of the CI scoping keystone meta.

Problem

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.
  • A hunk outside any platform block sets neither.

Activity

  1. zackees commented on Oct 15, 2026

    @zackees
    MemberAuthor

    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.

  2. added
    claimed
    on Oct 15, 2026
  3. zackees commented on Oct 15, 2026

    @zackees
    MemberAuthor

    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).

  4. removed
    claimed
    on Oct 15, 2026
  5. zackees commented on Oct 16, 2026

    @zackees
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions