Skip to content

ci: fix the names of skipped PR checks - #344160

Merged
Alexandru Dima (alexdima) merged 1 commit into
mainfrom
agents/improve-skipped-item-appearance
Oct 25, 2026
Merged

Alexandru Dima (alexdima) merged 1 commit into
mainfrom
agents/improve-skipped-item-appearance

Conversation

@alexdima

Copy link
Copy Markdown
Member

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 Windows
  • Linux (run) up to three times, for the Electron-Unit, Electron and Remote jobs

GitHub 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: the job is named chat-lib tests. GitHub appends the matrix value while it runs (chat-lib tests (ubuntu-latest)), and a skipped run shows chat-lib tests.
  • Test jobs: they skip the way the Rust checks already did. The caller always runs (no runner) and passes affected. The job inside the reusable workflow skips, and its name is fixed to Linux, macOS or Windows, so each check has one name whether it runs or not (see the table).
  • The Linux and macOS workflows drop job_name, which only named the job. Windows keeps it for the runner's JobId label.
  • The tests that pinned the callers' if: now check affected. A new test fails when a job the changes can skip has an expression in its name.
  • The check names in the fix-ci-failures, smoke-tests and integration-tests skills and in the Agent Host E2E README are updated. The README also still described the removed required-checks job, so it now refers to PR Gate.
Job Before (running) Before (skipped) After (both)
Electron unit Linux (run) / Electron-Unit Linux (run) Electron-Unit / Linux
Electron integration Linux (run) / Electron Linux (run) Electron / Linux
Smoke shards Linux (shard 1/2) / Electron-Smoke Linux (shard ${{ matrix.shard }}/${{ strategy.job-total }}) Electron-Smoke (shard 1/2) / Linux
Browser unit Linux (unit) / Browser Linux (unit) Browser-Unit / Linux
Browser integration & smoke Linux (integration & smoke) / Browser Linux (integration & smoke) Browser / Linux
Remote Linux (run) / Remote Linux (run) Remote / Linux
Agent Host E2E (Windows only) Windows (agent host) / Agent-Host-E2E Windows (agent host) Agent-Host-E2E / Windows
Rust CLI Linux / CLI Linux / CLI CLI / Linux
Copilot shim Linux Copilot Shim / CLI Linux Copilot Shim / CLI Copilot Shim / Linux

macOS and Windows follow the same pattern.

Notes for reviewers

  • Branch protection requires only PR Gate, so no required check is renamed (checked with GraphQL isRequired on ripple: depend on the content of files that root paths name, and add ripple why #344148). PR Gate already treats a caller whose inner job is skipped as skipped, as it does for linux-cli-tests today.
  • Smoke tests show one skipped row per shard instead of one per OS, so 3 more rows.
  • External dashboards or queries that match the old check names need updating.
  • This PR changes pr.yml and 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 back name: 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) on pr.yml, pr-linux-test.yml, pr-darwin-test.yml, pr-win32-test.yml and pr-linux-cli-test.yml: no new findings compared to main. The only findings are the existing unknown-runner-label warnings for the self-hosted pools and macos-26-xlarge.
  • Pre-commit hygiene hook: passed. None of the changed files are in its scope.

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

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

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

@alexdima
Alexandru Dima (alexdima) merged commit 5568c03 into main Oct 25, 2026
47 checks passed
@alexdima
Alexandru Dima (alexdima) deleted the agents/improve-skipped-item-appearance branch October 25, 2026 22:19
@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