Repository navigation
ci: run the chat-lib tests in one matrix job - #344145
Merged
Alexandru Dima (alexdima) merged 1 commit intoOct 25, 2026
Merged
Conversation
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]>
Contributor
There was a problem hiding this comment.
🟢 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
Alexandru Dima (alexdima)
marked this pull request as ready for review
October 25, 2026 16:01
Alexandru Dima (alexdima)
enabled auto-merge (squash)
October 25, 2026 16:01
Ladislau Szomoru (lszomoru)
approved these changes
Oct 25, 2026
Alexandru Dima (alexdima)
deleted the
agents/simplify-pr-yml-matrix-configuration
branch
October 25, 2026 16:09
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 and #344125, which made
PR Gatethe only required check of the Code OSS workflow (mainand the release branches require no other check from it).What changed
if:is never expanded, so its per-OS required checks would not report. Nochat-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 manualchat-lib-package.ymlloses its comment about those required check names.What reviewers should know
needs.<job>.resultisfailurewhen any leg fails. In run 40184336159, onlymacOS (shard 2/2)failed, and PR Gate reportedmacos-electron-smoke-test-shards did not succeed (result: failure).chat-lib tests (ubuntu-latest), …). When the changes cannot affect Copilot, a single skippedchat-lib tests (${{ matrix.os }})entry replaces three, like the skipped smoke test shards already show.(run),(unit)and(integration & smoke)suffixes of the core test job names, and the CLI jobs that skip inside the reusable workflow, also come from the required checks, but open pull requests (ci: run the Linux Electron and node.js unit tests on separate machines #343813, ci: run the Linux Agent Host E2E tests in their own job #343814, ci: run more Windows smoke test shards and split the Windows remote tests #343815, ci: split Windows Agent Host E2E into three shards #343354) edit those lines.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 withmain; its 5 findings are the existing unknown1ES.Poolrunner labels..github/workflows/pr.yml, so every job runs, including the three chat-lib legs, which should report aschat-lib tests (<os>)and pass PR Gate.