Repository navigation
ci: remove the required-checks job now that PR Gate is the required check - #344125
Merged
Merged
Conversation
…heck Branch protection on main and release/**/* now requires PR Gate instead of the per-OS "<OS> / <job>" checks that required-checks reported, so the job only duplicated PR Gate. Remove it, drop the comments that explained workarounds for the old required checks, and rewrite the tests that read the job's matrix to assert each core test job's skip condition directly. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved findings remain; PR Gate retains job coverage, and the rewritten tests preserve workflow-selection checks.
No open issues 🎉
What changed in this PR
This PR completes the PR Gate rollout from #344110 by removing the duplicate required-check reporters from VS Code’s PR workflow.
Changes:
- Remove the
required-checksmatrix while retaining PR Gate’s coverage of all remaining jobs. - Rewrite workflow tests to validate core job conditions and change-detection outputs directly.
- Update CI guidance and comments to reflect the current check names.
| File | Description |
|---|---|
build/lib/test/detectChanges.test.ts |
Validate job conditions directly and require PR Gate to depend on every other job. |
build/lib/test/agentHostTestSelection.test.ts |
Remove an obsolete check-name reference from a comment. |
.github/workflows/pr.yml |
Delete duplicate reporters and update gate-related comments. |
.github/workflows/pr-linux-cli-test.yml |
Remove obsolete comments without changing behavior. |
.github/skills/smoke-tests/SKILL.md |
Document PR Gate as the aggregate smoke-test gate. |
.github/skills/fix-ci-failures/SKILL.md |
Update failed-check examples to current names. |
Review effort: Balanced
Alexandru Dima (alexdima)
marked this pull request as ready for review
October 25, 2026 12:17
Alexandru Dima (alexdima)
enabled auto-merge (squash)
October 25, 2026 12:17
Ladislau Szomoru (lszomoru)
approved these changes
Oct 25, 2026
Alexandru Dima (alexdima)
deleted the
agents/pr-gate-checks-validation
branch
October 25, 2026 14:28
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.
Follow-up to #344110. Branch protection on
mainandrelease/**/*now requires PR Gate instead of the per-OS<OS> / <job>checks, so therequired-checksjob inpr.ymlonly duplicates PR Gate. This PR removes it.Changes
pr.yml: delete therequired-checksjob. Update the comments that described it or the workarounds for the old required checks ("Until branch protection requires only PR Gate…", "reports as part ofWindows / Electron", "per-OS required checks").pr-linux-cli-test.yml: drop the comments saying theCLIname and innerif:exist so the requiredLinux / CLIcheck reports. The behavior is unchanged.detectChanges.test.ts: the tests read the job-to-output mapping from therequired-checksmatrix. They now assert each core test job'sneeds/ifdirectly, as one snapshot of job → change-detection output, and that every output is declared. The PR Gate test no longer excludesrequired-checks.smoke-testsandfix-ci-failuresskills and anagentHostTestSelection.test.tscomment that referred to the old checks.Notes for reviewers
needsevery job, so nothing it covers changes. The per-job checks such asLinux (run) / Electronkeep reporting as before. Only the duplicateLinux / Electron-style checks go away.pr.yml, so this does not affect them.Testing
cd build && node --test lib/test/detectChanges.test.ts lib/test/agentHostTestSelection.test.ts: 20/20 passed.pr.ymlon purpose to check that the rewritten tests still catch errors. Each case below made the expected test fail:if:replaced withalways()unit-testsinstead ofselected-unit-testsneedscd build && npm run typecheck: passed.npm run eslint -- build/lib/test/detectChanges.test.ts build/lib/test/agentHostTestSelection.test.ts: passed.