Skip to content

ci: Gate core merge batches on native Windows and macOS Tier 2 - #3608

Merged
zackees merged 3 commits into
masterfrom
infra/queue-platform-scope
Nov 4, 2026
Merged

zackees merged 3 commits into
masterfrom
infra/queue-platform-scope

Conversation

@zackees

@zackees zackees commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Fixes #3606. The effect-parser queue batch passed CI Gate ✅ without native linking, then master failed MSVC Tier 2. Core merge groups now select the existing Windows/macOS Rust and Tier 2 lanes. The aggregate also requires both native Tier 2 jobs to finish successfully for a core batch: skipped, absent, unfinished, failed or cancelled jobs block it. Missing batch scope fails closed.

Decision and cost: retain PR path selection and Linux as the default for batches without core changes. Reuse windows/macos scope for core merge groups rather than adding a new lane. Incremental cost per core-containing batch: two windows-2025-vs2026 jobs (Rust tests and Tier 2), two macos-26 jobs (Rust tests and Tier 2), and one Ubuntu cross-lint job. No full OBS app builds are added. This is shared across up to five PRs; no extra native cost is introduced on each core-only PR. Actual runner minutes depend on cache state; this is a job-count cost, not a timing claim.

Why it happened (intentional cost policy, not a missing glob): on the pre-fix base a5218b2, ci/ci_scope.py:59-63 documented core merge groups as Linux only, CORE_PREFIXES/CORE_FILES at 101-102 marked Rust/libobs/Cargo changes as core, and core_master_push_lanes at 414-423 explicitly escalated only master pushes so “the queue pays nothing”. ci/test_ci_scope.py:49-52 enforced that exclusion for merge_group; 131-142 also protected the PR/default Rust selection. build-project.yaml:243-254 supplies the queue base/event to scope; native Tier 2 at 2920/3080 requires the platform output. ci/gate_jobs.py:42-49 previously rejected failures/cancellations but accepted scope skips. The fix moves native coverage before merge for core batches while preserving that cost policy for PRs and other batches.

Verified API evidence:

Validation:

  • RED commit 4eb369e: the new Rust/libobs merge-group scope test fails Windows selection; the aggregate regression fails because require_native/output wiring does not exist yet (3 selected methods, 5 failures / 5 errors including subtests).
  • GREEN commit 25f2165: PYTHONPATH=ci uv run --no-project python -m unittest ci.test_ci_scope ci.test_gate_jobs ci.test_merge_queue: 74 tests pass.
  • Replayed the actual jobs API response from 41747534921 through the base aggregate: blockers [] (green with skipped native lanes). The identical response through the fixed core-batch contract returns both native Tier 2 job names (red). The regression also verifies the production main entry point, scope output wiring, missing scope, and that ordinary scoped skips still pass.
  • clud-review: clean (one read-only reviewer).
  • First merge-group run 41762855118 started both native Tier 2 jobs, but its self-tests caught an existing API-error fixture inheriting GITHUB_EVENT_NAME=merge_group. Reproduced locally (12 gate tests, one failure), then isolated that fixture's event in 5f4c395. GITHUB_EVENT_NAME=merge_group PYTHONPATH=ci uv run --no-project --python 3.14 python -m unittest ci.test_ci_scope ci.test_gate_jobs ci.test_merge_queue: all 74 pass. Production scope/gate policy is unchanged by this fixture fix.
  • Full CI self-tests: uv run --no-project --python 3.14 python -m unittest discover -s ci -p 'test_*.py': 2,434 tests pass (16 skipped). The first local run used Python 3.13 and hit four existing Qt compression/import-policy failures; Python 3.14 provides compression.zstd and passes. The report wrapper calls intentional negative-build diagnostics anomalous; the suite exit code is zero.
  • Rust README now states the native batch validation contract, so this PR's actual merge-group diff includes rust/** and exercises the new scope. No Rust implementation or C test changes; Rust test-cost tiers do not apply to this CI-only fix.

Execution proof: corrected merge_group run 41763834389, batch head 8808b6a. The compare API against its queue base 658cbf1 lists rust/README.md in the actual batch diff. Windows Tier 2 job 126358236172 EXECUTED and concluded success. macOS Tier 2 job 126358236147 also concluded success. Both native Rust test jobs and cross-lint passed. CI Gate job 126363750446 concluded success at 03:14:07Z; PR merged through the queue at 2026-11-04T03:14:20Z, commit 8808b6a.

Measured cost for these five selected jobs in the successful merge-group run: Windows Tier 2 11m03s; macOS Tier 2 9m41s; Windows Rust tests 6m32s; macOS Rust tests 8m25s; Linux cross-lint 8m55s. Total runner elapsed time 44m36s (not billing-weighted); baseline Linux gates and the superseded attempt are excluded. This is cost per core-containing merge-group run, with existing proofs potentially reducing later runs. Five is batch capacity, not guaranteed occupancy; speculative queue rebuilds can repeat this cost. PR native scope and batch limits remain unchanged.

Ruleset: re-read via gh api repos/obs-rust/obs-studio/rulesets and the detail endpoint for 25065309 after native Tier 2 completed and again after merge. Sole required context remains CI Gate ✅ (integration 15368); max_entries_to_build=5 and max_entries_to_merge=5, ALLGREEN. updated_at is still 2026-10-29T20:47:31.809-07:00. No ruleset mutations or required-context changes.

@zackees zackees added infra Build, gate, CI and tooling quality Testing, safety and performance lanes labels Nov 4, 2026
@zackees
zackees added this pull request to the merge queue Nov 4, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Nov 4, 2026
@zackees
zackees enabled auto-merge November 4, 2026 02:50
@zackees
zackees added this pull request to the merge queue Nov 4, 2026
Merged via the queue into master with commit 8808b6a Nov 4, 2026
37 checks passed
@zackees
zackees deleted the infra/queue-platform-scope branch November 4, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra Build, gate, CI and tooling quality Testing, safety and performance lanes

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: ci: core merge batches skip native Tier 2 before CI Gate passes

1 participant