Repository navigation
ci: link Windows MSVC test binaries on the PR and merge-queue tier - #4023
Merged
Merged
Conversation
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]>
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. |
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.
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:
Rust Cross Lint (x86_64-pc-windows-msvc),Rust Tests (windows)andRust Tier 2 (windows)all skipped.lld-link: error: undefined symbol: obs_encoder_get_caps(and the other fourobs_encoder_get_*getters). The nativeRust Tests (windows)job hit the samerust-llderrors. Run 42395284824 repeated the failure. fix: isolate encoder metadata oracle link dependencies #3919 fixed it.Cheapest honest signal
nm/symbol check over the Linux artifactscargo check --target x86_64-pc-windows-msvcchecknever links.soldr cargo test --workspace --no-run --target x86_64-pc-windows-msvcon Linux (soldr's lld-link + xwin)This PR adds
Windows Link Check 🔗 (x86_64-pc-windows-msvc)(build-project.yamljobrust-windows-link, logic inci/windows_link_check.py):pull_requestandmerge_grouprun, as its own job.Unchanged:
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.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.
Build 🧱 / Windows Link Check 🔗 (x86_64-pc-windows-msvc)job 128763579021, success, executed (not skipped).CI Gate ✅128765817907 succeeded.(b) The gate fails on the defect it targets.
lld-link: error: undefined symbol: obs_encoder_get_caps(plus_codec,_type,_id,_type_data),could not compile obs-util (lib test). That is the same error and the same binary as the original push failure. I ran the same script locally on that tree: rc=1, same five symbols.encoder_metadata.oalso defines the CRT inline functions_vsnprintf,_snprintfand__local_stdio_printf_optionsas strong symbols, so whichever archive member lld-link meets first for them gets pulled in. cc-rs names objects with a hash of the source path, so the member order depends on the path.SOLDR_LINKER=fast, ~220 s each. CI's fixed/home/runner/work/...path failed twice.(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
linux-host-v3soldr layer.Tests
ci/test_windows_link_check.py: 7 tests, covering the cargo args (links via--no-runand 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 keepsbuild-cache: falseandprebuild-deps-flags.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).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 asrust-cross-lint.🤖 Generated with Claude Code