Skip to content

ci: resolve merge-group scope independently and keep the queue Linux-only - #3634

Merged
zackees merged 2 commits into
masterfrom
fix/ci-gate-merge-group-scope
Nov 4, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/ci-gate-merge-group-scope

Conversation

@zackees

@zackees zackees commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Fixes #3633. Supersedes the native-on-queue decision in #3606 at the maintainer’s request.

CI Gate rejected merge-group run 41859960760 with CI Gate did not receive the merge group's core scope, although Event Data job 126678747964 computed core=true. The reusable build call lost its exposed output after macOS jobs 126679116973/126679117143 were cancelled without an assigned runner or steps. Checking that output before listing jobs hid the actual capacity failures.

The gate now resolves scope directly from the merge-group event’s immutable base/head git diff, requires successful Event Data, names missing inputs, and lists child-job failures before scope diagnostics. Runnerless cancellations remain failures, explicitly diagnosed as runner-capacity conditions; no retry or success conversion hides missing execution. Executed failures, timeouts, startup failures and action-required results continue to block. The checker runs even after a direct-needs failure.

Merge-group execution is Linux-only, including for platform diffs. Native PR selection stays intact; core/platform master pushes still execute native Rust tests/Tier 2. Scope-policy edits also select native execution on master so this routing change exercises its consumers after merge. Full app builds already belonged to nightly/manual/release events, and remain there. Tradeoff: native runtime/linker regressions are detected after merge and require fix-forward/revert; Linux cross-lint is not native execution proof. No ruleset changes: CI Gate remains the sole required context.

Evidence: forge-ci/zccache run 41857782623 observer 126671059827 observed macos-15 queued for 909s and failed. Baseline master push 41849221687 concluded success with actual assigned-runner macOS Rust Tests 126640904675 and Tier 2 126640904805, and Windows 126640904718/126640904827. These are baseline observations, not post-change proof. Post-change queue/push run conclusions and job identities will be added after merge. Full rationale: docs/ci-merge-group-scope.md.

Validation:

  • RED 3b23668df: three focused regressions produced seven assertion failures (empty scope rejected healthy queue, missing capacity diagnostic, native selection on queue).
  • GREEN 04411c225: 73 focused tests pass in the existing ci/test_gate_jobs.py and ci/test_ci_scope.py files; malformed event shapes and all unsuccessful job conclusions are covered.
  • Ruff format/check and basedpyright (explicit basic mode for script modules): clean.
  • One clud-review primary reviewer: clean after fixing malformed-event diagnosis.
  • Repository local gate attempted: lint failed at Cargo inventory with KeyError: workspace_members from the soldr metadata response; standalone lint encountered a transient probe-crate manifest race during overlapping self-tests, then failed building the host Dylint driver (v6.0.3 expected, v6.2.0 available). No local attestation or green claim; PR CI must validate the full required gate. Tier 2 local lane still running.
  • Rust/C/API tiers do not apply: no product implementation, C tests, headers or Rust test executables change.

@zackees
zackees added this pull request to the merge queue Nov 4, 2026
@zackees

zackees commented Nov 4, 2026

Copy link
Copy Markdown
Member Author

Blocked on hosted runner allocation as of 2026-11-04 17:41:24 UTC.

  • PR CI run 41873571427 concluded success, including CI Gate job 126733635274. RED 3b23668 / GREEN 04411c2; 73 focused tests and Ruff/basedpyright checks passed; the single clud-review reviewer returned clean.
  • PR ci: resolve merge-group scope independently and keep the queue Linux-only #3634 is enqueued (last observed position 3), still OPEN, mergedAt: null. A 30-minute merge watch timed out without cancelling any workflow.
  • Post-change merge-group run 41875849768 remains queued. Its CI Gate job 126740732329 has been queued since 17:25:45 UTC, over 15 minutes, with null runner_id/runner_name and no steps. Event Data job 126734904696 succeeded and logged core=false macos=false windows=false; assigned runners in this run are Linux. This is not a green merge-group result.
  • The preceding queue run 41873693827 also had macOS jobs 126731447886 and 126731447902 queued with empty runner names. No queue entries were removed or jumped, and no ruleset was changed.
  • Consequently, post-change native master-push execution proof is not yet available. The successful native push run 41849221687 documented above is historical baseline only, not after-change proof. The policy change selects native validation for ci/ci_scope.py on master so the eventual merge push exercises it.
  • Full local gate did not pass: lint failed at Cargo inventory (KeyError: workspace_members); standalone lint also encountered the host Dylint-driver mismatch/build failure. The remaining local Tier 2 lane was stopped after the lint failure to free shared resources. No local attestation was issued. The checkout is clean and both commits are pushed.

Remaining verification: observe a completed, successful merge_group run and mergedAt; then record the actual master-push run conclusion and assigned-runner execution of macOS/Windows Rust Tests and Tier 2. Do not substitute skipped jobs, a cancelled workflow, or the historical baseline for this evidence. The sole required context remains CI Gate ✅.

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.

bug: ci: merge-group gate masks runner-capacity cancellations with missing scope

1 participant