-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the solution
wrangler versions upload
will fail if a change contains a durable object migration. Afaict, the only reliable way to check if a pending change contains a durable object migration is to run a versions upload
and grep through the output, making scripting in CI difficult.
Since API calls are needed to validate this (wrangler/src/durable.ts#L64C5-L68C58) we can't update --dry-run
to show pending DO migrations.
Instead, would it be possible to add a command such as wrangler versions check
that validates if a worker version can be successfully uploaded?
✘ [ERROR] A request to the Cloudflare API (/accounts/2d755c260322537ff250be4cc2718320/workers/scripts/durable-object-migrations/versions) failed.
Version upload failed. You attempted to upload a version of a Worker that includes a Durable
Object migration, but migrations must be fully applied by running "wrangler deploy". See
https://developers.cloudflare.com/workers/configuration/versions-and-deployments/gradual-deployments/#gradual-deployments-for-durable-objects
for more information. [code: 10211]
To learn more about this error, visit:
https://developers.cloudflare.com/workers/configuration/versions-and-deployments/gradual-deployments/#gradual-deployments-for-durable-objects
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Untriaged