mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
313a074ad1
* test(e2e): poll the events readback in stepFunctionPassingWorkflow The events listing prefers the analytics store, which ingests asynchronously. Reading it immediately after run completion can miss the freshest events (the page is non-empty, so the storage fallback does not trigger), failing the step_completed assertion. Poll for up to 20s so ingestion has time to land; the assertion itself is unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * test(e2e): force storage-backed inspect listings via WORKFLOW_DISABLE_ANALYTICS_READS The analytics store ingests asynchronously; e2e assertions read events and steps immediately after run completion and can catch a page missing the freshest rows (observed as stepFunctionPassingWorkflow's step_completed readback returning empty, and the same race on steps listings in other suites). Instead of polling each readback, disable the analytics namespace for the e2e's CLI invocations so every inspect listing is served read-your-writes from primary storage. Replaces the earlier bounded poll with the deterministic mechanism. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
370 B
370 B
@workflow/world-vercel
| @workflow/world-vercel |
|---|
| patch |
Add WORKFLOW_DISABLE_ANALYTICS_READS=1 to opt the world's analytics read namespace off, forcing workflow inspect list paths onto strongly consistent primary storage. Intended for tests and tooling that read entities immediately after writing them, where the analytics store's asynchronous ingestion can return stale pages.