[wrangler] Avoid stale remote binding sessions - #15142
Conversation
🦋 Changeset detectedLatest commit: 30fcb2a The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
|
Codeowners approval required for this PR:
Show detailed file reviewers |
|
✅ All changesets look good |
|
The The PR is well-constructed: the fix is minimal and correct (replacing a per-instance counter with a globally-unique UUID to prevent edge-preview artifact reuse across fresh same-name sessions), the removed LGTM |
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/config
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
petebacondarwin
left a comment
There was a problem hiding this comment.
Let's give it a go!
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
ae7a5fd to
30f7b02
Compare
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
df5c186 to
30fcb2a
Compare
Prevent fresh remote proxy sessions with the same Worker name from reusing a stale binding configuration.
Edge preview identifies the uploaded proxy Worker by its source. The previous per-
DevEnvcounter restarted at1, so fresh sessions could upload identical proxy source despite having different bindings. Generate a UUID for every upload so each binding configuration receives a distinct artifact.The counter-only baseline failed deterministically on the second fresh session with
Binding "REMOTE_WORKER_B" not found. The UUID treatment passed 20 alternating fresh sessions, and this adds unit and E2E regression coverage.A picture of a cute animal (not mandatory, but encouraged)