- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1k
 
check if there are any pending DO migrations for a worker #11096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
          🦋 Changeset detectedLatest commit: 3b19247 The changes in this PR will be included in the next version bump. 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  | 
    
          create-cloudflare
 @cloudflare/kv-asset-handler
 miniflare
 @cloudflare/pages-shared
 @cloudflare/unenv-preset
 @cloudflare/vite-plugin
 @cloudflare/vitest-pool-workers
 @cloudflare/workers-editor-shared
 wrangler
 commit:   | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge conflicts :(
| 
               | 
          ||
| export const checkNamespace = createNamespace({ | ||
| metadata: { | ||
| description: "🔍 Check pending migrations for your Worker", | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| description: "🔍 Check pending migrations for your Worker", | |
| description: "🔍 Check pending migrations for your Durable Object", | 
Fixes CC-6312
DO migrations block version uploads. Currently, the only reliable way to check if a DO migration is to run
wrangler versions uploadand inspect the error to determine if it's a result of an unsupported DO migration. This is especially important for CI scripting to determine if changes should be deployed instead of uploading a version. Also addresses #10965.Design decisions made by this pr:
wrangler check do-migrationsto avoid confusion with D1 migrations--dry-runcall to avoid making API calls on a dry runwrangler checkisn't documented