Skip to content

ci: run the chat-lib tests in one matrix job - #344145

Merged
Alexandru Dima (alexdima) merged 1 commit into
mainfrom
agents/simplify-pr-yml-matrix-configuration
Oct 25, 2026
Merged

Alexandru Dima (alexdima) merged 1 commit into
mainfrom
agents/simplify-pr-yml-matrix-configuration

Conversation

@alexdima

Copy link
Copy Markdown
Member

Follow-up to #344110 and #344125, which made PR Gate the only required check of the Code OSS workflow (main and the release branches require no other check from it).

What changed

  • chat-lib tests: ci: skip chat-lib tests when pull requests do not touch Copilot #342257 split them into three copies of one job, because a matrix job skipped by a job-level if: is never expanded, so its per-OS required checks would not report. No chat-lib tests (…) check is required anymore, so they run as one matrix job, chat-lib-tests, again, and PR Gate needs it instead of the three jobs. The manual chat-lib-package.yml loses its comment about those required check names.
  • Electron smoke test shards: they stay a matrix. Unlike the chat-lib split, they don't exist for required checks: they split smoke tests that take one machine up to the 20 minute timeout of the step (ci: shard Electron smoke tests across two jobs per platform #341808). A comment now says so.

What reviewers should know

How to test

  • cd build && node --test lib/test/detectChanges.test.ts lib/test/agentHostTestSelection.test.ts: passed (21 tests), including the test that PR Gate needs every other job of the workflow.
  • actionlint -shellcheck= -pyflakes= .github/workflows/pr.yml .github/workflows/chat-lib-package.yml (actionlint 1.7.12): no new findings compared with main; its 5 findings are the existing unknown 1ES.Pool runner labels.
  • This pull request changes .github/workflows/pr.yml, so every job runs, including the three chat-lib legs, which should report as chat-lib tests (<os>) and pass PR Gate.

The chat-lib tests ran as three copies of one job because a matrix job skipped by a job-level if: is never expanded, so its per-OS required checks would not report. Branch protection now requires only PR Gate from the Code OSS workflow, and PR Gate fails when any leg of a matrix job fails, so they run as one matrix job again.

The Electron smoke test shards stay a matrix: they split tests that take one machine up to the 20 minute timeout of the step. Say so in the workflow.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 25, 2026 15:47

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 focused refactor preserves three-platform test coverage and execution conditions while retaining PR Gate coverage, with no unresolved findings.

No open issues 🎉

What changed in this PR

Consolidates chat-lib CI tests into one matrix job now that PR Gate is the sole required Code OSS check, following #344110 and #344125.

Changes:

  • Preserves the three operating systems, execution conditions, and per-platform check names in a single matrix.
  • Updates PR Gate to depend on the consolidated job.
  • Clarifies why Electron smoke tests remain sharded and removes an obsolete comment from the manual workflow.
File Description
.github/​workflows/​pr.yml Consolidates chat-lib jobs, updates PR Gate dependencies, and documents smoke-test sharding.
.github/​workflows/​chat-lib-package.yml Removes an outdated required-check comment; execution is unchanged.

Review effort: Balanced

@alexdima
Alexandru Dima (alexdima) merged commit 53e8ffb into main Oct 25, 2026
47 checks passed
@alexdima
Alexandru Dima (alexdima) deleted the agents/simplify-pr-yml-matrix-configuration branch October 25, 2026 16:09
@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