Skip to content

skip provisioning in asset only projects#14304

Merged
emily-shen merged 2 commits into
mainfrom
skip-asset-only-provision
Jun 16, 2026
Merged

skip provisioning in asset only projects#14304
emily-shen merged 2 commits into
mainfrom
skip-asset-only-provision

Conversation

@emily-shen

@emily-shen emily-shen commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Fixes #14262

Previously, asset-only deployments would provision resources even when there was no user Worker script. On a subsequent deploy, we would re-attempt provisioning as the previous asset-only upload would/could not be bound to the previously provisioned resource, so we thought this was a 'new' binding. Provisioning would then error as the resource had already been created, blocking the deploy.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: bugfix

A picture of a cute animal (not mandatory, but encouraged)


Open in Devin Review

@changeset-bot

changeset-bot Bot commented Jun 15, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0c5756f

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

This PR includes changesets to release 4 packages
Name Type
@cloudflare/deploy-helpers Patch
wrangler Patch
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers 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 15, 2026
@workers-devprod workers-devprod requested review from a team and jamesopstad and removed request for a team June 15, 2026 12:35
@workers-devprod

workers-devprod commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@ask-bonk

ask-bonk Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Both call sites are consistent. The logic is sound:

  • The condition only logs when has_user_worker === false (asset-only), correctly using strict equality so undefined (non-assets deploy) falls through to the normal provisioning path.
  • The fix aligns with create-worker-upload-form.ts which already short-circuits and excludes bindings from asset-only uploads.
  • Tests verify the namespace list call doesn't happen and the debug log appears.

The changeset has a typo ("woul then") but that's a non-actionable nit in a changeset description, and per my rules I shouldn't flag formatting/trivial issues. The code change is correct, well-scoped, and tested.

LGTM

github run

@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Changeset Review

✅ All changesets look good

@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 bugs or issues to report.

Open in Devin Review

@pkg-pr-new

pkg-pr-new Bot commented Jun 15, 2026

Copy link
Copy Markdown
create-cloudflare

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

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@14304

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@14304

@cloudflare/workers-editor-shared

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

@cloudflare/workers-utils

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

wrangler

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

commit: 1d0b179

Comment thread packages/deploy-helpers/src/deploy/versions-upload.ts
@emily-shen emily-shen requested review from penalosa and removed request for jamesopstad and penalosa June 15, 2026 18:03
@petebacondarwin petebacondarwin removed the request for review from penalosa June 16, 2026 06:55

@workers-devprod workers-devprod 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.

Codeowners reviews satisfied

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Jun 16, 2026
@emily-shen emily-shen merged commit ee82c76 into main Jun 16, 2026
64 checks passed
@emily-shen emily-shen deleted the skip-asset-only-provision branch June 16, 2026 10:23
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

autoprovisioning failing on projects with autoconfig

3 participants