Skip to content

Conversation

@edmundhung
Copy link
Member

@edmundhung edmundhung commented Jun 2, 2025

Fixes #9521


  • Tests
    • TODO (before merge)
    • Tests included
    • Tests not necessary because: covered by existing tests
  • Wrangler / Vite E2E Tests CI Job required? (Use "e2e" label or ask maintainer to run separately)
    • I don't know
    • Required
    • Not required because: no e2e tests
  • Public documentation
  • Wrangler V3 Backport
    • TODO (before merge)
    • Wrangler PR:
    • Not necessary because: no wrangler changes

@edmundhung edmundhung requested a review from a team as a code owner June 2, 2025 14:28
@edmundhung edmundhung requested a review from a team June 2, 2025 14:28
@changeset-bot
Copy link

changeset-bot bot commented Jun 2, 2025

🦋 Changeset detected

Latest commit: 8dc062e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@cloudflare/vitest-pool-workers Minor
create-cloudflare Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Jun 2, 2025
@workers-devprod workers-devprod added the c3-e2e Run c3 e2e tests on a PR label Jun 2, 2025
Copy link

@windsurf-bot windsurf-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file skipped due to size limits:
  • pnpm-lock.yaml

@github-actions
Copy link
Contributor

github-actions bot commented Jun 2, 2025

A Wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-wrangler-9439
Prereleases for other packages:

cloudflare-workers-bindings-extension:

wget https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-workers-bindings-extension-9439 -O ./cloudflare-workers-bindings-extension.0.0.0-vfc78a753f.vsix && code --install-extension ./cloudflare-workers-bindings-extension.0.0.0-vfc78a753f.vsix

create-cloudflare:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-create-cloudflare-9439 --no-auto-update

@cloudflare/kv-asset-handler:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-kv-asset-handler-9439

miniflare:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-miniflare-9439

@cloudflare/pages-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-pages-shared-9439

@cloudflare/unenv-preset:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-unenv-preset-9439

@cloudflare/vite-plugin:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-vite-plugin-9439

@cloudflare/vitest-pool-workers:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-vitest-pool-workers-9439

@cloudflare/workers-editor-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-workers-editor-shared-9439

@cloudflare/workers-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-workers-shared-9439

@cloudflare/workflows-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-workflows-shared-9439

Note that these links will no longer work once the GitHub Actions artifact expires.

Comment on lines -359 to -365
async onCancel(reason: CancelReason) {
if (DEBUG) {
__console.log(`onCancel: ${reason}`);
await scheduler.wait(100);
}
return super.onCancel(reason);
}
Copy link
Member Author

@edmundhung edmundhung Jun 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The onCancel method is renamed to cancel on Vitest 3.2 (https://github.com/vitest-dev/vitest/pull/7878/files#r2058686709)

We can rename it and check whether the method exists, but it seems to be redundant for users as we were adding it just for debug purpose and will require us modify the debug flag manually instead of a user facing config.

@edmundhung edmundhung force-pushed the edmundhung/vitest-3.2-support branch from d7130ad to 14f7956 Compare June 9, 2025 13:54
Copy link
Contributor

@petebacondarwin petebacondarwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming CI is happy

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Jun 9, 2025
@edmundhung edmundhung force-pushed the edmundhung/vitest-3.2-support branch from 14f7956 to 52012f9 Compare June 9, 2025 14:16
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jun 9, 2025

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@9439

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@9439

miniflare

npm i https://pkg.pr.new/miniflare@9439

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@9439

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@9439

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@9439

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@9439

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@9439

wrangler

npm i https://pkg.pr.new/wrangler@9439

commit: 8dc062e

@edmundhung edmundhung added this pull request to the merge queue Jun 11, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Jun 11, 2025
@edmundhung edmundhung force-pushed the edmundhung/vitest-3.2-support branch from 52012f9 to 23871ec Compare June 11, 2025 15:24
@edmundhung edmundhung added this pull request to the merge queue Jun 11, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 11, 2025
@edmundhung edmundhung added this pull request to the merge queue Jun 11, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 11, 2025
@edmundhung edmundhung force-pushed the edmundhung/vitest-3.2-support branch from 23871ec to 8dc062e Compare June 11, 2025 16:13
@edmundhung edmundhung added this pull request to the merge queue Jun 11, 2025
Merged via the queue into main with commit 8d648e7 Jun 11, 2025
20 checks passed
@edmundhung edmundhung deleted the edmundhung/vitest-3.2-support branch June 11, 2025 16:45
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c3-e2e Run c3 e2e tests on a PR

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[vitest-pool-workers] Support Vitest 3.2.x

3 participants