Skip to content

ci: remove the required-checks job now that PR Gate is the required check - #344125

Merged
Alexandru Dima (alexdima) merged 1 commit into
mainfrom
agents/pr-gate-checks-validation
Oct 25, 2026
Merged

Alexandru Dima (alexdima) merged 1 commit into
mainfrom
agents/pr-gate-checks-validation

Conversation

@alexdima

Copy link
Copy Markdown
Member

Follow-up to #344110. Branch protection on main and release/**/* now requires PR Gate instead of the per-OS <OS> / <job> checks, so the required-checks job in pr.yml only duplicates PR Gate. This PR removes it.

Changes

  • pr.yml: delete the required-checks job. Update the comments that described it or the workarounds for the old required checks ("Until branch protection requires only PR Gate…", "reports as part of Windows / Electron", "per-OS required checks").
  • pr-linux-cli-test.yml: drop the comments saying the CLI name and inner if: exist so the required Linux / CLI check reports. The behavior is unchanged.
  • detectChanges.test.ts: the tests read the job-to-output mapping from the required-checks matrix. They now assert each core test job's needs/if directly, as one snapshot of job → change-detection output, and that every output is declared. The PR Gate test no longer excludes required-checks.
  • Skills / test comment: update smoke-tests and fix-ci-failures skills and an agentHostTestSelection.test.ts comment that referred to the old checks.

Notes for reviewers

  • PR Gate already needs every job, so nothing it covers changes. The per-job checks such as Linux (run) / Electron keep reporting as before. Only the duplicate Linux / Electron-style checks go away.
  • Existing release branches keep their own copy of 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.
  • I broke pr.yml on purpose to check that the rewritten tests still catch errors. Each case below made the expected test fail:
    • a job wired to the wrong change-detection output
    • an if: replaced with always()
    • a macOS/Windows unit job skipping on unit-tests instead of selected-unit-tests
    • a job dropped from PR Gate's needs
  • cd build && npm run typecheck: passed.
  • npm run eslint -- build/lib/test/detectChanges.test.ts build/lib/test/agentHostTestSelection.test.ts: passed.

…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]>
Copilot AI balanced review requested due to automatic review settings October 25, 2026 11:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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-checks matrix 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

@alexdima
Alexandru Dima (alexdima) merged commit 8877a78 into main Oct 25, 2026
47 checks passed
@alexdima
Alexandru Dima (alexdima) deleted the agents/pr-gate-checks-validation branch October 25, 2026 14:28
@vs-code-engineering vs-code-engineering Bot added this to the 1.144.0 milestone Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants