Repository navigation
ci: Gate core merge batches on native Windows and macOS Tier 2 - #3608
Merged
Merged
Conversation
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 #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/macosscope 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-63documented core merge groups as Linux only,CORE_PREFIXES/CORE_FILESat 101-102 marked Rust/libobs/Cargo changes as core, andcore_master_push_lanesat 414-423 explicitly escalated only master pushes so “the queue pays nothing”.ci/test_ci_scope.py:49-52enforced that exclusion for merge_group; 131-142 also protected the PR/default Rust selection.build-project.yaml:243-254supplies the queue base/event to scope; native Tier 2 at 2920/3080 requires the platform output.ci/gate_jobs.py:42-49previously 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:
PYTHONPATH=ci uv run --no-project python -m unittest ci.test_ci_scope ci.test_gate_jobs ci.test_merge_queue: 74 tests pass.[](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.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.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.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/rulesetsand the detail endpoint for 25065309 after native Tier 2 completed and again after merge. Sole required context remainsCI 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.