Repository navigation
Conversation
… Worker The Cloudflare API now reports a missing Worker in a dispatch namespace with code 10007 instead of 10092, so the pre-upload existence check threw and first deploys with `--dispatch-namespace` failed. Accept both codes, matching the Durable Object migrations lookup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: c8e8056 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
|
There was a problem hiding this comment.
✅ Approved — A small, well-scoped bug fix. The regression test now covers all three not-found codes (10092, 10007, 10090), and no issues were found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🔒 Security: ✅ LGTM
No security concerns.
📋 Code Quality: ✅ LGTM
isWorkerNotFoundError matches 10007 and 10090, and the explicit check still handles 10092. For these three codes the script is treated as not existing, and any other error is still rethrown. The parametrized test covers all three codes and takes expect from the test context.
📝 Documentation: ✅ LGTM
The changeset describes the user-facing fix, is classified as a patch and has no type prefix.
Reviewed commit: c8e80568
`isWorkerNotFoundError()` also matches the legacy environment not-found code, so cover it alongside 10092 and 10007. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
LGTM! |
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/cli-shared-helpers
@cloudflare/codemods
@cloudflare/config
@cloudflare/containers-shared
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/runtime-types
@cloudflare/test-server
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-plugin
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
Fixes the
Wrangler E2Eshard 1 and 3 failures on the Version Packages PR (#17371).Before uploading to a dispatch namespace,
preUploadApiChecksfetches the script to see whether it already exists. It treated only code10092as "not found". The Cloudflare API now returns10007(This Worker does not exist on your account.) for a missing script in a dispatch namespace, so the check threw. Every first deploy of a new Worker withwrangler deploy --dispatch-namespacefailed before upload.That broke two E2E tests on every OS:
deployments.test.ts(Workers for Platforms, assets-only deploy) andminiflare-remote-resources.test.ts(Dispatch Namespace remote binding, whose setup deploys into a dispatch namespace). The same tests passed on the Version Packages PR at 15:19 UTC today with unchanged code, so the API response changed rather than Wrangler.The check now accepts both codes through
isWorkerNotFoundError(), matching the Durable Object migrations lookup indurable.ts, which already handled both.The new
environments.test.tscase deploys a new Worker to a dispatch namespace with both a10092and a10007not-found response. The10007case failed with the same API error as CI before the fix.🤖 Generated with Claude Code