ci: make required checks merge-queue ready

Closed
TE
2mo ago
+146-40

Summary

Make the required main checks report on GitHub merge-group commits so the merge queue can be enabled without permanently pending entries.

  • Add merge_group handling to the trusted Web complexity workflow. It checks the synthetic merge commit with the immutable base policy/tooling revision and never runs candidate tooling.
  • Add a merge-group-only bridge that reports the required CLA Assistant and CLA policy guard contexts after those checks already passed on the constituent pull requests.
  • Promote all five required contexts in the merge-group guard test and exempt the fixed control-plane bridge from the fork runner-policy test.

Validation

  • tests/test_ci_merge_queue_required_checks.py (PyYAML venv)
  • bash tests/test_ci_self_hosted_guard.sh
  • YAML parse of changed workflows
  • git diff --check

Maintainer follow-up

After this lands, enable the merge-queue rule on the main ruleset and run one canary merge group. The queue policy (batch size, cancellation, and full versus subset validation) remains a repository-setting decision.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Summary by cubic

Makes the required main status checks report on GitHub merge-group commits so the merge queue can be enabled without permanently pending entries.

  • Adds merge_group handling to the trusted Web complexity workflow so it checks the synthetic merge commit against the immutable base policy/tooling revision while running Bun with an explicit empty config, never candidate-controlled tooling or Bun config.
  • Adds a merge-group-only bridge workflow that reports the required CLA Assistant and CLA policy guard contexts after those checks already passed on the constituent pull requests.
  • Exempts the bridge from the runner-policy test only for its two fixed jobs on ubuntu-24.04, each with one named run step and no matrix, dependencies, or action steps.
  • Self-tests the bridge guard by parsing the workflow as YAML and rejecting forbidden edits, and pins the empty Bun config behavior in the complexity workflow test.
  • Promotes all five required contexts in the merge-group guard test.

Maintainer follow-up: enable the merge-queue rule on the main ruleset and run one canary merge group. The queue policy remains a repository-setting decision.

Summary by CodeRabbit

  • New Features

    • Added merge-group validation for CLA compliance, policy checks, and web complexity.
    • Web complexity checks now run for merge-group updates as well as pull requests.
    • Required merge-queue checks now provide consistent results for synthetic merge commits.
  • Bug Fixes

    • Improved verification of merge-group commits and status reporting.
    • Strengthened validation for merge-group workflows and trusted web-complexity checks.