Repository navigation
ci: fix the names of skipped PR checks - #344160
Merged
Alexandru Dima (alexdima) merged 1 commit intoOct 25, 2026
Merged
Conversation
GitHub neither evaluates the expressions in the name of a skipped job nor expands the matrix of a job that its if: skips, so skipped checks reported as "chat-lib tests (${{ matrix.os }})" and "Linux (shard ${{ matrix.shard }}/${{ strategy.job-total }})". A skipped job that calls a reusable workflow also reports under its own name only, so the skipped Electron-Unit, Electron and Remote jobs all reported as "Linux (run)".
The name of the chat-lib job no longer references the matrix: GitHub appends the matrix values to it when the job runs, as in "chat-lib tests (ubuntu-latest)".
The test jobs now skip the way the Rust checks already did: the calling job always runs and passes affected: false, and its reusable workflow skips its job, whose name is fixed to the OS. Each check reports as "<job> / <OS>", for example "Electron-Unit / Linux" or "Electron-Smoke (shard 1/2) / macOS", whether it runs or not, and the Rust checks are renamed to match: "CLI / Linux" and "Copilot Shim / Linux". Branch protection requires only PR Gate, which treats such a calling job as skipped, as it already did for the Rust checks. The Linux and macOS workflows drop their job_name input; Windows keeps it for the JobId label of its runner.
A test now fails when a job that the changes can skip has an expression in its name.
Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The changes consistently apply the established skip pattern, preserve test selection and gate coverage, and have no identified blocking issues.
No open issues 🎉
What changed in this PR
This PR gives Code OSS test checks consistent, distinct names whether they run or are skipped, extending the reusable-workflow pattern already used for Rust checks.
Changes:
- Moves affected-test skipping into reusable workflows with fixed platform names while preserving selection conditions.
- Updates regression tests to verify skip inputs and reject expression-based names on conditionally skipped jobs.
- Refreshes CI documentation with the new check names and PR Gate behavior.
| File | Description |
|---|---|
src/vs/platform/agentHost/test/node/e2e/README.md |
Updates Agent Host check names and PR Gate documentation. |
build/lib/test/detectChanges.test.ts |
Verifies skip inputs, fixed names, and naming regression protection. |
build/lib/test/agentHostTestSelection.test.ts |
Updates assertions for selection through affected. |
.github/workflows/pr.yml |
Renames checks and passes selection conditions to reusable workflows. |
.github/workflows/pr-win32-test.yml |
Adds internal skipping and a fixed Windows name; retains runner identity. |
.github/workflows/pr-linux-test.yml |
Replaces job_name with affected and fixes the Linux name. |
.github/workflows/pr-linux-cli-test.yml |
Renames the inner check to Linux. |
.github/workflows/pr-darwin-test.yml |
Replaces job_name with affected and fixes the macOS name. |
.github/skills/smoke-tests/SKILL.md |
Updates smoke-shard check names. |
.github/skills/integration-tests/SKILL.md |
Updates the Windows Agent Host check name. |
.github/skills/fix-ci-failures/SKILL.md |
Updates check-name examples for artifact lookup. |
Review effort: Balanced
Alexandru Dima (alexdima)
marked this pull request as ready for review
October 25, 2026 21:04
Alexandru Dima (alexdima)
enabled auto-merge (squash)
October 25, 2026 21:05
Ladislau Szomoru (lszomoru)
approved these changes
Oct 25, 2026
Alexandru Dima (alexdima)
deleted the
agents/improve-skipped-item-appearance
branch
October 25, 2026 22:19
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.
Skipped checks in the Code OSS workflow show unevaluated expressions and duplicate names, for example on #344148:
chat-lib tests (${{ matrix.os }})Linux (shard ${{ matrix.shard }}/${{ strategy.job-total }}), and the same for macOS and WindowsLinux (run)up to three times, for the Electron-Unit, Electron and Remote jobsGitHub doesn't evaluate the expressions in a skipped job's name, and doesn't expand the matrix of a job that its
if:skips. A skipped job that calls a reusable workflow reports under its own name only. This follows up on #344145, which made chat-lib a matrix job, and #342134, which fixed the same problem for the Rust checks.Changes
chat-lib tests. GitHub appends the matrix value while it runs (chat-lib tests (ubuntu-latest)), and a skipped run showschat-lib tests.affected. The job inside the reusable workflow skips, and its name is fixed toLinux,macOSorWindows, so each check has one name whether it runs or not (see the table).job_name, which only named the job. Windows keeps it for the runner'sJobIdlabel.if:now checkaffected. A new test fails when a job the changes can skip has an expression in its name.required-checksjob, so it now refers to PR Gate.Linux (run) / Electron-UnitLinux (run)Electron-Unit / LinuxLinux (run) / ElectronLinux (run)Electron / LinuxLinux (shard 1/2) / Electron-SmokeLinux (shard ${{ matrix.shard }}/${{ strategy.job-total }})Electron-Smoke (shard 1/2) / LinuxLinux (unit) / BrowserLinux (unit)Browser-Unit / LinuxLinux (integration & smoke) / BrowserLinux (integration & smoke)Browser / LinuxLinux (run) / RemoteLinux (run)Remote / LinuxWindows (agent host) / Agent-Host-E2EWindows (agent host)Agent-Host-E2E / WindowsLinux / CLILinux / CLICLI / LinuxLinux Copilot Shim / CLILinux Copilot Shim / CLICopilot Shim / LinuxmacOS and Windows follow the same pattern.
Notes for reviewers
isRequiredon ripple: depend on the content of files that root paths name, and addripple why#344148). PR Gate already treats a caller whose inner job is skipped asskipped, as it does forlinux-cli-teststoday.pr.ymland the test workflows, so every test job should run here and the checks list shows the new running names. The skipped names appear on later PRs that a job can't be affected by, such as docs-only changes.How to test
cd build && node --test lib/test/detectChanges.test.ts lib/test/agentHostTestSelection.test.ts lib/test/detectMissingCaches.test.ts: passed (26 tests). Putting backname: chat-lib tests (${{ matrix.os }})makes the new test fail, as intended.npm run eslint -- build/lib/test/detectChanges.test.ts build/lib/test/agentHostTestSelection.test.ts: passed.cd build && npm run typecheck: passed.actionlint -shellcheck= -pyflakes=(v1.7.7) onpr.yml,pr-linux-test.yml,pr-darwin-test.yml,pr-win32-test.ymlandpr-linux-cli-test.yml: no new findings compared tomain. The only findings are the existing unknown-runner-label warnings for the self-hosted pools andmacos-26-xlarge.