Repository navigation
ci: add a single PR Gate job for the Code OSS workflow - #344110
Merged
Alexandru Dima (alexdima) merged 3 commits intoOct 25, 2026
Merged
Conversation
Adds a pr-gate job that passes when every test job succeeded or was skipped because the changes cannot affect it. It replaces the 15 matrix jobs of required-checks, which each burn a VM, as the check to require. The required-checks job stays until branch protection requires PR Gate. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The gate can pass when change detection fails and all fallback tests succeed, contrary to the stated requirement.
1 open issue
What changed in this PR
Adds a single PR Gate check to consolidate Code OSS test results, while retaining the legacy required checks during the branch-protection migration.
Changes:
- Adds an always-running gate that evaluates change detection and 19 test jobs.
- Leaves the existing required-check matrix unchanged for staged rollout.
- Updates workflow comments and smoke-test documentation to describe the new gate.
| File | Description |
|---|---|
.github/workflows/pr.yml |
Adds PR Gate and updates comments about required checks. |
.github/skills/smoke-tests/SKILL.md |
Documents the gate and legacy-check migration. |
Review effort: Balanced
PR Gate now needs every job of the workflow (plan -> jobs -> gate) and passes when each succeeded or was skipped by the plan, so that it can replace all the required checks of Code OSS. Detect Changes fails open, so its failure does not fail the gate. Co-authored-by: Copilot <[email protected]>
A job missing from the gate's needs would silently stop being required once branch protection requires only PR Gate. Co-authored-by: Copilot <[email protected]>
Alexandru Dima (alexdima)
marked this pull request as ready for review
October 25, 2026 10:10
Ladislau Szomoru (lszomoru)
approved these changes
Oct 25, 2026
Alexandru Dima (alexdima)
enabled auto-merge (squash)
October 25, 2026 10:12
Alexandru Dima (alexdima)
deleted the
agents/gatekeeper-job-optimization
branch
October 25, 2026 10:13
This was referenced Oct 25, 2026
Closed
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.

The Code OSS workflow reports 23 required checks. Fifteen of them (
<OS> / <job>) come from therequired-checksmatrix, which burns 15 VMs only to report results, and every new job needs a ruleset change.This adds a
PR Gatejob so that the workflow becomes:PR Gateneeds every job of the workflow and passes when each one succeeded or was skipped because the plan says the changes cannot affect it. It fails when any job failed or was cancelled. It runs withif: always(), because a skipped required check would pass.Detect Changes fails open, as today: when it fails, every job runs, and the gate only warns. To make the plan required later, fail the gate on
changes: failuretoo. That is a one-line change, with no ruleset change.Rollout
PR Gateand leaverequired-checksand the existing required checks untouched.Code OSS / PR Gatein the ruleset and remove the 23Code OSSrequired checks:Compile & Hygiene,Linux / CLI,Copilot - *(4),chat-lib tests (*)(3) and<OS> / <job>(15). Release branches run their ownpr.yml, so backport this to the active release branch first, or switch them when the next one is cut.required-checks. Other cleanups become possible then, because skipped jobs no longer need to report check names. For example, theaffectedinput ofpr-linux-cli-test.ymlcan become a callerif:, and the chat-lib jobs can become a matrix.Reviewer notes
RippleandLinux Copilot Shim / CLIare not required today, but the gate covers them.needs, or it is not required once step 2 is done. A test inbuild/lib/test/detectChanges.test.tsfails when one is missing.How to test
PR Gateshould be reported on this PR's run and pass.node --test lib/test/detectChanges.test.tsinbuild/: passed (10 tests). The new test fails when a job is removed from the gate'sneeds.needsdata. All jobs succeeded, docs-only (most jobs skipped), and the planner failing with every job run all pass. A test failure, a compile failure, the planner failing with a test failure, and the run being cancelled during planning or during tests all fail.