Skip to content

[miniflare] Deduplicate Workflow compatibility flags#13932

Merged
petebacondarwin merged 4 commits into
cloudflare:mainfrom
zebp:zeb/fix-workflow-experimnental-dupe
May 15, 2026
Merged

[miniflare] Deduplicate Workflow compatibility flags#13932
petebacondarwin merged 4 commits into
cloudflare:mainfrom
zebp:zeb/fix-workflow-experimnental-dupe

Conversation

@zebp

@zebp zebp commented May 15, 2026

Copy link
Copy Markdown
Member

Deduplicate compatibility flags for the internal Miniflare Workflow engine service.

When a Worker using Workflows sets compatibility_flags containing experimental, wrangler dev passes those flags through to Miniflare. Miniflare also prepends experimental for the internal Workflow engine service, causing workerd startup to fail with a duplicate compatibility flag error.
This change preserves the required experimental flag while deduplicating the combined Workflow engine flags.

repro


  • 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: this fixes local development startup behavior and does not change public APIs or user-facing configuration.

Open in Devin Review

@zebp zebp requested a review from workers-devprod as a code owner May 15, 2026 13:32
@changeset-bot

changeset-bot Bot commented May 15, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2ad5e93

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

This PR includes changesets to release 5 packages
Name Type
miniflare Patch
wrangler Patch
@cloudflare/pages-shared 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 May 15, 2026
@workers-devprod workers-devprod requested review from a team and edmundhung and removed request for a team May 15, 2026 13:32
@workers-devprod

workers-devprod commented May 15, 2026

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@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 found 1 potential issue.

View 2 additional findings in Devin Review.

Open in Devin Review

Comment thread packages/miniflare/test/plugins/workflows/index.spec.ts
@pkg-pr-new

pkg-pr-new Bot commented May 15, 2026

Copy link
Copy Markdown
create-cloudflare

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

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-editor-shared

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

@cloudflare/workers-utils

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

wrangler

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

commit: 2ad5e93

Comment thread packages/miniflare/src/plugins/workflows/index.ts

@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 May 15, 2026
@petebacondarwin petebacondarwin merged commit ebf4b24 into cloudflare:main May 15, 2026
50 checks passed
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk May 15, 2026
@zebp zebp deleted the zeb/fix-workflow-experimnental-dupe branch May 18, 2026 13:41
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.

3 participants