Skip to content

fix(ci): build the C oracle for windows-gnu on the PR path when its inputs change (#4204) - #4205

Merged
zackees merged 2 commits into
masterfrom
infra/gnu-oracle-fast-gate
Nov 9, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/gnu-oracle-fast-gate

Conversation

@vpacher

@vpacher vpacher commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Fixes #4204.

Problem

#4059 broke the C oracle's windows-gnu build (#4168) and passed PR and merge-queue CI; every master push after it failed, and new PRs carried the break. PR and merge-queue runs run only --test-diff in the Fast Gate (Linux tests of the changed crates). The windows-gnu --no-run of the test binaries, the only build where the oracle gets its pthread renames (GNU_ORACLE_RENAMES), runs only in the full rust-test lane on master pushes.

Change

  • ci/rust_scope.py: touches_gnu_oracle(files), true when the diff touches an input of the oracle's C build: rust/obs-c-oracle/, libobs/, deps/, plugins/obs-nvenc/, rust/obs-hotkey/src/nix_wayland_keys/ (what rust/obs-c-oracle/build.rs compiles or watches).
  • ci/local_gate.py: test_diff then also runs soldr cargo test -p obs-c-oracle --locked --no-run --target x86_64-pc-windows-gnu, on a Linux host only (host_platform.is_linux(); --test-diff also runs on the macOS and Windows runners). The full lane's windows-gnu step moves into windows_gnu_no_run(packages), which both use with the same lld link flags.

No workflow file changes: the Fast Gate's "Unit Tests (changed crates)" step already calls --test-diff.

Tests

A CI fix (coordination.md §4): RED and GREEN are local.

Order: merge after #4191. Until #4191 is on master, the new step stops every PR that touches an oracle input with the #4168 error: correct, but it would block those PRs.

🤖 Generated with Claude Code

vpacher and others added 2 commits November 9, 2026 09:23
…puts change (RED)

#4059 broke the oracle's windows-gnu build (#4168) and passed PR and
merge-queue CI: --test-diff runs Linux tests only, and the windows-gnu
--no-run of the test binaries, where the oracle gets its pthread renames,
runs only in the full rust-test lane on master. The new cases expect
--test-diff to build obs-c-oracle for windows-gnu when the diff touches
an input of its C build, and only on a Linux host.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nputs change (GREEN)

--test-diff, the PR and merge-queue Fast Gate's test step, now also runs
`soldr cargo test -p obs-c-oracle --no-run --target x86_64-pc-windows-gnu`
when the diff touches an input of the oracle's C build (rust/obs-c-oracle/,
libobs/, deps/, plugins/obs-nvenc/, the Wayland keysyms the build reads),
on a Linux host. That build is the only one where the oracle gets its
pthread renames (GNU_ORACLE_RENAMES), so a break like #4168 now stops the
PR instead of master. The windows-gnu step of the full lane moves into
windows_gnu_no_run(), which both use.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vpacher
vpacher requested a review from zackees as a code owner November 9, 2026 08:26
@vpacher vpacher changed the title fix(ci): build the C oracle for windows-gnu on the PR path when its inputs change (GREEN) fix(ci): build the C oracle for windows-gnu on the PR path when its inputs change (#4204) Nov 9, 2026
@vpacher
vpacher enabled auto-merge November 9, 2026 08:27
@vpacher
vpacher added this pull request to the merge queue Nov 9, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In merge queue in obs-rust Multiview Nov 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Nov 9, 2026
@vpacher
vpacher added this pull request to the merge queue Nov 9, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Nov 9, 2026
@zackees
zackees merged commit f6b01bd into master Nov 9, 2026
41 checks passed
@zackees
zackees deleted the infra/gnu-oracle-fast-gate branch November 9, 2026 18:09
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In merge queue to Done in obs-rust Multiview Nov 9, 2026
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.

ci: PR and merge-queue Fast Gate never builds the C oracle for windows-gnu (#4168 reached master)

2 participants