Backport #2387: test: e2e coverage for run-idempotency conflict-handling strategies - #2402

Merged
pranaygp merged 4 commits into
stablefrom
backport/pr-2387-to-stable
Jun 14, 2026
Merged

Backport #2387: test: e2e coverage for run-idempotency conflict-handling strategies#2402
pranaygp merged 4 commits into
stablefrom
backport/pr-2387-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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

Triggered manually via workflow_dispatch.

…2387)
* test: e2e coverage for run-idempotency conflict-handling strategies
Covers the patterns documented in foundations/idempotency:
- claim-only hook mutex: token claimed and held with no payload data,
duplicate identifies the owner, token released after completion
- adopt the owner's result via conflict.returnValue
- signal the owner: duplicate forwards its payload via resumeHook
- supersede: duplicate cancels the owner and reclaims the token
- route-side resume-or-start retry pattern reaching the started run
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* test: fix adopt-owner-result race — gate owner completion on observed conflict
On slow runtimes the duplicate's first invocation could land after the
owner completed and released the token, making the duplicate a fresh
owner that waits forever for a payload (90s timeout across CI matrices).
Poll the duplicate's event log for hook_conflict before resuming the
owner, and widen the test timeout for the added gate budget.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* review: assert superseded owner's returnValue rejection; empty changeset
- Await run1.returnValue and assert WorkflowRunCancelledError so the
cancellation is verified end-to-end and no rejection leaks from the
supersede test.
- Test-only PR: use an empty changeset.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci: retrigger preview deployments (turbopack deployment for 2e9d000 wedged in esbuild hang)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci: bust poisoned turbo cache entry for nextjs-turbopack build
The 2e9d000 deployment's next build crashed in an esbuild hang but its
task (70724907c9dd3a29) was recorded into the turbo remote cache anyway,
so every subsequent build with the same input hash replays the broken
artifact (missing routes-manifest). Change a build input to force a
fresh execution.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@changeset-bot

changeset-botBot commented Jun 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 92d02ee

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

vercelBot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJun 13, 2026 9:53pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentJun 13, 2026 9:53pm
example-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-astro-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-express-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-fastify-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-hono-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-nitro-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-nuxt-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-sveltekit-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-tanstack-start-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-vite-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-swc-playgroundReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-tarballsReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-webReadyReadyPreview, CommentJun 13, 2026 9:53pm
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
workflow-docsSkippedSkippedJun 13, 2026 9:53pm

Comment threadworkbench/example/workflows/99_e2e.ts Outdated
Comment threadworkbench/example/workflows/99_e2e.ts
pranaygpand others added 2 commits June 13, 2026 14:27
…-stable
* origin/stable:
[test] Fix stable e2e hookGetConflict test to use waitForHookState (#2405)
Update queue client to 0.3.1 (#2399) (#2401)
fix(deps): upgrade esbuild to 0.28.1 (GHSA-gv7w-rqvm-qjhr) (#2395) (#2404)
…getRun API
The backport of #2387 used APIs that only exist on `main`, breaking the
nextjs-turbopack/webpack builds and the e2e suite on `stable`:
- `hookAdoptOwnerResultWorkflow`/`hookSupersedeOwnerWorkflow` read
`conflict.returnValue`/`conflict.cancel()`, but on `stable`
`getConflict()` resolves with `{ runId }`. Resolve the owning run via
`getRun(conflict.runId)` inside a step (the documented stable pattern)
to await its result / cancel it.
- Import `resumeHook` from `workflow/api` in 99_e2e.ts (was used by
`forwardPayloadToOwner` but never imported).
- Convert the backported `waitForHook(token, { runId })` call sites to
`waitForHookState(token, predicate)`; `waitForHook` does not exist on
`stable` (#2405 standardized on `waitForHookState`).
Both workbench builds and `biome check` pass locally.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actionsBot commented Jun 13, 2026

Copy link
Copy Markdown
ContributorAuthor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production10330671100
✅ 💻 Local Development11140861200
✅ 📦 Local Production11140861200
✅ 🐘 Local Postgres11140861200
✅ 🪟 Windows10000100
❌ 🌍 Community Worlds75966177
✅ 📋 Other564036600
Total5114963675577

❌ Failed Tests

🌍 Community Worlds (96 failed)

redis (18 failed):

  • hookWorkflow | wrun_01KV1FGFNPBYT5DE89W6SX1C75
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV1FGQHMM3854GXG1P95YR2K
  • sleepingWorkflow | wrun_01KV1FH32V2DVWXSXP182VJ98D
  • 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_01KV1FRMVD4ZJ4ZGPZQC34M54F
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV1FS18FBY70Z85R4TMN7PV8
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV1FS94TTPFC9FSH1WVZPE3W
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV1FSQBTXZX6J67V9NMNNPTV
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV1FTK0YHX8912QZ12E7Y8TJ
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV1FTQXDBZKAMD8W2CV2X1XV
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV1FTZTZKTP3AYHBJ07FHRT7
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV1FV5MP1ZGJ0JB5VRA588TS
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV1FVEQ808MHV2VZAEH7F1QD
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV1G1DXX0MN9V1TPNGF9Y17V

turso (78 failed):

  • addTenWorkflow | wrun_01KV1FFGC0DZZ4Y1T2EZ71SHE6
  • addTenWorkflow | wrun_01KV1FFGC0DZZ4Y1T2EZ71SHE6
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KV1FGQEZQWSJQK1E5CD1HB9J
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KV1FFQX10ZE7CH65WSJDT6T7
  • promiseRaceWorkflow | wrun_01KV1FFWFH4S4H5ZTDBVQYKTKQ
  • promiseAnyWorkflow | wrun_01KV1FG01797XZBFCNAXF6CSGF
  • importedStepOnlyWorkflow | wrun_01KV1FH0WTNMBGJ49ZB81MCR17
  • readableStreamWorkflow | wrun_01KV1FG2AAM87P0XQJ5MCYYTMN
  • hookWorkflow | wrun_01KV1FGFNPBYT5DE89W6SX1C75
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV1FGQHMM3854GXG1P95YR2K
  • webhookWorkflow | wrun_01KV1FGW6PN83ZPEC7Y3296PYE
  • sleepingWorkflow | wrun_01KV1FH32V2DVWXSXP182VJ98D
  • parallelSleepWorkflow | wrun_01KV1FHJM2WDTPT6BQPWW9HFZJ
  • nullByteWorkflow | wrun_01KV1FHP34JY6VHVG1SSWDVBVF
  • workflowAndStepMetadataWorkflow | wrun_01KV1FHR95H0D0GVGV12NX9VY9
  • 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_01KV1FM2K14460SP2RB7KH8QCS
  • writableForwardedFromWorkflowWorkflow | wrun_01KV1FMFRRAWAPEP15BBDSV398
  • writableForwardedFromStepWorkflow | wrun_01KV1FMKVJCMPPDDNEHY707AF4
  • fetchWorkflow | wrun_01KV1FMQBBPJ8X3JTXR8F2NNX4
  • promiseRaceStressTestWorkflow | wrun_01KV1FMTTBK15W4WBSB4E3EYFP
  • 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_01KV1FR8BHGS9NQWPCP4QKT7E4
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV1FRMVD4ZJ4ZGPZQC34M54F
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV1FS18FBY70Z85R4TMN7PV8
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01KV1FS3S40TBV8CVJAVAY0CEF
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01KV1FS69AV4S43J8B77BAH86D
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV1FS94TTPFC9FSH1WVZPE3W
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV1FSQBTXZX6J67V9NMNNPTV
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV1FTK0YHX8912QZ12E7Y8TJ
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV1FTQXDBZKAMD8W2CV2X1XV
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV1FTZTZKTP3AYHBJ07FHRT7
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV1FV5MP1ZGJ0JB5VRA588TS
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV1FVEQ808MHV2VZAEH7F1QD
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KV1FVQ209SCPEX69BAHZNVTE
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KV1FW6XAAE08E2CB06R58B6B
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KV1FWHPTCX58HN17BM9PY9RS
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KV1FWQH1S58XHYP9SX231EFS
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KV1FWSSS66AS1K3G4WKT0G2R
  • 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_01KV1FXAEY1E9WS5Q6C8Q95ZQP
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KV1FXGBNPT8FEW4MVJ2CN6PV
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KV1FXQG9JBNFM4CHTZFR1BJN
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KV1FXYH3D9TS9NA6YRY2J0GE
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KV1FY5JKPTMWKFXGFK58Y61Q
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KV1FYCJANPRMJCJAPSZC03XQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KV1FYMXRMY6Q4HZBJB194DX4
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KV1FZ258D7630QTZ8PZ1BQF4
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KV1FZA898NKK8053QCB8DPND
  • cancelRun - cancelling a running workflow | wrun_01KV1FZH7759ZFBH6WNTRC4XWC
  • cancelRun via CLI - cancelling a running workflow | wrun_01KV1FZTS49BEY6G7008KZ16Q5
  • 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_01KV1G0755FHR77NMS8XCV48E5
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KV1G0QVAA80DSFCY6YW4C1JA
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KV1G12GN74HM2WVVKNN91QSJ
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KV1G19G6D871S1TNFZ6TGN7M
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KV1G1BQYA88K15PMC9KWW8C3
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV1G1DXX0MN9V1TPNGF9Y17V

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro9307
✅ example9307
✅ express9307
✅ fastify9307
✅ hono9307
✅ nextjs-turbopack9802
✅ nextjs-webpack9802
✅ nitro9307
✅ nuxt9307
✅ sveltekit9307
✅ vite9307
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack10000
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev302
✅ redis-dev302
❌ redis63180
✅ turso-dev302
❌ turso3780
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable9406
✅ e2e-local-dev-tanstack-start-stable9406
✅ e2e-local-postgres-nest-stable9406
✅ e2e-local-postgres-tanstack-start-stable9406
✅ e2e-local-prod-nest-stable9406
✅ e2e-local-prod-tanstack-start-stable9406

📋 View full workflow run

The backported conflict tests call `HookNotFoundError.is()` in
`hookClaimOnlyMutexWorkflow` (token-release wait) and the resume-or-start
route test, but the import was never carried into the stable test file —
causing a runtime `ReferenceError: HookNotFoundError is not defined`.
Import it from `@workflow/errors` (matches `main`).
Verified locally against nextjs-turbopack: the two previously-failing
tests plus the adopt/signal/supersede rewrites all pass (5/5).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel
vercelBottemporarily deployed to Preview – workflow-docs June 13, 2026 21:49 Inactive
@pranaygp
pranaygp merged commit ffa053e into stableJun 14, 2026
94 of 97 checks passed
@pranaygp
pranaygp deleted the backport/pr-2387-to-stable branch June 14, 2026 08:00
Sign up for freeto 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.

1 participant

@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Backport #2387: test: e2e coverage for run-idempotency conflict-handling strategies - #2402

Merged
pranaygp merged 4 commits into
stablefrom
backport/pr-2387-to-stable
Jun 14, 2026
Merged

Backport #2387: test: e2e coverage for run-idempotency conflict-handling strategies#2402
pranaygp merged 4 commits into
stablefrom
backport/pr-2387-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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

Triggered manually via workflow_dispatch.

…2387)
* test: e2e coverage for run-idempotency conflict-handling strategies
Covers the patterns documented in foundations/idempotency:
- claim-only hook mutex: token claimed and held with no payload data,
duplicate identifies the owner, token released after completion
- adopt the owner's result via conflict.returnValue
- signal the owner: duplicate forwards its payload via resumeHook
- supersede: duplicate cancels the owner and reclaims the token
- route-side resume-or-start retry pattern reaching the started run
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* test: fix adopt-owner-result race — gate owner completion on observed conflict
On slow runtimes the duplicate's first invocation could land after the
owner completed and released the token, making the duplicate a fresh
owner that waits forever for a payload (90s timeout across CI matrices).
Poll the duplicate's event log for hook_conflict before resuming the
owner, and widen the test timeout for the added gate budget.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* review: assert superseded owner's returnValue rejection; empty changeset
- Await run1.returnValue and assert WorkflowRunCancelledError so the
cancellation is verified end-to-end and no rejection leaks from the
supersede test.
- Test-only PR: use an empty changeset.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci: retrigger preview deployments (turbopack deployment for 2e9d000 wedged in esbuild hang)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci: bust poisoned turbo cache entry for nextjs-turbopack build
The 2e9d000 deployment's next build crashed in an esbuild hang but its
task (70724907c9dd3a29) was recorded into the turbo remote cache anyway,
so every subsequent build with the same input hash replays the broken
artifact (missing routes-manifest). Change a build input to force a
fresh execution.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@changeset-bot

changeset-botBot commented Jun 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 92d02ee

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

vercelBot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJun 13, 2026 9:53pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentJun 13, 2026 9:53pm
example-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-astro-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-express-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-fastify-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-hono-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-nitro-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-nuxt-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-sveltekit-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-tanstack-start-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-vite-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-swc-playgroundReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-tarballsReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-webReadyReadyPreview, CommentJun 13, 2026 9:53pm
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
workflow-docsSkippedSkippedJun 13, 2026 9:53pm

Comment threadworkbench/example/workflows/99_e2e.ts Outdated
Comment threadworkbench/example/workflows/99_e2e.ts
pranaygpand others added 2 commits June 13, 2026 14:27
…-stable
* origin/stable:
[test] Fix stable e2e hookGetConflict test to use waitForHookState (#2405)
Update queue client to 0.3.1 (#2399) (#2401)
fix(deps): upgrade esbuild to 0.28.1 (GHSA-gv7w-rqvm-qjhr) (#2395) (#2404)
…getRun API
The backport of #2387 used APIs that only exist on `main`, breaking the
nextjs-turbopack/webpack builds and the e2e suite on `stable`:
- `hookAdoptOwnerResultWorkflow`/`hookSupersedeOwnerWorkflow` read
`conflict.returnValue`/`conflict.cancel()`, but on `stable`
`getConflict()` resolves with `{ runId }`. Resolve the owning run via
`getRun(conflict.runId)` inside a step (the documented stable pattern)
to await its result / cancel it.
- Import `resumeHook` from `workflow/api` in 99_e2e.ts (was used by
`forwardPayloadToOwner` but never imported).
- Convert the backported `waitForHook(token, { runId })` call sites to
`waitForHookState(token, predicate)`; `waitForHook` does not exist on
`stable` (#2405 standardized on `waitForHookState`).
Both workbench builds and `biome check` pass locally.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actionsBot commented Jun 13, 2026

Copy link
Copy Markdown
ContributorAuthor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production10330671100
✅ 💻 Local Development11140861200
✅ 📦 Local Production11140861200
✅ 🐘 Local Postgres11140861200
✅ 🪟 Windows10000100
❌ 🌍 Community Worlds75966177
✅ 📋 Other564036600
Total5114963675577

❌ Failed Tests

🌍 Community Worlds (96 failed)

redis (18 failed):

  • hookWorkflow | wrun_01KV1FGFNPBYT5DE89W6SX1C75
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV1FGQHMM3854GXG1P95YR2K
  • sleepingWorkflow | wrun_01KV1FH32V2DVWXSXP182VJ98D
  • 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_01KV1FRMVD4ZJ4ZGPZQC34M54F
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV1FS18FBY70Z85R4TMN7PV8
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV1FS94TTPFC9FSH1WVZPE3W
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV1FSQBTXZX6J67V9NMNNPTV
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV1FTK0YHX8912QZ12E7Y8TJ
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV1FTQXDBZKAMD8W2CV2X1XV
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV1FTZTZKTP3AYHBJ07FHRT7
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV1FV5MP1ZGJ0JB5VRA588TS
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV1FVEQ808MHV2VZAEH7F1QD
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV1G1DXX0MN9V1TPNGF9Y17V

turso (78 failed):

  • addTenWorkflow | wrun_01KV1FFGC0DZZ4Y1T2EZ71SHE6
  • addTenWorkflow | wrun_01KV1FFGC0DZZ4Y1T2EZ71SHE6
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KV1FGQEZQWSJQK1E5CD1HB9J
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KV1FFQX10ZE7CH65WSJDT6T7
  • promiseRaceWorkflow | wrun_01KV1FFWFH4S4H5ZTDBVQYKTKQ
  • promiseAnyWorkflow | wrun_01KV1FG01797XZBFCNAXF6CSGF
  • importedStepOnlyWorkflow | wrun_01KV1FH0WTNMBGJ49ZB81MCR17
  • readableStreamWorkflow | wrun_01KV1FG2AAM87P0XQJ5MCYYTMN
  • hookWorkflow | wrun_01KV1FGFNPBYT5DE89W6SX1C75
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV1FGQHMM3854GXG1P95YR2K
  • webhookWorkflow | wrun_01KV1FGW6PN83ZPEC7Y3296PYE
  • sleepingWorkflow | wrun_01KV1FH32V2DVWXSXP182VJ98D
  • parallelSleepWorkflow | wrun_01KV1FHJM2WDTPT6BQPWW9HFZJ
  • nullByteWorkflow | wrun_01KV1FHP34JY6VHVG1SSWDVBVF
  • workflowAndStepMetadataWorkflow | wrun_01KV1FHR95H0D0GVGV12NX9VY9
  • 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_01KV1FM2K14460SP2RB7KH8QCS
  • writableForwardedFromWorkflowWorkflow | wrun_01KV1FMFRRAWAPEP15BBDSV398
  • writableForwardedFromStepWorkflow | wrun_01KV1FMKVJCMPPDDNEHY707AF4
  • fetchWorkflow | wrun_01KV1FMQBBPJ8X3JTXR8F2NNX4
  • promiseRaceStressTestWorkflow | wrun_01KV1FMTTBK15W4WBSB4E3EYFP
  • 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_01KV1FR8BHGS9NQWPCP4QKT7E4
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV1FRMVD4ZJ4ZGPZQC34M54F
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV1FS18FBY70Z85R4TMN7PV8
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01KV1FS3S40TBV8CVJAVAY0CEF
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01KV1FS69AV4S43J8B77BAH86D
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV1FS94TTPFC9FSH1WVZPE3W
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV1FSQBTXZX6J67V9NMNNPTV
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV1FTK0YHX8912QZ12E7Y8TJ
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV1FTQXDBZKAMD8W2CV2X1XV
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV1FTZTZKTP3AYHBJ07FHRT7
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV1FV5MP1ZGJ0JB5VRA588TS
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV1FVEQ808MHV2VZAEH7F1QD
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KV1FVQ209SCPEX69BAHZNVTE
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KV1FW6XAAE08E2CB06R58B6B
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KV1FWHPTCX58HN17BM9PY9RS
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KV1FWQH1S58XHYP9SX231EFS
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KV1FWSSS66AS1K3G4WKT0G2R
  • 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_01KV1FXAEY1E9WS5Q6C8Q95ZQP
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KV1FXGBNPT8FEW4MVJ2CN6PV
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KV1FXQG9JBNFM4CHTZFR1BJN
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KV1FXYH3D9TS9NA6YRY2J0GE
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KV1FY5JKPTMWKFXGFK58Y61Q
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KV1FYCJANPRMJCJAPSZC03XQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KV1FYMXRMY6Q4HZBJB194DX4
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KV1FZ258D7630QTZ8PZ1BQF4
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KV1FZA898NKK8053QCB8DPND
  • cancelRun - cancelling a running workflow | wrun_01KV1FZH7759ZFBH6WNTRC4XWC
  • cancelRun via CLI - cancelling a running workflow | wrun_01KV1FZTS49BEY6G7008KZ16Q5
  • 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_01KV1G0755FHR77NMS8XCV48E5
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KV1G0QVAA80DSFCY6YW4C1JA
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KV1G12GN74HM2WVVKNN91QSJ
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KV1G19G6D871S1TNFZ6TGN7M
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KV1G1BQYA88K15PMC9KWW8C3
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV1G1DXX0MN9V1TPNGF9Y17V

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro9307
✅ example9307
✅ express9307
✅ fastify9307
✅ hono9307
✅ nextjs-turbopack9802
✅ nextjs-webpack9802
✅ nitro9307
✅ nuxt9307
✅ sveltekit9307
✅ vite9307
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack10000
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev302
✅ redis-dev302
❌ redis63180
✅ turso-dev302
❌ turso3780
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable9406
✅ e2e-local-dev-tanstack-start-stable9406
✅ e2e-local-postgres-nest-stable9406
✅ e2e-local-postgres-tanstack-start-stable9406
✅ e2e-local-prod-nest-stable9406
✅ e2e-local-prod-tanstack-start-stable9406

📋 View full workflow run

The backported conflict tests call `HookNotFoundError.is()` in
`hookClaimOnlyMutexWorkflow` (token-release wait) and the resume-or-start
route test, but the import was never carried into the stable test file —
causing a runtime `ReferenceError: HookNotFoundError is not defined`.
Import it from `@workflow/errors` (matches `main`).
Verified locally against nextjs-turbopack: the two previously-failing
tests plus the adopt/signal/supersede rewrites all pass (5/5).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel
vercelBottemporarily deployed to Preview – workflow-docs June 13, 2026 21:49 Inactive
@pranaygp
pranaygp merged commit ffa053e into stableJun 14, 2026
94 of 97 checks passed
@pranaygp
pranaygp deleted the backport/pr-2387-to-stable branch June 14, 2026 08:00
Sign up for freeto 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.

1 participant

@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Backport #2387: test: e2e coverage for run-idempotency conflict-handling strategies - #2402

Merged
pranaygp merged 4 commits into
stablefrom
backport/pr-2387-to-stable
Jun 14, 2026
Merged

Backport #2387: test: e2e coverage for run-idempotency conflict-handling strategies#2402
pranaygp merged 4 commits into
stablefrom
backport/pr-2387-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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

Triggered manually via workflow_dispatch.

…2387)
* test: e2e coverage for run-idempotency conflict-handling strategies
Covers the patterns documented in foundations/idempotency:
- claim-only hook mutex: token claimed and held with no payload data,
duplicate identifies the owner, token released after completion
- adopt the owner's result via conflict.returnValue
- signal the owner: duplicate forwards its payload via resumeHook
- supersede: duplicate cancels the owner and reclaims the token
- route-side resume-or-start retry pattern reaching the started run
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* test: fix adopt-owner-result race — gate owner completion on observed conflict
On slow runtimes the duplicate's first invocation could land after the
owner completed and released the token, making the duplicate a fresh
owner that waits forever for a payload (90s timeout across CI matrices).
Poll the duplicate's event log for hook_conflict before resuming the
owner, and widen the test timeout for the added gate budget.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* review: assert superseded owner's returnValue rejection; empty changeset
- Await run1.returnValue and assert WorkflowRunCancelledError so the
cancellation is verified end-to-end and no rejection leaks from the
supersede test.
- Test-only PR: use an empty changeset.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci: retrigger preview deployments (turbopack deployment for 2e9d000 wedged in esbuild hang)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci: bust poisoned turbo cache entry for nextjs-turbopack build
The 2e9d000 deployment's next build crashed in an esbuild hang but its
task (70724907c9dd3a29) was recorded into the turbo remote cache anyway,
so every subsequent build with the same input hash replays the broken
artifact (missing routes-manifest). Change a build input to force a
fresh execution.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@changeset-bot

changeset-botBot commented Jun 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 92d02ee

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

vercelBot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJun 13, 2026 9:53pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentJun 13, 2026 9:53pm
example-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-astro-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-express-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-fastify-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-hono-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-nitro-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-nuxt-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-sveltekit-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-tanstack-start-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-vite-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-swc-playgroundReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-tarballsReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-webReadyReadyPreview, CommentJun 13, 2026 9:53pm
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
workflow-docsSkippedSkippedJun 13, 2026 9:53pm

Comment threadworkbench/example/workflows/99_e2e.ts Outdated
Comment threadworkbench/example/workflows/99_e2e.ts
pranaygpand others added 2 commits June 13, 2026 14:27
…-stable
* origin/stable:
[test] Fix stable e2e hookGetConflict test to use waitForHookState (#2405)
Update queue client to 0.3.1 (#2399) (#2401)
fix(deps): upgrade esbuild to 0.28.1 (GHSA-gv7w-rqvm-qjhr) (#2395) (#2404)
…getRun API
The backport of #2387 used APIs that only exist on `main`, breaking the
nextjs-turbopack/webpack builds and the e2e suite on `stable`:
- `hookAdoptOwnerResultWorkflow`/`hookSupersedeOwnerWorkflow` read
`conflict.returnValue`/`conflict.cancel()`, but on `stable`
`getConflict()` resolves with `{ runId }`. Resolve the owning run via
`getRun(conflict.runId)` inside a step (the documented stable pattern)
to await its result / cancel it.
- Import `resumeHook` from `workflow/api` in 99_e2e.ts (was used by
`forwardPayloadToOwner` but never imported).
- Convert the backported `waitForHook(token, { runId })` call sites to
`waitForHookState(token, predicate)`; `waitForHook` does not exist on
`stable` (#2405 standardized on `waitForHookState`).
Both workbench builds and `biome check` pass locally.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actionsBot commented Jun 13, 2026

Copy link
Copy Markdown
ContributorAuthor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production10330671100
✅ 💻 Local Development11140861200
✅ 📦 Local Production11140861200
✅ 🐘 Local Postgres11140861200
✅ 🪟 Windows10000100
❌ 🌍 Community Worlds75966177
✅ 📋 Other564036600
Total5114963675577

❌ Failed Tests

🌍 Community Worlds (96 failed)

redis (18 failed):

  • hookWorkflow | wrun_01KV1FGFNPBYT5DE89W6SX1C75
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV1FGQHMM3854GXG1P95YR2K
  • sleepingWorkflow | wrun_01KV1FH32V2DVWXSXP182VJ98D
  • 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_01KV1FRMVD4ZJ4ZGPZQC34M54F
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV1FS18FBY70Z85R4TMN7PV8
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV1FS94TTPFC9FSH1WVZPE3W
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV1FSQBTXZX6J67V9NMNNPTV
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV1FTK0YHX8912QZ12E7Y8TJ
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV1FTQXDBZKAMD8W2CV2X1XV
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV1FTZTZKTP3AYHBJ07FHRT7
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV1FV5MP1ZGJ0JB5VRA588TS
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV1FVEQ808MHV2VZAEH7F1QD
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV1G1DXX0MN9V1TPNGF9Y17V

turso (78 failed):

  • addTenWorkflow | wrun_01KV1FFGC0DZZ4Y1T2EZ71SHE6
  • addTenWorkflow | wrun_01KV1FFGC0DZZ4Y1T2EZ71SHE6
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KV1FGQEZQWSJQK1E5CD1HB9J
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KV1FFQX10ZE7CH65WSJDT6T7
  • promiseRaceWorkflow | wrun_01KV1FFWFH4S4H5ZTDBVQYKTKQ
  • promiseAnyWorkflow | wrun_01KV1FG01797XZBFCNAXF6CSGF
  • importedStepOnlyWorkflow | wrun_01KV1FH0WTNMBGJ49ZB81MCR17
  • readableStreamWorkflow | wrun_01KV1FG2AAM87P0XQJ5MCYYTMN
  • hookWorkflow | wrun_01KV1FGFNPBYT5DE89W6SX1C75
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV1FGQHMM3854GXG1P95YR2K
  • webhookWorkflow | wrun_01KV1FGW6PN83ZPEC7Y3296PYE
  • sleepingWorkflow | wrun_01KV1FH32V2DVWXSXP182VJ98D
  • parallelSleepWorkflow | wrun_01KV1FHJM2WDTPT6BQPWW9HFZJ
  • nullByteWorkflow | wrun_01KV1FHP34JY6VHVG1SSWDVBVF
  • workflowAndStepMetadataWorkflow | wrun_01KV1FHR95H0D0GVGV12NX9VY9
  • 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_01KV1FM2K14460SP2RB7KH8QCS
  • writableForwardedFromWorkflowWorkflow | wrun_01KV1FMFRRAWAPEP15BBDSV398
  • writableForwardedFromStepWorkflow | wrun_01KV1FMKVJCMPPDDNEHY707AF4
  • fetchWorkflow | wrun_01KV1FMQBBPJ8X3JTXR8F2NNX4
  • promiseRaceStressTestWorkflow | wrun_01KV1FMTTBK15W4WBSB4E3EYFP
  • 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_01KV1FR8BHGS9NQWPCP4QKT7E4
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV1FRMVD4ZJ4ZGPZQC34M54F
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV1FS18FBY70Z85R4TMN7PV8
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01KV1FS3S40TBV8CVJAVAY0CEF
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01KV1FS69AV4S43J8B77BAH86D
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV1FS94TTPFC9FSH1WVZPE3W
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV1FSQBTXZX6J67V9NMNNPTV
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV1FTK0YHX8912QZ12E7Y8TJ
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV1FTQXDBZKAMD8W2CV2X1XV
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV1FTZTZKTP3AYHBJ07FHRT7
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV1FV5MP1ZGJ0JB5VRA588TS
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV1FVEQ808MHV2VZAEH7F1QD
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KV1FVQ209SCPEX69BAHZNVTE
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KV1FW6XAAE08E2CB06R58B6B
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KV1FWHPTCX58HN17BM9PY9RS
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KV1FWQH1S58XHYP9SX231EFS
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KV1FWSSS66AS1K3G4WKT0G2R
  • 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_01KV1FXAEY1E9WS5Q6C8Q95ZQP
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KV1FXGBNPT8FEW4MVJ2CN6PV
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KV1FXQG9JBNFM4CHTZFR1BJN
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KV1FXYH3D9TS9NA6YRY2J0GE
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KV1FY5JKPTMWKFXGFK58Y61Q
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KV1FYCJANPRMJCJAPSZC03XQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KV1FYMXRMY6Q4HZBJB194DX4
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KV1FZ258D7630QTZ8PZ1BQF4
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KV1FZA898NKK8053QCB8DPND
  • cancelRun - cancelling a running workflow | wrun_01KV1FZH7759ZFBH6WNTRC4XWC
  • cancelRun via CLI - cancelling a running workflow | wrun_01KV1FZTS49BEY6G7008KZ16Q5
  • 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_01KV1G0755FHR77NMS8XCV48E5
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KV1G0QVAA80DSFCY6YW4C1JA
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KV1G12GN74HM2WVVKNN91QSJ
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KV1G19G6D871S1TNFZ6TGN7M
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KV1G1BQYA88K15PMC9KWW8C3
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV1G1DXX0MN9V1TPNGF9Y17V

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro9307
✅ example9307
✅ express9307
✅ fastify9307
✅ hono9307
✅ nextjs-turbopack9802
✅ nextjs-webpack9802
✅ nitro9307
✅ nuxt9307
✅ sveltekit9307
✅ vite9307
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack10000
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev302
✅ redis-dev302
❌ redis63180
✅ turso-dev302
❌ turso3780
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable9406
✅ e2e-local-dev-tanstack-start-stable9406
✅ e2e-local-postgres-nest-stable9406
✅ e2e-local-postgres-tanstack-start-stable9406
✅ e2e-local-prod-nest-stable9406
✅ e2e-local-prod-tanstack-start-stable9406

📋 View full workflow run

The backported conflict tests call `HookNotFoundError.is()` in
`hookClaimOnlyMutexWorkflow` (token-release wait) and the resume-or-start
route test, but the import was never carried into the stable test file —
causing a runtime `ReferenceError: HookNotFoundError is not defined`.
Import it from `@workflow/errors` (matches `main`).
Verified locally against nextjs-turbopack: the two previously-failing
tests plus the adopt/signal/supersede rewrites all pass (5/5).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel
vercelBottemporarily deployed to Preview – workflow-docs June 13, 2026 21:49 Inactive
@pranaygp
pranaygp merged commit ffa053e into stableJun 14, 2026
94 of 97 checks passed
@pranaygp
pranaygp deleted the backport/pr-2387-to-stable branch June 14, 2026 08:00
Sign up for freeto 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.

1 participant

@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Backport #2387: test: e2e coverage for run-idempotency conflict-handling strategies - #2402

Merged
pranaygp merged 4 commits into
stablefrom
backport/pr-2387-to-stable
Jun 14, 2026
Merged

Backport #2387: test: e2e coverage for run-idempotency conflict-handling strategies#2402
pranaygp merged 4 commits into
stablefrom
backport/pr-2387-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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

Triggered manually via workflow_dispatch.

…2387)
* test: e2e coverage for run-idempotency conflict-handling strategies
Covers the patterns documented in foundations/idempotency:
- claim-only hook mutex: token claimed and held with no payload data,
duplicate identifies the owner, token released after completion
- adopt the owner's result via conflict.returnValue
- signal the owner: duplicate forwards its payload via resumeHook
- supersede: duplicate cancels the owner and reclaims the token
- route-side resume-or-start retry pattern reaching the started run
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* test: fix adopt-owner-result race — gate owner completion on observed conflict
On slow runtimes the duplicate's first invocation could land after the
owner completed and released the token, making the duplicate a fresh
owner that waits forever for a payload (90s timeout across CI matrices).
Poll the duplicate's event log for hook_conflict before resuming the
owner, and widen the test timeout for the added gate budget.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* review: assert superseded owner's returnValue rejection; empty changeset
- Await run1.returnValue and assert WorkflowRunCancelledError so the
cancellation is verified end-to-end and no rejection leaks from the
supersede test.
- Test-only PR: use an empty changeset.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci: retrigger preview deployments (turbopack deployment for 2e9d000 wedged in esbuild hang)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci: bust poisoned turbo cache entry for nextjs-turbopack build
The 2e9d000 deployment's next build crashed in an esbuild hang but its
task (70724907c9dd3a29) was recorded into the turbo remote cache anyway,
so every subsequent build with the same input hash replays the broken
artifact (missing routes-manifest). Change a build input to force a
fresh execution.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@changeset-bot

changeset-botBot commented Jun 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 92d02ee

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

vercelBot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJun 13, 2026 9:53pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentJun 13, 2026 9:53pm
example-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-astro-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-express-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-fastify-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-hono-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-nitro-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-nuxt-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-sveltekit-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-tanstack-start-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-vite-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-swc-playgroundReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-tarballsReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-webReadyReadyPreview, CommentJun 13, 2026 9:53pm
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
workflow-docsSkippedSkippedJun 13, 2026 9:53pm

Comment threadworkbench/example/workflows/99_e2e.ts Outdated
Comment threadworkbench/example/workflows/99_e2e.ts
pranaygpand others added 2 commits June 13, 2026 14:27
…-stable
* origin/stable:
[test] Fix stable e2e hookGetConflict test to use waitForHookState (#2405)
Update queue client to 0.3.1 (#2399) (#2401)
fix(deps): upgrade esbuild to 0.28.1 (GHSA-gv7w-rqvm-qjhr) (#2395) (#2404)
…getRun API
The backport of #2387 used APIs that only exist on `main`, breaking the
nextjs-turbopack/webpack builds and the e2e suite on `stable`:
- `hookAdoptOwnerResultWorkflow`/`hookSupersedeOwnerWorkflow` read
`conflict.returnValue`/`conflict.cancel()`, but on `stable`
`getConflict()` resolves with `{ runId }`. Resolve the owning run via
`getRun(conflict.runId)` inside a step (the documented stable pattern)
to await its result / cancel it.
- Import `resumeHook` from `workflow/api` in 99_e2e.ts (was used by
`forwardPayloadToOwner` but never imported).
- Convert the backported `waitForHook(token, { runId })` call sites to
`waitForHookState(token, predicate)`; `waitForHook` does not exist on
`stable` (#2405 standardized on `waitForHookState`).
Both workbench builds and `biome check` pass locally.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actionsBot commented Jun 13, 2026

Copy link
Copy Markdown
ContributorAuthor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production10330671100
✅ 💻 Local Development11140861200
✅ 📦 Local Production11140861200
✅ 🐘 Local Postgres11140861200
✅ 🪟 Windows10000100
❌ 🌍 Community Worlds75966177
✅ 📋 Other564036600
Total5114963675577

❌ Failed Tests

🌍 Community Worlds (96 failed)

redis (18 failed):

  • hookWorkflow | wrun_01KV1FGFNPBYT5DE89W6SX1C75
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV1FGQHMM3854GXG1P95YR2K
  • sleepingWorkflow | wrun_01KV1FH32V2DVWXSXP182VJ98D
  • 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_01KV1FRMVD4ZJ4ZGPZQC34M54F
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV1FS18FBY70Z85R4TMN7PV8
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV1FS94TTPFC9FSH1WVZPE3W
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV1FSQBTXZX6J67V9NMNNPTV
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV1FTK0YHX8912QZ12E7Y8TJ
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV1FTQXDBZKAMD8W2CV2X1XV
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV1FTZTZKTP3AYHBJ07FHRT7
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV1FV5MP1ZGJ0JB5VRA588TS
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV1FVEQ808MHV2VZAEH7F1QD
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV1G1DXX0MN9V1TPNGF9Y17V

turso (78 failed):

  • addTenWorkflow | wrun_01KV1FFGC0DZZ4Y1T2EZ71SHE6
  • addTenWorkflow | wrun_01KV1FFGC0DZZ4Y1T2EZ71SHE6
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KV1FGQEZQWSJQK1E5CD1HB9J
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KV1FFQX10ZE7CH65WSJDT6T7
  • promiseRaceWorkflow | wrun_01KV1FFWFH4S4H5ZTDBVQYKTKQ
  • promiseAnyWorkflow | wrun_01KV1FG01797XZBFCNAXF6CSGF
  • importedStepOnlyWorkflow | wrun_01KV1FH0WTNMBGJ49ZB81MCR17
  • readableStreamWorkflow | wrun_01KV1FG2AAM87P0XQJ5MCYYTMN
  • hookWorkflow | wrun_01KV1FGFNPBYT5DE89W6SX1C75
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV1FGQHMM3854GXG1P95YR2K
  • webhookWorkflow | wrun_01KV1FGW6PN83ZPEC7Y3296PYE
  • sleepingWorkflow | wrun_01KV1FH32V2DVWXSXP182VJ98D
  • parallelSleepWorkflow | wrun_01KV1FHJM2WDTPT6BQPWW9HFZJ
  • nullByteWorkflow | wrun_01KV1FHP34JY6VHVG1SSWDVBVF
  • workflowAndStepMetadataWorkflow | wrun_01KV1FHR95H0D0GVGV12NX9VY9
  • 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_01KV1FM2K14460SP2RB7KH8QCS
  • writableForwardedFromWorkflowWorkflow | wrun_01KV1FMFRRAWAPEP15BBDSV398
  • writableForwardedFromStepWorkflow | wrun_01KV1FMKVJCMPPDDNEHY707AF4
  • fetchWorkflow | wrun_01KV1FMQBBPJ8X3JTXR8F2NNX4
  • promiseRaceStressTestWorkflow | wrun_01KV1FMTTBK15W4WBSB4E3EYFP
  • 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_01KV1FR8BHGS9NQWPCP4QKT7E4
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV1FRMVD4ZJ4ZGPZQC34M54F
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV1FS18FBY70Z85R4TMN7PV8
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01KV1FS3S40TBV8CVJAVAY0CEF
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01KV1FS69AV4S43J8B77BAH86D
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV1FS94TTPFC9FSH1WVZPE3W
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV1FSQBTXZX6J67V9NMNNPTV
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV1FTK0YHX8912QZ12E7Y8TJ
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV1FTQXDBZKAMD8W2CV2X1XV
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV1FTZTZKTP3AYHBJ07FHRT7
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV1FV5MP1ZGJ0JB5VRA588TS
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV1FVEQ808MHV2VZAEH7F1QD
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KV1FVQ209SCPEX69BAHZNVTE
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KV1FW6XAAE08E2CB06R58B6B
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KV1FWHPTCX58HN17BM9PY9RS
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KV1FWQH1S58XHYP9SX231EFS
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KV1FWSSS66AS1K3G4WKT0G2R
  • 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_01KV1FXAEY1E9WS5Q6C8Q95ZQP
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KV1FXGBNPT8FEW4MVJ2CN6PV
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KV1FXQG9JBNFM4CHTZFR1BJN
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KV1FXYH3D9TS9NA6YRY2J0GE
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KV1FY5JKPTMWKFXGFK58Y61Q
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KV1FYCJANPRMJCJAPSZC03XQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KV1FYMXRMY6Q4HZBJB194DX4
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KV1FZ258D7630QTZ8PZ1BQF4
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KV1FZA898NKK8053QCB8DPND
  • cancelRun - cancelling a running workflow | wrun_01KV1FZH7759ZFBH6WNTRC4XWC
  • cancelRun via CLI - cancelling a running workflow | wrun_01KV1FZTS49BEY6G7008KZ16Q5
  • 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_01KV1G0755FHR77NMS8XCV48E5
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KV1G0QVAA80DSFCY6YW4C1JA
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KV1G12GN74HM2WVVKNN91QSJ
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KV1G19G6D871S1TNFZ6TGN7M
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KV1G1BQYA88K15PMC9KWW8C3
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV1G1DXX0MN9V1TPNGF9Y17V

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro9307
✅ example9307
✅ express9307
✅ fastify9307
✅ hono9307
✅ nextjs-turbopack9802
✅ nextjs-webpack9802
✅ nitro9307
✅ nuxt9307
✅ sveltekit9307
✅ vite9307
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack10000
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev302
✅ redis-dev302
❌ redis63180
✅ turso-dev302
❌ turso3780
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable9406
✅ e2e-local-dev-tanstack-start-stable9406
✅ e2e-local-postgres-nest-stable9406
✅ e2e-local-postgres-tanstack-start-stable9406
✅ e2e-local-prod-nest-stable9406
✅ e2e-local-prod-tanstack-start-stable9406

📋 View full workflow run

The backported conflict tests call `HookNotFoundError.is()` in
`hookClaimOnlyMutexWorkflow` (token-release wait) and the resume-or-start
route test, but the import was never carried into the stable test file —
causing a runtime `ReferenceError: HookNotFoundError is not defined`.
Import it from `@workflow/errors` (matches `main`).
Verified locally against nextjs-turbopack: the two previously-failing
tests plus the adopt/signal/supersede rewrites all pass (5/5).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel
vercelBottemporarily deployed to Preview – workflow-docs June 13, 2026 21:49 Inactive
@pranaygp
pranaygp merged commit ffa053e into stableJun 14, 2026
94 of 97 checks passed
@pranaygp
pranaygp deleted the backport/pr-2387-to-stable branch June 14, 2026 08:00
Sign up for freeto 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.

1 participant

@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Backport #2387: test: e2e coverage for run-idempotency conflict-handling strategies - #2402

Merged
pranaygp merged 4 commits into
stablefrom
backport/pr-2387-to-stable
Jun 14, 2026
Merged

Backport #2387: test: e2e coverage for run-idempotency conflict-handling strategies#2402
pranaygp merged 4 commits into
stablefrom
backport/pr-2387-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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

Triggered manually via workflow_dispatch.

…2387)
* test: e2e coverage for run-idempotency conflict-handling strategies
Covers the patterns documented in foundations/idempotency:
- claim-only hook mutex: token claimed and held with no payload data,
duplicate identifies the owner, token released after completion
- adopt the owner's result via conflict.returnValue
- signal the owner: duplicate forwards its payload via resumeHook
- supersede: duplicate cancels the owner and reclaims the token
- route-side resume-or-start retry pattern reaching the started run
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* test: fix adopt-owner-result race — gate owner completion on observed conflict
On slow runtimes the duplicate's first invocation could land after the
owner completed and released the token, making the duplicate a fresh
owner that waits forever for a payload (90s timeout across CI matrices).
Poll the duplicate's event log for hook_conflict before resuming the
owner, and widen the test timeout for the added gate budget.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* review: assert superseded owner's returnValue rejection; empty changeset
- Await run1.returnValue and assert WorkflowRunCancelledError so the
cancellation is verified end-to-end and no rejection leaks from the
supersede test.
- Test-only PR: use an empty changeset.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci: retrigger preview deployments (turbopack deployment for 2e9d000 wedged in esbuild hang)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci: bust poisoned turbo cache entry for nextjs-turbopack build
The 2e9d000 deployment's next build crashed in an esbuild hang but its
task (70724907c9dd3a29) was recorded into the turbo remote cache anyway,
so every subsequent build with the same input hash replays the broken
artifact (missing routes-manifest). Change a build input to force a
fresh execution.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@changeset-bot

changeset-botBot commented Jun 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 92d02ee

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

vercelBot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJun 13, 2026 9:53pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentJun 13, 2026 9:53pm
example-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-astro-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-express-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-fastify-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-hono-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-nitro-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-nuxt-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-sveltekit-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-tanstack-start-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-vite-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-swc-playgroundReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-tarballsReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-webReadyReadyPreview, CommentJun 13, 2026 9:53pm
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
workflow-docsSkippedSkippedJun 13, 2026 9:53pm

Comment threadworkbench/example/workflows/99_e2e.ts Outdated
Comment threadworkbench/example/workflows/99_e2e.ts
pranaygpand others added 2 commits June 13, 2026 14:27
…-stable
* origin/stable:
[test] Fix stable e2e hookGetConflict test to use waitForHookState (#2405)
Update queue client to 0.3.1 (#2399) (#2401)
fix(deps): upgrade esbuild to 0.28.1 (GHSA-gv7w-rqvm-qjhr) (#2395) (#2404)
…getRun API
The backport of #2387 used APIs that only exist on `main`, breaking the
nextjs-turbopack/webpack builds and the e2e suite on `stable`:
- `hookAdoptOwnerResultWorkflow`/`hookSupersedeOwnerWorkflow` read
`conflict.returnValue`/`conflict.cancel()`, but on `stable`
`getConflict()` resolves with `{ runId }`. Resolve the owning run via
`getRun(conflict.runId)` inside a step (the documented stable pattern)
to await its result / cancel it.
- Import `resumeHook` from `workflow/api` in 99_e2e.ts (was used by
`forwardPayloadToOwner` but never imported).
- Convert the backported `waitForHook(token, { runId })` call sites to
`waitForHookState(token, predicate)`; `waitForHook` does not exist on
`stable` (#2405 standardized on `waitForHookState`).
Both workbench builds and `biome check` pass locally.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actionsBot commented Jun 13, 2026

Copy link
Copy Markdown
ContributorAuthor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production10330671100
✅ 💻 Local Development11140861200
✅ 📦 Local Production11140861200
✅ 🐘 Local Postgres11140861200
✅ 🪟 Windows10000100
❌ 🌍 Community Worlds75966177
✅ 📋 Other564036600
Total5114963675577

❌ Failed Tests

🌍 Community Worlds (96 failed)

redis (18 failed):

  • hookWorkflow | wrun_01KV1FGFNPBYT5DE89W6SX1C75
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV1FGQHMM3854GXG1P95YR2K
  • sleepingWorkflow | wrun_01KV1FH32V2DVWXSXP182VJ98D
  • 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_01KV1FRMVD4ZJ4ZGPZQC34M54F
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV1FS18FBY70Z85R4TMN7PV8
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV1FS94TTPFC9FSH1WVZPE3W
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV1FSQBTXZX6J67V9NMNNPTV
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV1FTK0YHX8912QZ12E7Y8TJ
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV1FTQXDBZKAMD8W2CV2X1XV
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV1FTZTZKTP3AYHBJ07FHRT7
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV1FV5MP1ZGJ0JB5VRA588TS
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV1FVEQ808MHV2VZAEH7F1QD
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV1G1DXX0MN9V1TPNGF9Y17V

turso (78 failed):

  • addTenWorkflow | wrun_01KV1FFGC0DZZ4Y1T2EZ71SHE6
  • addTenWorkflow | wrun_01KV1FFGC0DZZ4Y1T2EZ71SHE6
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KV1FGQEZQWSJQK1E5CD1HB9J
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KV1FFQX10ZE7CH65WSJDT6T7
  • promiseRaceWorkflow | wrun_01KV1FFWFH4S4H5ZTDBVQYKTKQ
  • promiseAnyWorkflow | wrun_01KV1FG01797XZBFCNAXF6CSGF
  • importedStepOnlyWorkflow | wrun_01KV1FH0WTNMBGJ49ZB81MCR17
  • readableStreamWorkflow | wrun_01KV1FG2AAM87P0XQJ5MCYYTMN
  • hookWorkflow | wrun_01KV1FGFNPBYT5DE89W6SX1C75
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV1FGQHMM3854GXG1P95YR2K
  • webhookWorkflow | wrun_01KV1FGW6PN83ZPEC7Y3296PYE
  • sleepingWorkflow | wrun_01KV1FH32V2DVWXSXP182VJ98D
  • parallelSleepWorkflow | wrun_01KV1FHJM2WDTPT6BQPWW9HFZJ
  • nullByteWorkflow | wrun_01KV1FHP34JY6VHVG1SSWDVBVF
  • workflowAndStepMetadataWorkflow | wrun_01KV1FHR95H0D0GVGV12NX9VY9
  • 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_01KV1FM2K14460SP2RB7KH8QCS
  • writableForwardedFromWorkflowWorkflow | wrun_01KV1FMFRRAWAPEP15BBDSV398
  • writableForwardedFromStepWorkflow | wrun_01KV1FMKVJCMPPDDNEHY707AF4
  • fetchWorkflow | wrun_01KV1FMQBBPJ8X3JTXR8F2NNX4
  • promiseRaceStressTestWorkflow | wrun_01KV1FMTTBK15W4WBSB4E3EYFP
  • 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_01KV1FR8BHGS9NQWPCP4QKT7E4
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV1FRMVD4ZJ4ZGPZQC34M54F
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV1FS18FBY70Z85R4TMN7PV8
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01KV1FS3S40TBV8CVJAVAY0CEF
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01KV1FS69AV4S43J8B77BAH86D
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV1FS94TTPFC9FSH1WVZPE3W
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV1FSQBTXZX6J67V9NMNNPTV
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV1FTK0YHX8912QZ12E7Y8TJ
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV1FTQXDBZKAMD8W2CV2X1XV
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV1FTZTZKTP3AYHBJ07FHRT7
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV1FV5MP1ZGJ0JB5VRA588TS
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV1FVEQ808MHV2VZAEH7F1QD
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KV1FVQ209SCPEX69BAHZNVTE
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KV1FW6XAAE08E2CB06R58B6B
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KV1FWHPTCX58HN17BM9PY9RS
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KV1FWQH1S58XHYP9SX231EFS
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KV1FWSSS66AS1K3G4WKT0G2R
  • 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_01KV1FXAEY1E9WS5Q6C8Q95ZQP
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KV1FXGBNPT8FEW4MVJ2CN6PV
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KV1FXQG9JBNFM4CHTZFR1BJN
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KV1FXYH3D9TS9NA6YRY2J0GE
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KV1FY5JKPTMWKFXGFK58Y61Q
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KV1FYCJANPRMJCJAPSZC03XQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KV1FYMXRMY6Q4HZBJB194DX4
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KV1FZ258D7630QTZ8PZ1BQF4
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KV1FZA898NKK8053QCB8DPND
  • cancelRun - cancelling a running workflow | wrun_01KV1FZH7759ZFBH6WNTRC4XWC
  • cancelRun via CLI - cancelling a running workflow | wrun_01KV1FZTS49BEY6G7008KZ16Q5
  • 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_01KV1G0755FHR77NMS8XCV48E5
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KV1G0QVAA80DSFCY6YW4C1JA
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KV1G12GN74HM2WVVKNN91QSJ
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KV1G19G6D871S1TNFZ6TGN7M
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KV1G1BQYA88K15PMC9KWW8C3
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV1G1DXX0MN9V1TPNGF9Y17V

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro9307
✅ example9307
✅ express9307
✅ fastify9307
✅ hono9307
✅ nextjs-turbopack9802
✅ nextjs-webpack9802
✅ nitro9307
✅ nuxt9307
✅ sveltekit9307
✅ vite9307
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack10000
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev302
✅ redis-dev302
❌ redis63180
✅ turso-dev302
❌ turso3780
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable9406
✅ e2e-local-dev-tanstack-start-stable9406
✅ e2e-local-postgres-nest-stable9406
✅ e2e-local-postgres-tanstack-start-stable9406
✅ e2e-local-prod-nest-stable9406
✅ e2e-local-prod-tanstack-start-stable9406

📋 View full workflow run

The backported conflict tests call `HookNotFoundError.is()` in
`hookClaimOnlyMutexWorkflow` (token-release wait) and the resume-or-start
route test, but the import was never carried into the stable test file —
causing a runtime `ReferenceError: HookNotFoundError is not defined`.
Import it from `@workflow/errors` (matches `main`).
Verified locally against nextjs-turbopack: the two previously-failing
tests plus the adopt/signal/supersede rewrites all pass (5/5).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel
vercelBottemporarily deployed to Preview – workflow-docs June 13, 2026 21:49 Inactive
@pranaygp
pranaygp merged commit ffa053e into stableJun 14, 2026
94 of 97 checks passed
@pranaygp
pranaygp deleted the backport/pr-2387-to-stable branch June 14, 2026 08:00
Sign up for freeto 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.

1 participant

@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Backport #2387: test: e2e coverage for run-idempotency conflict-handling strategies - #2402

Merged
pranaygp merged 4 commits into
stablefrom
backport/pr-2387-to-stable
Jun 14, 2026
Merged

Backport #2387: test: e2e coverage for run-idempotency conflict-handling strategies#2402
pranaygp merged 4 commits into
stablefrom
backport/pr-2387-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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

Triggered manually via workflow_dispatch.

…2387)
* test: e2e coverage for run-idempotency conflict-handling strategies
Covers the patterns documented in foundations/idempotency:
- claim-only hook mutex: token claimed and held with no payload data,
duplicate identifies the owner, token released after completion
- adopt the owner's result via conflict.returnValue
- signal the owner: duplicate forwards its payload via resumeHook
- supersede: duplicate cancels the owner and reclaims the token
- route-side resume-or-start retry pattern reaching the started run
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* test: fix adopt-owner-result race — gate owner completion on observed conflict
On slow runtimes the duplicate's first invocation could land after the
owner completed and released the token, making the duplicate a fresh
owner that waits forever for a payload (90s timeout across CI matrices).
Poll the duplicate's event log for hook_conflict before resuming the
owner, and widen the test timeout for the added gate budget.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* review: assert superseded owner's returnValue rejection; empty changeset
- Await run1.returnValue and assert WorkflowRunCancelledError so the
cancellation is verified end-to-end and no rejection leaks from the
supersede test.
- Test-only PR: use an empty changeset.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci: retrigger preview deployments (turbopack deployment for 2e9d000 wedged in esbuild hang)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci: bust poisoned turbo cache entry for nextjs-turbopack build
The 2e9d000 deployment's next build crashed in an esbuild hang but its
task (70724907c9dd3a29) was recorded into the turbo remote cache anyway,
so every subsequent build with the same input hash replays the broken
artifact (missing routes-manifest). Change a build input to force a
fresh execution.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@changeset-bot

changeset-botBot commented Jun 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 92d02ee

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

vercelBot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJun 13, 2026 9:53pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentJun 13, 2026 9:53pm
example-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-astro-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-express-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-fastify-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-hono-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-nitro-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-nuxt-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-sveltekit-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-tanstack-start-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-vite-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-swc-playgroundReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-tarballsReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-webReadyReadyPreview, CommentJun 13, 2026 9:53pm
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
workflow-docsSkippedSkippedJun 13, 2026 9:53pm

Comment threadworkbench/example/workflows/99_e2e.ts Outdated
Comment threadworkbench/example/workflows/99_e2e.ts
pranaygpand others added 2 commits June 13, 2026 14:27
…-stable
* origin/stable:
[test] Fix stable e2e hookGetConflict test to use waitForHookState (#2405)
Update queue client to 0.3.1 (#2399) (#2401)
fix(deps): upgrade esbuild to 0.28.1 (GHSA-gv7w-rqvm-qjhr) (#2395) (#2404)
…getRun API
The backport of #2387 used APIs that only exist on `main`, breaking the
nextjs-turbopack/webpack builds and the e2e suite on `stable`:
- `hookAdoptOwnerResultWorkflow`/`hookSupersedeOwnerWorkflow` read
`conflict.returnValue`/`conflict.cancel()`, but on `stable`
`getConflict()` resolves with `{ runId }`. Resolve the owning run via
`getRun(conflict.runId)` inside a step (the documented stable pattern)
to await its result / cancel it.
- Import `resumeHook` from `workflow/api` in 99_e2e.ts (was used by
`forwardPayloadToOwner` but never imported).
- Convert the backported `waitForHook(token, { runId })` call sites to
`waitForHookState(token, predicate)`; `waitForHook` does not exist on
`stable` (#2405 standardized on `waitForHookState`).
Both workbench builds and `biome check` pass locally.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actionsBot commented Jun 13, 2026

Copy link
Copy Markdown
ContributorAuthor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production10330671100
✅ 💻 Local Development11140861200
✅ 📦 Local Production11140861200
✅ 🐘 Local Postgres11140861200
✅ 🪟 Windows10000100
❌ 🌍 Community Worlds75966177
✅ 📋 Other564036600
Total5114963675577

❌ Failed Tests

🌍 Community Worlds (96 failed)

redis (18 failed):

  • hookWorkflow | wrun_01KV1FGFNPBYT5DE89W6SX1C75
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV1FGQHMM3854GXG1P95YR2K
  • sleepingWorkflow | wrun_01KV1FH32V2DVWXSXP182VJ98D
  • 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_01KV1FRMVD4ZJ4ZGPZQC34M54F
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV1FS18FBY70Z85R4TMN7PV8
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV1FS94TTPFC9FSH1WVZPE3W
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV1FSQBTXZX6J67V9NMNNPTV
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV1FTK0YHX8912QZ12E7Y8TJ
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV1FTQXDBZKAMD8W2CV2X1XV
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV1FTZTZKTP3AYHBJ07FHRT7
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV1FV5MP1ZGJ0JB5VRA588TS
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV1FVEQ808MHV2VZAEH7F1QD
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV1G1DXX0MN9V1TPNGF9Y17V

turso (78 failed):

  • addTenWorkflow | wrun_01KV1FFGC0DZZ4Y1T2EZ71SHE6
  • addTenWorkflow | wrun_01KV1FFGC0DZZ4Y1T2EZ71SHE6
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KV1FGQEZQWSJQK1E5CD1HB9J
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KV1FFQX10ZE7CH65WSJDT6T7
  • promiseRaceWorkflow | wrun_01KV1FFWFH4S4H5ZTDBVQYKTKQ
  • promiseAnyWorkflow | wrun_01KV1FG01797XZBFCNAXF6CSGF
  • importedStepOnlyWorkflow | wrun_01KV1FH0WTNMBGJ49ZB81MCR17
  • readableStreamWorkflow | wrun_01KV1FG2AAM87P0XQJ5MCYYTMN
  • hookWorkflow | wrun_01KV1FGFNPBYT5DE89W6SX1C75
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV1FGQHMM3854GXG1P95YR2K
  • webhookWorkflow | wrun_01KV1FGW6PN83ZPEC7Y3296PYE
  • sleepingWorkflow | wrun_01KV1FH32V2DVWXSXP182VJ98D
  • parallelSleepWorkflow | wrun_01KV1FHJM2WDTPT6BQPWW9HFZJ
  • nullByteWorkflow | wrun_01KV1FHP34JY6VHVG1SSWDVBVF
  • workflowAndStepMetadataWorkflow | wrun_01KV1FHR95H0D0GVGV12NX9VY9
  • 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_01KV1FM2K14460SP2RB7KH8QCS
  • writableForwardedFromWorkflowWorkflow | wrun_01KV1FMFRRAWAPEP15BBDSV398
  • writableForwardedFromStepWorkflow | wrun_01KV1FMKVJCMPPDDNEHY707AF4
  • fetchWorkflow | wrun_01KV1FMQBBPJ8X3JTXR8F2NNX4
  • promiseRaceStressTestWorkflow | wrun_01KV1FMTTBK15W4WBSB4E3EYFP
  • 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_01KV1FR8BHGS9NQWPCP4QKT7E4
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV1FRMVD4ZJ4ZGPZQC34M54F
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV1FS18FBY70Z85R4TMN7PV8
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01KV1FS3S40TBV8CVJAVAY0CEF
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01KV1FS69AV4S43J8B77BAH86D
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV1FS94TTPFC9FSH1WVZPE3W
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV1FSQBTXZX6J67V9NMNNPTV
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV1FTK0YHX8912QZ12E7Y8TJ
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV1FTQXDBZKAMD8W2CV2X1XV
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV1FTZTZKTP3AYHBJ07FHRT7
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV1FV5MP1ZGJ0JB5VRA588TS
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV1FVEQ808MHV2VZAEH7F1QD
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KV1FVQ209SCPEX69BAHZNVTE
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KV1FW6XAAE08E2CB06R58B6B
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KV1FWHPTCX58HN17BM9PY9RS
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KV1FWQH1S58XHYP9SX231EFS
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KV1FWSSS66AS1K3G4WKT0G2R
  • 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_01KV1FXAEY1E9WS5Q6C8Q95ZQP
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KV1FXGBNPT8FEW4MVJ2CN6PV
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KV1FXQG9JBNFM4CHTZFR1BJN
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KV1FXYH3D9TS9NA6YRY2J0GE
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KV1FY5JKPTMWKFXGFK58Y61Q
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KV1FYCJANPRMJCJAPSZC03XQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KV1FYMXRMY6Q4HZBJB194DX4
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KV1FZ258D7630QTZ8PZ1BQF4
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KV1FZA898NKK8053QCB8DPND
  • cancelRun - cancelling a running workflow | wrun_01KV1FZH7759ZFBH6WNTRC4XWC
  • cancelRun via CLI - cancelling a running workflow | wrun_01KV1FZTS49BEY6G7008KZ16Q5
  • 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_01KV1G0755FHR77NMS8XCV48E5
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KV1G0QVAA80DSFCY6YW4C1JA
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KV1G12GN74HM2WVVKNN91QSJ
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KV1G19G6D871S1TNFZ6TGN7M
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KV1G1BQYA88K15PMC9KWW8C3
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV1G1DXX0MN9V1TPNGF9Y17V

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro9307
✅ example9307
✅ express9307
✅ fastify9307
✅ hono9307
✅ nextjs-turbopack9802
✅ nextjs-webpack9802
✅ nitro9307
✅ nuxt9307
✅ sveltekit9307
✅ vite9307
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack10000
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev302
✅ redis-dev302
❌ redis63180
✅ turso-dev302
❌ turso3780
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable9406
✅ e2e-local-dev-tanstack-start-stable9406
✅ e2e-local-postgres-nest-stable9406
✅ e2e-local-postgres-tanstack-start-stable9406
✅ e2e-local-prod-nest-stable9406
✅ e2e-local-prod-tanstack-start-stable9406

📋 View full workflow run

The backported conflict tests call `HookNotFoundError.is()` in
`hookClaimOnlyMutexWorkflow` (token-release wait) and the resume-or-start
route test, but the import was never carried into the stable test file —
causing a runtime `ReferenceError: HookNotFoundError is not defined`.
Import it from `@workflow/errors` (matches `main`).
Verified locally against nextjs-turbopack: the two previously-failing
tests plus the adopt/signal/supersede rewrites all pass (5/5).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel
vercelBottemporarily deployed to Preview – workflow-docs June 13, 2026 21:49 Inactive
@pranaygp
pranaygp merged commit ffa053e into stableJun 14, 2026
94 of 97 checks passed
@pranaygp
pranaygp deleted the backport/pr-2387-to-stable branch June 14, 2026 08:00
Sign up for freeto 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.

1 participant

@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Backport #2387: test: e2e coverage for run-idempotency conflict-handling strategies - #2402

Merged
pranaygp merged 4 commits into
stablefrom
backport/pr-2387-to-stable
Jun 14, 2026
Merged

Backport #2387: test: e2e coverage for run-idempotency conflict-handling strategies#2402
pranaygp merged 4 commits into
stablefrom
backport/pr-2387-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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

Triggered manually via workflow_dispatch.

…2387)
* test: e2e coverage for run-idempotency conflict-handling strategies
Covers the patterns documented in foundations/idempotency:
- claim-only hook mutex: token claimed and held with no payload data,
duplicate identifies the owner, token released after completion
- adopt the owner's result via conflict.returnValue
- signal the owner: duplicate forwards its payload via resumeHook
- supersede: duplicate cancels the owner and reclaims the token
- route-side resume-or-start retry pattern reaching the started run
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* test: fix adopt-owner-result race — gate owner completion on observed conflict
On slow runtimes the duplicate's first invocation could land after the
owner completed and released the token, making the duplicate a fresh
owner that waits forever for a payload (90s timeout across CI matrices).
Poll the duplicate's event log for hook_conflict before resuming the
owner, and widen the test timeout for the added gate budget.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* review: assert superseded owner's returnValue rejection; empty changeset
- Await run1.returnValue and assert WorkflowRunCancelledError so the
cancellation is verified end-to-end and no rejection leaks from the
supersede test.
- Test-only PR: use an empty changeset.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci: retrigger preview deployments (turbopack deployment for 2e9d000 wedged in esbuild hang)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci: bust poisoned turbo cache entry for nextjs-turbopack build
The 2e9d000 deployment's next build crashed in an esbuild hang but its
task (70724907c9dd3a29) was recorded into the turbo remote cache anyway,
so every subsequent build with the same input hash replays the broken
artifact (missing routes-manifest). Change a build input to force a
fresh execution.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@changeset-bot

changeset-botBot commented Jun 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 92d02ee

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

vercelBot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJun 13, 2026 9:53pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentJun 13, 2026 9:53pm
example-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-astro-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-express-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-fastify-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-hono-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-nitro-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-nuxt-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-sveltekit-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-tanstack-start-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-vite-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-swc-playgroundReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-tarballsReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-webReadyReadyPreview, CommentJun 13, 2026 9:53pm
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
workflow-docsSkippedSkippedJun 13, 2026 9:53pm

Comment threadworkbench/example/workflows/99_e2e.ts Outdated
Comment threadworkbench/example/workflows/99_e2e.ts
pranaygpand others added 2 commits June 13, 2026 14:27
…-stable
* origin/stable:
[test] Fix stable e2e hookGetConflict test to use waitForHookState (#2405)
Update queue client to 0.3.1 (#2399) (#2401)
fix(deps): upgrade esbuild to 0.28.1 (GHSA-gv7w-rqvm-qjhr) (#2395) (#2404)
…getRun API
The backport of #2387 used APIs that only exist on `main`, breaking the
nextjs-turbopack/webpack builds and the e2e suite on `stable`:
- `hookAdoptOwnerResultWorkflow`/`hookSupersedeOwnerWorkflow` read
`conflict.returnValue`/`conflict.cancel()`, but on `stable`
`getConflict()` resolves with `{ runId }`. Resolve the owning run via
`getRun(conflict.runId)` inside a step (the documented stable pattern)
to await its result / cancel it.
- Import `resumeHook` from `workflow/api` in 99_e2e.ts (was used by
`forwardPayloadToOwner` but never imported).
- Convert the backported `waitForHook(token, { runId })` call sites to
`waitForHookState(token, predicate)`; `waitForHook` does not exist on
`stable` (#2405 standardized on `waitForHookState`).
Both workbench builds and `biome check` pass locally.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actionsBot commented Jun 13, 2026

Copy link
Copy Markdown
ContributorAuthor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production10330671100
✅ 💻 Local Development11140861200
✅ 📦 Local Production11140861200
✅ 🐘 Local Postgres11140861200
✅ 🪟 Windows10000100
❌ 🌍 Community Worlds75966177
✅ 📋 Other564036600
Total5114963675577

❌ Failed Tests

🌍 Community Worlds (96 failed)

redis (18 failed):

  • hookWorkflow | wrun_01KV1FGFNPBYT5DE89W6SX1C75
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV1FGQHMM3854GXG1P95YR2K
  • sleepingWorkflow | wrun_01KV1FH32V2DVWXSXP182VJ98D
  • 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_01KV1FRMVD4ZJ4ZGPZQC34M54F
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV1FS18FBY70Z85R4TMN7PV8
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV1FS94TTPFC9FSH1WVZPE3W
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV1FSQBTXZX6J67V9NMNNPTV
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV1FTK0YHX8912QZ12E7Y8TJ
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV1FTQXDBZKAMD8W2CV2X1XV
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV1FTZTZKTP3AYHBJ07FHRT7
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV1FV5MP1ZGJ0JB5VRA588TS
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV1FVEQ808MHV2VZAEH7F1QD
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV1G1DXX0MN9V1TPNGF9Y17V

turso (78 failed):

  • addTenWorkflow | wrun_01KV1FFGC0DZZ4Y1T2EZ71SHE6
  • addTenWorkflow | wrun_01KV1FFGC0DZZ4Y1T2EZ71SHE6
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KV1FGQEZQWSJQK1E5CD1HB9J
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KV1FFQX10ZE7CH65WSJDT6T7
  • promiseRaceWorkflow | wrun_01KV1FFWFH4S4H5ZTDBVQYKTKQ
  • promiseAnyWorkflow | wrun_01KV1FG01797XZBFCNAXF6CSGF
  • importedStepOnlyWorkflow | wrun_01KV1FH0WTNMBGJ49ZB81MCR17
  • readableStreamWorkflow | wrun_01KV1FG2AAM87P0XQJ5MCYYTMN
  • hookWorkflow | wrun_01KV1FGFNPBYT5DE89W6SX1C75
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV1FGQHMM3854GXG1P95YR2K
  • webhookWorkflow | wrun_01KV1FGW6PN83ZPEC7Y3296PYE
  • sleepingWorkflow | wrun_01KV1FH32V2DVWXSXP182VJ98D
  • parallelSleepWorkflow | wrun_01KV1FHJM2WDTPT6BQPWW9HFZJ
  • nullByteWorkflow | wrun_01KV1FHP34JY6VHVG1SSWDVBVF
  • workflowAndStepMetadataWorkflow | wrun_01KV1FHR95H0D0GVGV12NX9VY9
  • 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_01KV1FM2K14460SP2RB7KH8QCS
  • writableForwardedFromWorkflowWorkflow | wrun_01KV1FMFRRAWAPEP15BBDSV398
  • writableForwardedFromStepWorkflow | wrun_01KV1FMKVJCMPPDDNEHY707AF4
  • fetchWorkflow | wrun_01KV1FMQBBPJ8X3JTXR8F2NNX4
  • promiseRaceStressTestWorkflow | wrun_01KV1FMTTBK15W4WBSB4E3EYFP
  • 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_01KV1FR8BHGS9NQWPCP4QKT7E4
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV1FRMVD4ZJ4ZGPZQC34M54F
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV1FS18FBY70Z85R4TMN7PV8
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01KV1FS3S40TBV8CVJAVAY0CEF
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01KV1FS69AV4S43J8B77BAH86D
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV1FS94TTPFC9FSH1WVZPE3W
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV1FSQBTXZX6J67V9NMNNPTV
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV1FTK0YHX8912QZ12E7Y8TJ
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV1FTQXDBZKAMD8W2CV2X1XV
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV1FTZTZKTP3AYHBJ07FHRT7
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV1FV5MP1ZGJ0JB5VRA588TS
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV1FVEQ808MHV2VZAEH7F1QD
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KV1FVQ209SCPEX69BAHZNVTE
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KV1FW6XAAE08E2CB06R58B6B
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KV1FWHPTCX58HN17BM9PY9RS
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KV1FWQH1S58XHYP9SX231EFS
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KV1FWSSS66AS1K3G4WKT0G2R
  • 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_01KV1FXAEY1E9WS5Q6C8Q95ZQP
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KV1FXGBNPT8FEW4MVJ2CN6PV
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KV1FXQG9JBNFM4CHTZFR1BJN
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KV1FXYH3D9TS9NA6YRY2J0GE
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KV1FY5JKPTMWKFXGFK58Y61Q
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KV1FYCJANPRMJCJAPSZC03XQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KV1FYMXRMY6Q4HZBJB194DX4
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KV1FZ258D7630QTZ8PZ1BQF4
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KV1FZA898NKK8053QCB8DPND
  • cancelRun - cancelling a running workflow | wrun_01KV1FZH7759ZFBH6WNTRC4XWC
  • cancelRun via CLI - cancelling a running workflow | wrun_01KV1FZTS49BEY6G7008KZ16Q5
  • 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_01KV1G0755FHR77NMS8XCV48E5
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KV1G0QVAA80DSFCY6YW4C1JA
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KV1G12GN74HM2WVVKNN91QSJ
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KV1G19G6D871S1TNFZ6TGN7M
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KV1G1BQYA88K15PMC9KWW8C3
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV1G1DXX0MN9V1TPNGF9Y17V

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro9307
✅ example9307
✅ express9307
✅ fastify9307
✅ hono9307
✅ nextjs-turbopack9802
✅ nextjs-webpack9802
✅ nitro9307
✅ nuxt9307
✅ sveltekit9307
✅ vite9307
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack10000
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev302
✅ redis-dev302
❌ redis63180
✅ turso-dev302
❌ turso3780
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable9406
✅ e2e-local-dev-tanstack-start-stable9406
✅ e2e-local-postgres-nest-stable9406
✅ e2e-local-postgres-tanstack-start-stable9406
✅ e2e-local-prod-nest-stable9406
✅ e2e-local-prod-tanstack-start-stable9406

📋 View full workflow run

The backported conflict tests call `HookNotFoundError.is()` in
`hookClaimOnlyMutexWorkflow` (token-release wait) and the resume-or-start
route test, but the import was never carried into the stable test file —
causing a runtime `ReferenceError: HookNotFoundError is not defined`.
Import it from `@workflow/errors` (matches `main`).
Verified locally against nextjs-turbopack: the two previously-failing
tests plus the adopt/signal/supersede rewrites all pass (5/5).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel
vercelBottemporarily deployed to Preview – workflow-docs June 13, 2026 21:49 Inactive
@pranaygp
pranaygp merged commit ffa053e into stableJun 14, 2026
94 of 97 checks passed
@pranaygp
pranaygp deleted the backport/pr-2387-to-stable branch June 14, 2026 08:00
Sign up for freeto 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.

1 participant

@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Backport #2387: test: e2e coverage for run-idempotency conflict-handling strategies - #2402

Merged
pranaygp merged 4 commits into
stablefrom
backport/pr-2387-to-stable
Jun 14, 2026
Merged

Backport #2387: test: e2e coverage for run-idempotency conflict-handling strategies#2402
pranaygp merged 4 commits into
stablefrom
backport/pr-2387-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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

Triggered manually via workflow_dispatch.

…2387)
* test: e2e coverage for run-idempotency conflict-handling strategies
Covers the patterns documented in foundations/idempotency:
- claim-only hook mutex: token claimed and held with no payload data,
duplicate identifies the owner, token released after completion
- adopt the owner's result via conflict.returnValue
- signal the owner: duplicate forwards its payload via resumeHook
- supersede: duplicate cancels the owner and reclaims the token
- route-side resume-or-start retry pattern reaching the started run
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* test: fix adopt-owner-result race — gate owner completion on observed conflict
On slow runtimes the duplicate's first invocation could land after the
owner completed and released the token, making the duplicate a fresh
owner that waits forever for a payload (90s timeout across CI matrices).
Poll the duplicate's event log for hook_conflict before resuming the
owner, and widen the test timeout for the added gate budget.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* review: assert superseded owner's returnValue rejection; empty changeset
- Await run1.returnValue and assert WorkflowRunCancelledError so the
cancellation is verified end-to-end and no rejection leaks from the
supersede test.
- Test-only PR: use an empty changeset.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci: retrigger preview deployments (turbopack deployment for 2e9d000 wedged in esbuild hang)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci: bust poisoned turbo cache entry for nextjs-turbopack build
The 2e9d000 deployment's next build crashed in an esbuild hang but its
task (70724907c9dd3a29) was recorded into the turbo remote cache anyway,
so every subsequent build with the same input hash replays the broken
artifact (missing routes-manifest). Change a build input to force a
fresh execution.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@changeset-bot

changeset-botBot commented Jun 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 92d02ee

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

vercelBot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, CommentJun 13, 2026 9:53pm
example-nextjs-workflow-webpackReadyReadyPreview, CommentJun 13, 2026 9:53pm
example-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-astro-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-express-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-fastify-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-hono-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-nitro-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-nuxt-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-sveltekit-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-tanstack-start-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workbench-vite-workflowReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-swc-playgroundReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-tarballsReadyReadyPreview, CommentJun 13, 2026 9:53pm
workflow-webReadyReadyPreview, CommentJun 13, 2026 9:53pm
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
workflow-docsSkippedSkippedJun 13, 2026 9:53pm

Comment threadworkbench/example/workflows/99_e2e.ts Outdated
Comment threadworkbench/example/workflows/99_e2e.ts
pranaygpand others added 2 commits June 13, 2026 14:27
…-stable
* origin/stable:
[test] Fix stable e2e hookGetConflict test to use waitForHookState (#2405)
Update queue client to 0.3.1 (#2399) (#2401)
fix(deps): upgrade esbuild to 0.28.1 (GHSA-gv7w-rqvm-qjhr) (#2395) (#2404)
…getRun API
The backport of #2387 used APIs that only exist on `main`, breaking the
nextjs-turbopack/webpack builds and the e2e suite on `stable`:
- `hookAdoptOwnerResultWorkflow`/`hookSupersedeOwnerWorkflow` read
`conflict.returnValue`/`conflict.cancel()`, but on `stable`
`getConflict()` resolves with `{ runId }`. Resolve the owning run via
`getRun(conflict.runId)` inside a step (the documented stable pattern)
to await its result / cancel it.
- Import `resumeHook` from `workflow/api` in 99_e2e.ts (was used by
`forwardPayloadToOwner` but never imported).
- Convert the backported `waitForHook(token, { runId })` call sites to
`waitForHookState(token, predicate)`; `waitForHook` does not exist on
`stable` (#2405 standardized on `waitForHookState`).
Both workbench builds and `biome check` pass locally.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actionsBot commented Jun 13, 2026

Copy link
Copy Markdown
ContributorAuthor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production10330671100
✅ 💻 Local Development11140861200
✅ 📦 Local Production11140861200
✅ 🐘 Local Postgres11140861200
✅ 🪟 Windows10000100
❌ 🌍 Community Worlds75966177
✅ 📋 Other564036600
Total5114963675577

❌ Failed Tests

🌍 Community Worlds (96 failed)

redis (18 failed):

  • hookWorkflow | wrun_01KV1FGFNPBYT5DE89W6SX1C75
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV1FGQHMM3854GXG1P95YR2K
  • sleepingWorkflow | wrun_01KV1FH32V2DVWXSXP182VJ98D
  • 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_01KV1FRMVD4ZJ4ZGPZQC34M54F
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV1FS18FBY70Z85R4TMN7PV8
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV1FS94TTPFC9FSH1WVZPE3W
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV1FSQBTXZX6J67V9NMNNPTV
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV1FTK0YHX8912QZ12E7Y8TJ
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV1FTQXDBZKAMD8W2CV2X1XV
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV1FTZTZKTP3AYHBJ07FHRT7
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV1FV5MP1ZGJ0JB5VRA588TS
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV1FVEQ808MHV2VZAEH7F1QD
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV1G1DXX0MN9V1TPNGF9Y17V

turso (78 failed):

  • addTenWorkflow | wrun_01KV1FFGC0DZZ4Y1T2EZ71SHE6
  • addTenWorkflow | wrun_01KV1FFGC0DZZ4Y1T2EZ71SHE6
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KV1FGQEZQWSJQK1E5CD1HB9J
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KV1FFQX10ZE7CH65WSJDT6T7
  • promiseRaceWorkflow | wrun_01KV1FFWFH4S4H5ZTDBVQYKTKQ
  • promiseAnyWorkflow | wrun_01KV1FG01797XZBFCNAXF6CSGF
  • importedStepOnlyWorkflow | wrun_01KV1FH0WTNMBGJ49ZB81MCR17
  • readableStreamWorkflow | wrun_01KV1FG2AAM87P0XQJ5MCYYTMN
  • hookWorkflow | wrun_01KV1FGFNPBYT5DE89W6SX1C75
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV1FGQHMM3854GXG1P95YR2K
  • webhookWorkflow | wrun_01KV1FGW6PN83ZPEC7Y3296PYE
  • sleepingWorkflow | wrun_01KV1FH32V2DVWXSXP182VJ98D
  • parallelSleepWorkflow | wrun_01KV1FHJM2WDTPT6BQPWW9HFZJ
  • nullByteWorkflow | wrun_01KV1FHP34JY6VHVG1SSWDVBVF
  • workflowAndStepMetadataWorkflow | wrun_01KV1FHR95H0D0GVGV12NX9VY9
  • 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_01KV1FM2K14460SP2RB7KH8QCS
  • writableForwardedFromWorkflowWorkflow | wrun_01KV1FMFRRAWAPEP15BBDSV398
  • writableForwardedFromStepWorkflow | wrun_01KV1FMKVJCMPPDDNEHY707AF4
  • fetchWorkflow | wrun_01KV1FMQBBPJ8X3JTXR8F2NNX4
  • promiseRaceStressTestWorkflow | wrun_01KV1FMTTBK15W4WBSB4E3EYFP
  • 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_01KV1FR8BHGS9NQWPCP4QKT7E4
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV1FRMVD4ZJ4ZGPZQC34M54F
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV1FS18FBY70Z85R4TMN7PV8
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01KV1FS3S40TBV8CVJAVAY0CEF
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01KV1FS69AV4S43J8B77BAH86D
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV1FS94TTPFC9FSH1WVZPE3W
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV1FSQBTXZX6J67V9NMNNPTV
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV1FTK0YHX8912QZ12E7Y8TJ
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV1FTQXDBZKAMD8W2CV2X1XV
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV1FTZTZKTP3AYHBJ07FHRT7
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV1FV5MP1ZGJ0JB5VRA588TS
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV1FVEQ808MHV2VZAEH7F1QD
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KV1FVQ209SCPEX69BAHZNVTE
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KV1FW6XAAE08E2CB06R58B6B
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KV1FWHPTCX58HN17BM9PY9RS
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KV1FWQH1S58XHYP9SX231EFS
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KV1FWSSS66AS1K3G4WKT0G2R
  • 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_01KV1FXAEY1E9WS5Q6C8Q95ZQP
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KV1FXGBNPT8FEW4MVJ2CN6PV
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KV1FXQG9JBNFM4CHTZFR1BJN
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KV1FXYH3D9TS9NA6YRY2J0GE
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KV1FY5JKPTMWKFXGFK58Y61Q
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KV1FYCJANPRMJCJAPSZC03XQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KV1FYMXRMY6Q4HZBJB194DX4
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KV1FZ258D7630QTZ8PZ1BQF4
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KV1FZA898NKK8053QCB8DPND
  • cancelRun - cancelling a running workflow | wrun_01KV1FZH7759ZFBH6WNTRC4XWC
  • cancelRun via CLI - cancelling a running workflow | wrun_01KV1FZTS49BEY6G7008KZ16Q5
  • 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_01KV1G0755FHR77NMS8XCV48E5
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KV1G0QVAA80DSFCY6YW4C1JA
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KV1G12GN74HM2WVVKNN91QSJ
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KV1G19G6D871S1TNFZ6TGN7M
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KV1G1BQYA88K15PMC9KWW8C3
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV1G1DXX0MN9V1TPNGF9Y17V

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro9307
✅ example9307
✅ express9307
✅ fastify9307
✅ hono9307
✅ nextjs-turbopack9802
✅ nextjs-webpack9802
✅ nitro9307
✅ nuxt9307
✅ sveltekit9307
✅ vite9307
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable9406
✅ express-stable9406
✅ fastify-stable9406
✅ hono-stable9406
✅ nextjs-turbopack-canary81019
✅ nextjs-turbopack-stable10000
✅ nextjs-webpack-canary81019
✅ nextjs-webpack-stable10000
✅ nitro-stable9406
✅ nuxt-stable9406
✅ sveltekit-stable9406
✅ vite-stable9406
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack10000
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev302
✅ redis-dev302
❌ redis63180
✅ turso-dev302
❌ turso3780
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable9406
✅ e2e-local-dev-tanstack-start-stable9406
✅ e2e-local-postgres-nest-stable9406
✅ e2e-local-postgres-tanstack-start-stable9406
✅ e2e-local-prod-nest-stable9406
✅ e2e-local-prod-tanstack-start-stable9406

📋 View full workflow run

The backported conflict tests call `HookNotFoundError.is()` in
`hookClaimOnlyMutexWorkflow` (token-release wait) and the resume-or-start
route test, but the import was never carried into the stable test file —
causing a runtime `ReferenceError: HookNotFoundError is not defined`.
Import it from `@workflow/errors` (matches `main`).
Verified locally against nextjs-turbopack: the two previously-failing
tests plus the adopt/signal/supersede rewrites all pass (5/5).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel
vercelBottemporarily deployed to Preview – workflow-docs June 13, 2026 21:49 Inactive
@pranaygp
pranaygp merged commit ffa053e into stableJun 14, 2026
94 of 97 checks passed
@pranaygp
pranaygp deleted the backport/pr-2387-to-stable branch June 14, 2026 08:00
Sign up for freeto 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.

1 participant

@pranaygp