Skip to content

[vite-plugin] Skip remote bindings e2e tests on Windows - #12436

Merged
petebacondarwin merged 1 commit into
mainfrom
pbd/skip-remote-bindings-tests-on-windows
Feb 6, 2026
Merged

petebacondarwin merged 1 commit into
mainfrom
pbd/skip-remote-bindings-tests-on-windows

Conversation

@petebacondarwin

@petebacondarwin petebacondarwin commented Feb 5, 2026 •

Copy link
Copy Markdown
Contributor

Fixes https://jira.cfdata.org/browse/DEVX-2030

Summary

Skip all vite-plugin remote bindings e2e tests on Windows due to slow/unreliable remote proxy session initialization times in CI, which causes intermittent timeout failures during Vite dev server startup.

Root Cause Analysis

The first Vite dev server startup with remote bindings is slower than subsequent runs because it creates a brand new DevEnv instance for each worker's remote proxy session. This involves:

  1. Port allocation via getPort()
  2. Authentication - requireAuth() and requireApiToken() calls
  3. Remote preview session creation - API calls to /accounts/{id}/workers/subdomain/edge-preview
  4. Proxy worker upload and waiting for readiness

On Windows CI, these operations can take longer than the 20-second waitForReady timeout, causing intermittent test failures.

Changes

  • Adds a Windows platform check that skips all remote bindings tests
  • Removes redundant individual test.skipIf(process.platform === "win32") conditions
  • Consolidates skip logic at the describe block level with a clear comment explaining why

  • Tests

    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because: This change only skips tests on Windows
  • Public documentation

    • Cloudflare docs PR(s):
    • Documentation not necessary because: Internal test change only

Open with Devin

Remote bindings tests are skipped on Windows due to slow/unreliable
remote proxy session initialization times in CI, which causes
intermittent timeout failures during Vite dev server startup.

This change:
- Adds a Windows platform check that skips all remote bindings tests
- Removes redundant individual test skip conditions
- Consolidates skip logic at the describe block level

See: https://jira.cfdata.org/browse/DEVX-2030
@petebacondarwin
petebacondarwin requested a review from a team as a code owner February 5, 2026 18:26
@changeset-bot

changeset-bot Bot commented Feb 5, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a8a9719

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

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

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@pkg-pr-new

pkg-pr-new Bot commented Feb 5, 2026

Copy link
Copy Markdown
create-cloudflare

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

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-editor-shared

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

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@12436

wrangler

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

commit: a8a9719

Comment on lines -195 to -198
// On Windows the path for the miniflare dependency gets pretty long and this fails in node < 22.7
// (see: https://github.com/shellscape/jsx-email/issues/225#issuecomment-2420567832), so
// we need to skip this on windows since in CI we're using node 20
// we should look into re-enable this once we can move to a node a newer version of node

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

mh.... this comment is a bit useful, I think it is a bit of a shame to remove it as it could come in handy at some point... but it'd be a bit weird to move it up... 😓

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Node 20 support ends in April, so this will not be a problem soon-ish.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In the long run, I would like to move away from testing remote-bindings e2e for most our our tools, since this is inherently flakey and I don't know how much value is being added by testing in miniflare, wrangler, and vite-plugin. In fact we moved a bunch of wrangler tests to mock out the remote binding bit and just test that wrangler sends the correct config to miniflare.

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Feb 5, 2026
@dario-piotrowicz dario-piotrowicz added the ci:no-changeset-required Skip pull request checks for a valid changeset label Feb 5, 2026
@petebacondarwin
petebacondarwin merged commit a7bc44b into main Feb 6, 2026
44 of 46 checks passed
@petebacondarwin
petebacondarwin deleted the pbd/skip-remote-bindings-tests-on-windows branch February 6, 2026 11:26
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Feb 6, 2026
@petebacondarwin petebacondarwin added the ci-flake Applied to PRs addressing CI flakiness label Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:no-changeset-required Skip pull request checks for a valid changeset ci-flake Applied to PRs addressing CI flakiness

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants