Skip to content

Backport #2538: fix(next): prewarm SWC plugin cache before parallel loaders#2576

Open
github-actions[bot] wants to merge 1 commit into
stablefrom
backport/pr-2538-to-stable
Open

Backport #2538: fix(next): prewarm SWC plugin cache before parallel loaders#2576
github-actions[bot] wants to merge 1 commit into
stablefrom
backport/pr-2538-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated backport of #2538 to stable (backport job run).

AI recommendation: This is a self-contained bug fix to @workflow/next that prevents a SIGBUS cache-publication race when Turbopack starts parallel SWC loader workers, plus regression tests. The affected files (packages/next/src/index.ts, loader.ts, package.json) all exist on stable with the same structure (matching phase handling and experimental.plugins loader config), so the fix applies to both branches and does not depend on any main-only APIs.

Merge conflicts were resolved by AI (opencode with anthropic/claude-opus-4.8). Please review the conflict resolution carefully before merging.

Signed-off-by: Nathan Colosimo <110621881+NathanColosimo@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Jun 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ec410d6

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

This PR includes changesets to release 16 packages
Name Type
@workflow/next Patch
workflow Patch
@workflow/world-testing Patch
@workflow/core Patch
@workflow/builders Patch
@workflow/cli Patch
@workflow/nitro Patch
@workflow/vitest Patch
@workflow/web-shared Patch
@workflow/web Patch
@workflow/astro Patch
@workflow/nest Patch
@workflow/rollup Patch
@workflow/sveltekit Patch
@workflow/vite Patch
@workflow/nuxt 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

@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment Jun 22, 2026 10:33pm
example-nextjs-workflow-webpack Ready Ready Preview, Comment Jun 22, 2026 10:33pm
example-workflow Ready Ready Preview, Comment Jun 22, 2026 10:33pm
workbench-astro-workflow Ready Ready Preview, Comment Jun 22, 2026 10:33pm
workbench-express-workflow Ready Ready Preview, Comment Jun 22, 2026 10:33pm
workbench-fastify-workflow Ready Ready Preview, Comment Jun 22, 2026 10:33pm
workbench-hono-workflow Ready Ready Preview, Comment Jun 22, 2026 10:33pm
workbench-nitro-workflow Ready Ready Preview, Comment Jun 22, 2026 10:33pm
workbench-nuxt-workflow Ready Ready Preview, Comment Jun 22, 2026 10:33pm
workbench-sveltekit-workflow Ready Ready Preview, Comment Jun 22, 2026 10:33pm
workbench-tanstack-start-workflow Ready Ready Preview, Comment Jun 22, 2026 10:33pm
workbench-vite-workflow Ready Ready Preview, Comment Jun 22, 2026 10:33pm
workflow-docs Ready Ready Preview, Comment, Open in v0 Jun 22, 2026 10:33pm
workflow-swc-playground Ready Ready Preview, Comment Jun 22, 2026 10:33pm
workflow-tarballs Ready Ready Preview, Comment Jun 22, 2026 10:33pm
workflow-web Ready Ready Preview, Comment Jun 22, 2026 10:33pm

@github-actions

github-actions Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
✅ ▲ Vercel Production 1044 0 78 1122
✅ 💻 Local Development 1138 0 86 1224
✅ 📦 Local Production 1138 0 86 1224
✅ 🐘 Local Postgres 1126 0 98 1224
✅ 🪟 Windows 102 0 0 102
❌ 🌍 Community Worlds 76 99 6 181
✅ 📋 Other 574 0 38 612
Total 5198 99 392 5689

❌ Failed Tests

🌍 Community Worlds (99 failed)

redis (19 failed):

  • hookWorkflow | wrun_01KVRRZNMF0VVHBZJXJZP122TH
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KVRRZX5B2R2FX34JG7C42QRN
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01KVRS09ERP3GZE7F86R7CAW9Z
  • sleepingWorkflow | wrun_01KVRS1SAYJBEVVGC7SJF0HZ9D
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KVRSA4B8YK047K0N95W1F8ST
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KVRSAK4HMR17HE5GHBHETZ7B
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KVRSAZDMCK8WYSCWVF2XA7KC
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KVRSBCGPVWH2ENDTD5H88AF6
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KVRSC9EFNEMEEQ9G1XSER5NB
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KVRSCE43QSMQDJ8RJ4CEQX1N
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KVRSCMGVCB30PRYPPFTP50JZ
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KVRSCTXD66B75VFTGEZM8ZMA
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KVRSD41WFBWQC2JCYFJ7WHKB
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KVRSK9FK9PYSS40V8R7T7PGS

turso (80 failed):

  • addTenWorkflow | wrun_01KVRRYMC99WJXBFPR4BP10QXM
  • addTenWorkflow | wrun_01KVRRYMC99WJXBFPR4BP10QXM
  • deploymentId: 'latest' is a no-op in non-Vercel worlds
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KVRRYR5C9C0ZFK5Z1XJ7PMT3
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KVRRYX0DV64HAN78MYNAY3PJ
  • promiseRaceWorkflow | wrun_01KVRRZ1WNJYA3NGXXW3A2HXMG
  • promiseAnyWorkflow | wrun_01KVRRZ6BJSEVHV6TB7T8QKQ62
  • importedStepOnlyWorkflow | wrun_01KVRRZ82W0RNEMK2KGZNH51RX
  • readableStreamWorkflow | wrun_01KVRRZ8JYCA5X7F33PBGVS0RB
  • hookWorkflow | wrun_01KVRRZNMF0VVHBZJXJZP122TH
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KVRRZX5B2R2FX34JG7C42QRN
  • webhookWorkflow | wrun_01KVRS022S0T4NYHQS2HBRSPWE
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01KVRS09ERP3GZE7F86R7CAW9Z
  • sleepingWorkflow | wrun_01KVRS1SAYJBEVVGC7SJF0HZ9D
  • parallelSleepWorkflow | wrun_01KVRS28CGG3MGPPCGB1CQF3Y7
  • nullByteWorkflow | wrun_01KVRS2CZQPGXPM94Z2Y8RDDPW
  • workflowAndStepMetadataWorkflow | wrun_01KVRS2F6E8MH90RNJ2FR8HX1K
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KVRS541S0QB2TD8C1CXDZVT8
  • writableForwardedFromWorkflowWorkflow | wrun_01KVRS5MTDKYKGTRJMRC873SFV
  • writableForwardedFromStepWorkflow | wrun_01KVRS5VDEJRBYQ953STEEAAPX
  • fetchWorkflow | wrun_01KVRS61DN7V5GV71SE9ZC4K7A
  • promiseRaceStressTestWorkflow | wrun_01KVRS64ZSZPWZNK62A516Y3BG
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KVRS9Q6JJ72075TMZXAASB7Q
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KVRSA4B8YK047K0N95W1F8ST
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KVRSAK4HMR17HE5GHBHETZ7B
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01KVRSAPW6N38MZJKQA5H538SB
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01KVRSAVPN0N8891FC206JSQQJ
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KVRSAZDMCK8WYSCWVF2XA7KC
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KVRSBCGPVWH2ENDTD5H88AF6
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KVRSC9EFNEMEEQ9G1XSER5NB
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KVRSCE43QSMQDJ8RJ4CEQX1N
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KVRSCMGVCB30PRYPPFTP50JZ
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KVRSCTXD66B75VFTGEZM8ZMA
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KVRSD41WFBWQC2JCYFJ7WHKB
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KVRSDBJ3G00697ZEK1EX2Z7K
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KVRSDW9HZ1NKEZYYS6ZC71Z8
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KVRSE64WRTV517R784E1B36W
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KVRSECRKNDN695V9F61HAGFS
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KVRSEF4AJAS19AE73WK9AM09
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KVRSEZK39N6SRHYPKXABM76Z
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KVRSF6B61T9PVB55XN2E4ZJ5
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KVRSFD3AAB7C7GFFF081MEA1
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KVRSFKKZJY3TDRBVA8D0YV4J
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KVRSFTGFG23ZSJ6CP01T3TNE
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KVRSG400DHC2AYHVR901SFAR
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KVRSGCPZ1EZX4HAK60AV342Q
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KVRSGVS496WBP88SQHH1STQ5
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KVRSH5SDSB7G28F890C9TDFB
  • cancelRun - cancelling a running workflow | wrun_01KVRSHDYQZHDWR8VQM6G1GBZ6
  • cancelRun via CLI - cancelling a running workflow | wrun_01KVRSHQ3P0SCE0QR2CV1JDDVR
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KVRSJ2X6SPCX0FGAFJVFJ0WY
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KVRSJJ73S4NCPNR5GY24MEES
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KVRSJXNPFQ3N4NTYB537AH9F
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KVRSK42EFJGR57H08CPJG74G
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KVRSK79DJ8F4S7XKFARHHK7Y
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KVRSK9FK9PYSS40V8R7T7PGS

Details by Category

✅ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 94 0 8
✅ example 94 0 8
✅ express 94 0 8
✅ fastify 94 0 8
✅ hono 94 0 8
✅ nextjs-turbopack 99 0 3
✅ nextjs-webpack 99 0 3
✅ nitro 94 0 8
✅ nuxt 94 0 8
✅ sveltekit 94 0 8
✅ vite 94 0 8
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 96 0 6
✅ express-stable 96 0 6
✅ fastify-stable 96 0 6
✅ hono-stable 96 0 6
✅ nextjs-turbopack-canary 83 0 19
✅ nextjs-turbopack-stable 102 0 0
✅ nextjs-webpack-canary 83 0 19
✅ nextjs-webpack-stable 102 0 0
✅ nitro-stable 96 0 6
✅ nuxt-stable 96 0 6
✅ sveltekit-stable 96 0 6
✅ vite-stable 96 0 6
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 96 0 6
✅ express-stable 96 0 6
✅ fastify-stable 96 0 6
✅ hono-stable 96 0 6
✅ nextjs-turbopack-canary 83 0 19
✅ nextjs-turbopack-stable 102 0 0
✅ nextjs-webpack-canary 83 0 19
✅ nextjs-webpack-stable 102 0 0
✅ nitro-stable 96 0 6
✅ nuxt-stable 96 0 6
✅ sveltekit-stable 96 0 6
✅ vite-stable 96 0 6
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 95 0 7
✅ express-stable 95 0 7
✅ fastify-stable 95 0 7
✅ hono-stable 95 0 7
✅ nextjs-turbopack-canary 82 0 20
✅ nextjs-turbopack-stable 101 0 1
✅ nextjs-webpack-canary 82 0 20
✅ nextjs-webpack-stable 101 0 1
✅ nitro-stable 95 0 7
✅ nuxt-stable 95 0 7
✅ sveltekit-stable 95 0 7
✅ vite-stable 95 0 7
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 102 0 0
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 3 0 2
✅ redis-dev 3 0 2
❌ redis 64 19 0
✅ turso-dev 3 0 2
❌ turso 3 80 0
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 96 0 6
✅ e2e-local-dev-tanstack-start-stable 96 0 6
✅ e2e-local-postgres-nest-stable 95 0 7
✅ e2e-local-postgres-tanstack-start-stable 95 0 7
✅ e2e-local-prod-nest-stable 96 0 6
✅ e2e-local-prod-tanstack-start-stable 96 0 6

📋 View full workflow run

@VaguelySerious VaguelySerious enabled auto-merge (squash) June 22, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants