Add vitest-pool-bun: a Vitest 4.1 custom pool that runs tests in Bun (PoC)#800
Draft
Copilot wants to merge 6 commits into
Draft
Add vitest-pool-bun: a Vitest 4.1 custom pool that runs tests in Bun (PoC)#800Copilot wants to merge 6 commits into
Copilot wants to merge 6 commits into
Conversation
Copilot created this pull request from a session on behalf of
peter-leonov-ch
June 3, 2026 12:13
View session
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Copilot
AI
changed the title
Add vitest-pool-bun: a Vitest 4.1 custom pool that runs tests in Bun (PoC)
ci: add CI workflow for the vitest-pool-bun PoC
Jun 3, 2026
Collaborator
|
@copilot the CI seems to be working fine, great job! now, create a PR to this branch with running some of node unit tests using this runner pool |
3 tasks
Contributor
Author
|
@peter-leonov-ch I've opened a new pull request, #801, to work on those changes. Once the pull request is ready, I'll request review from you. |
…n Bun pool (PoC) (#801) ## Summary The `vitest-pool-bun` proof-of-concept package had no CI coverage. This PR adds a dedicated workflow that now validates both the PoC example suite and a selected subset of repository Node unit tests using the Bun pool runner. - New workflow `.github/workflows/vitest-pool-bun.yml`, path-scoped to `vitest-pool-bun/**` (and the workflow file), triggered on `push` to `main`, `pull_request`, and `workflow_dispatch`. - Keeps a pinned, least-privilege setup (`permissions: {}`, SHA-pinned actions, concurrency cancel-in-progress). - Runs `npm run demo` in `vitest-pool-bun` (green PoC suite), then installs root dependencies and runs selected Node unit tests through Bun pool using: - `vitest-pool-bun/examples/clickhouse-node-unit.config.mjs` - `packages/client-node/__tests__/unit/node_user_agent.test.ts` - `packages/client-node/__tests__/unit/node_default_logger.test.ts` ## Checklist - [ ] Unit and integration tests covering the common scenarios were added - [ ] A human-readable description of the changes was provided to include in CHANGELOG - [ ] For significant changes, documentation in https://github.com/ClickHouse/clickhouse-docs was updated with further explanations or tutorials --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| npm install |
| - name: Install dependencies (clickhouse-js root) | ||
| working-directory: . | ||
| run: | | ||
| npm install |
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.
Summary
The
vitest-pool-bunproof-of-concept package had no CI coverage. This adds a dedicated workflow that exercises its example suite on every change.Changes
.github/workflows/vitest-pool-bun.yml:paths-scoped tovitest-pool-bun/**(and the workflow file) so it only runs when the PoC changes; triggers onpushtomain,pull_request, andworkflow_dispatch.testsjob: Node 24 host + Bun 1.3.14 worker (pinnedoven-sh/setup-bun),npm install, thennpm run demo(builds and runs the green example suite under Bun).permissions: {}, SHA-pinned actions,concurrencygroup withcancel-in-progress.Only the green
demoscript is wired in;demo:failureanddemo:diagnosticsare intentionally excluded since they assert a failing/crashing run and would fail the job. No OTEL/coverage env block, as this standalone package is outside the workspaces and doesn't use the repo's coverage tooling.Checklist