Skip to content

ci: link Windows MSVC test binaries on the PR and merge-queue tier - #4023

Merged
zackees merged 1 commit into
masterfrom
ci/queue-coverage-winl-sym
Nov 8, 2026
Merged

zackees merged 1 commit into
masterfrom
ci/queue-coverage-winl-sym

Conversation

@zackees

@zackees zackees commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Problem

The merge queue runs the deferred tier, which skips every Windows-target job (rust-cross-lint, Rust Tests windows, Windows Tier 2). Those jobs run only on push, so deterministic Windows link defects pass the queue and turn master red.

Evidence, same tree, #3879:

  • merge_group run 42390201886: success; Rust Cross Lint (x86_64-pc-windows-msvc), Rust Tests (windows) and Rust Tier 2 (windows) all skipped.
  • push run 42393067345: failure. The Linux-hosted job 128474720227 failed with lld-link: error: undefined symbol: obs_encoder_get_caps (and the other four obs_encoder_get_* getters). The native Rust Tests (windows) job hit the same rust-lld errors. Run 42395284824 repeated the failure. fix: isolate encoder metadata oracle link dependencies #3919 fixed it.

Cheapest honest signal

Candidate Catches this defect? Cost
nm/symbol check over the Linux artifacts No. Linux (ELF) links resolve static archives differently and passed (Fast Gate was green on 42390201886). The member gets pulled in only under COFF. ~0
cargo check --target x86_64-pc-windows-msvc No. check never links. small
soldr cargo test --workspace --no-run --target x86_64-pc-windows-msvc on Linux (soldr's lld-link + xwin) Yes. It is the exact command that failed in 128474720227. one ubuntu runner; the full cross lane, which also runs clippy and Dylint, took 5m38s (17:28:02 to 17:33:40) on that push
Native Windows build/Tier 2 yes Windows runner, 25-90 min. Rejected (cost and the 60-min queue timeout)

This PR adds Windows Link Check 🔗 (x86_64-pc-windows-msvc) (build-project.yaml job rust-windows-link, logic in ci/windows_link_check.py):

  • It runs only the link step of the cross lane: no clippy, no Dylint, no macOS, and nothing is executed.
  • It runs on every non-docs pull_request and merge_group run, as its own job.
  • It never skips when the cross lane has a proof or attestation, so a queue run always records a real conclusion.
  • It has a 30-minute timeout.

Unchanged:

  • Cross Compile, Flatpak, Qt frontend, the full cross lint and the native Windows/macOS lanes stay on push/dispatch.
  • The CI Gate ✅ aggregate (ci/gate_jobs.py): it still reads the full job list of the run attempt from the API with retries, and it still fails on failure/cancelled/timed_out/startup_failure/action_required. It picks up the new job automatically.
  • The ruleset (5/5 batching, the single required context) is not touched.

Tier-2 test failures: no cheap proxy

A Tier-2 failure needs the native libobs/cmocka build and run on the platform. The cheapest Windows Tier 2 lane is budgeted at 10-15 min with a 25-min timeout, and it would need its native build on the queue. No Linux-hosted proxy is deterministic for a Windows-only runtime failure. I propose accepting this and documenting it: the push run surfaces it, and the existing master-health loop repairs it. A follow-up could post an advisory status.

Proof

(a) The gate runs in a real merge_group run.

  • Run 42491099179 (the merge commit's queue run, success): Build 🧱 / Windows Link Check 🔗 (x86_64-pc-windows-msvc) job 128763579021, success, executed (not skipped). CI Gate ✅ 128765817907 succeeded.
  • An earlier queue run for this PR, 42489396729, also executed the job (128759438539, success, 4m03s). That run was then cancelled when rust: Port public source audio activity query (#4018) #4019, ahead in the queue, failed and the queue was rebuilt.
  • PR run 42488046475: job 128754259495, success, 4m00s.

(b) The gate fails on the defect it targets.

(c) Required checks unchanged. Ruleset 25065309 is still active, required contexts = CI Gate ✅ only, merge queue 5/5. Nothing was edited, so there was never a window with zero required checks.

(d) Master after merge. Merge commit 157b898. The push run's result is posted in a comment below.

Cost

  • New job: 4m00s-4m03s wall time on one ubuntu-26.04 runner, warm from the shared linux-host-v3 soldr layer.
  • Queue run 42491099179 took 22 minutes end to end. The job runs in parallel with Fast Gate and finished before it, so it does not lengthen the queue's critical path.

Tests

  • ci/test_windows_link_check.py: 7 tests, covering the cargo args (links via --no-run and includes the oracle), a failure propagating, and the workflow gating (deferred tier, no proof stand-down, timeout ≤ 30).
  • ci/test_rust_cache_policy.py: the audited setup-soldr count goes 12 → 13. The new consumer keeps build-cache: false and prebuild-deps-flags.
  • Full ci/ unittest suite: 2682 tests. The 6 failures also fail on clean master on this host (qt_fastpath zstd, flatpak manifest path, stdlib-only import, master_scope_base).
  • Pinned ci-lint precheck (a1917ce): 46 violations, identical to master. The three findings for the new job (CACHE-013, RUN-001, RUST-013) are already covered by existing approved exceptions, the same as rust-cross-lint.

🤖 Generated with Claude Code

The deferred PR/queue tier skips every Windows-target job, so COFF-only
link defects passed the queue and reddened master: lld-link 'undefined
symbol: obs_encoder_get_caps' (merge_group 42390201886 green, push
42393067345 red, fixed by #3919). Add a Linux-hosted job that runs only
the cross lane's link step for x86_64-pc-windows-msvc (no clippy, Dylint
or macOS, nothing executed) on every non-docs PR and queue run. The
expensive matrix stays on push/dispatch; CI Gate already reads every
job of the run, so the new job's conclusion is gated with no ruleset
change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@zackees
zackees added this pull request to the merge queue Nov 8, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In merge queue in obs-rust Multiview Nov 8, 2026
Merged via the queue into master with commit 157b898 Nov 8, 2026
40 checks passed
@zackees
zackees deleted the ci/queue-coverage-winl-sym branch November 8, 2026 14:52
@zackees

zackees commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

(d) Master after merge: green. #4023 landed as 157b898, immediately followed by #4006 (1814a66). The push run covering both, 42491925161, succeeded. The next one, 42493026567 (dc85d7a), also succeeded.

@obs-rust-project-manager obs-rust-project-manager Bot moved this from In merge queue to Done in obs-rust Multiview Nov 8, 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.

1 participant