Repository navigation
fix(ci): build the C oracle for windows-gnu on the PR path when its inputs change (#4204) - #4205
Merged
Merged
Conversation
…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
enabled auto-merge
November 9, 2026 08:27
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Nov 9, 2026
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.
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-diffin the Fast Gate (Linux tests of the changed crates). The windows-gnu--no-runof the test binaries, the only build where the oracle gets its pthread renames (GNU_ORACLE_RENAMES), runs only in the fullrust-testlane 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/(whatrust/obs-c-oracle/build.rscompiles or watches).ci/local_gate.py:test_diffthen also runssoldr 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-diffalso runs on the macOS and Windows runners). The full lane's windows-gnu step moves intowindows_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.
ci/test_rust_scope.pyGnuOracleTest(ImportError: notouches_gnu_oracle) andci/test_local_gate.pyTestDiffGnuOracleTest: an oracle change and a libobs change expect the windows-gnu build (FAIL: none ran); a crate change without oracle inputs and a macOS or Windows host expect none.test_rust_scope,test_local_gate,test_host_platformpass;./lintpasses (Linux host).uv run ci/local_gate.py --test-diff 9a95b463a~1on a Linux host:== test scope: workspace [], the Linux tests, then== windows-gnu: the diff touches the C oracle's inputsand exit 101 withoutput_pause_queries.c:41:9: error: 'pthread_mutex_lock' redefined [-Werror], the ci: master Fast Gate red since #4059: mingw oracle build, pthread_mutex_lock redefined #4168 error. Without this change, rust: Port public output pause-state queries (#4054) #4059's own Fast Gate ran the same--test-diffand passed (run 42513891603).target/x86_64-pc-windows-gnu. On a CI runner it depends on the soldr cache; the first PR that touches an oracle input will show it. This PR touches onlyci/, so its own run does not trigger the step.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