Skip to content

[wrangler] Handle dynamic retry delays in workflows instances describe - #15569

Merged
dario-piotrowicz merged 2 commits into
cloudflare:mainfrom
RealBhupesh:fix/vite-wrangler-dev-issues
Sep 10, 2026
Merged

dario-piotrowicz merged 2 commits into
cloudflare:mainfrom
RealBhupesh:fix/vite-wrangler-dev-issues

Conversation

@RealBhupesh

@RealBhupesh RealBhupesh commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #15548.

wrangler workflows instances describe crashed with RangeError: Invalid time value when a step was waiting on a retry whose delay was a function. The API serializes that delay as "[dynamic]"; itty-time parsed it as NaN, and date-fns then threw before the rest of the instance was printed.

The command now renders Retries At: unknown (dynamic delay) for that case, and unknown when a failed attempt has end: null.

This PR previously bundled two unrelated Vite plugin fixes. Those are now separate:


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: this is a CLI display bug; describe already documents retry output and the command no longer crashes on a documented Workflows retry shape.

@changeset-bot

changeset-bot Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9021f80

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

This PR includes changesets to release 3 packages
Name Type
wrangler Patch
@cloudflare/vite-plugin Patch
@cloudflare/vitest-plugin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk Sep 8, 2026
@workers-devprod
workers-devprod requested review from a team and emily-shen and removed request for a team September 8, 2026 17:51
@workers-devprod

workers-devprod commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

devin-ai-integration[bot]

This comment was marked as resolved.

@pkg-pr-new

pkg-pr-new Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@15569

@cloudflare/build-output-utils

npm i https://pkg.pr.new/@cloudflare/build-output-utils@15569

@cloudflare/codemods

npm i https://pkg.pr.new/@cloudflare/codemods@15569

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@15569

create-cloudflare

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

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@15569

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-functions

npm i https://pkg.pr.new/@cloudflare/pages-functions@15569

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-plugin

npm i https://pkg.pr.new/@cloudflare/vitest-plugin@15569

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@15569

@cloudflare/workers-editor-shared

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

@cloudflare/workers-utils

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

wrangler

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

commit: 9021f80

The Workflows API serializes function retry delays as "[dynamic]". Parsing
that as a duration produced an Invalid Date and crashed describe with
RangeError before remaining steps were printed.

Fixes cloudflare#15548
@RealBhupesh
RealBhupesh force-pushed the fix/vite-wrangler-dev-issues branch from 273bb25 to 10ba14a Compare September 9, 2026 04:29
@RealBhupesh RealBhupesh changed the title fix(vite-plugin, wrangler): ignore .wrangler watch noise, index.html restart race, workflows describe crash [wrangler] Handle dynamic retry delays in workflows instances describe Sep 9, 2026
@RealBhupesh

Copy link
Copy Markdown
Contributor Author

Split this PR after CI/review feedback: bundling three unrelated bugs was going to stall review, and the description check required the template boxes.

The Windows LocalRuntimeController timeout in the previous run is unrelated to these changes.

The previous test update replaced emoji and table borders with question
marks, which mismatched CLI snapshots in CI. Keep the new dynamic-delay
cases as substring assertions on the original snapshots.
@RealBhupesh

Copy link
Copy Markdown
Contributor Author

CI snapshot failures were from Unicode in the existing CLI snapshots being replaced with ?. Restored the original emoji/table snapshots; the new dynamic-delay cases still use substring assertions.

@workers-devprod workers-devprod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codeowners reviews satisfied

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Sep 9, 2026
@dario-piotrowicz
dario-piotrowicz enabled auto-merge (squash) September 10, 2026 10:08
@dario-piotrowicz
dario-piotrowicz removed the request for review from emily-shen September 10, 2026 10:09
@dario-piotrowicz
dario-piotrowicz merged commit 24ef86b into cloudflare:main Sep 10, 2026
71 of 73 checks passed
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

4 participants