Repository navigation
chore(test): widen RpcHttp warmup retry budgets for slow DO binding propagation - #958
Merged
Merged
Conversation
…can't fail the whole file Under full-suite load the worker->DO namespace binding can take longer to propagate than the beforeAll gate's ~40s defect-promoting retry budget (retryReadyN(15)); the 16th server-sent HttpError defect escaped the hook and cascaded to all 10 tests. Bump the DO-pathway warmup to retryReadyN(40) (~2 min of capped backoff), route the plain Ping warmup through retryReadyN(20) so defects on that path are retried too, and raise the beforeAll timeout to 300s. Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
|
Install the packages built from this commit: alchemy bun add alchemy@https://pkg.ing/alchemy/a52c67e@alchemy.run/better-auth bun add @alchemy.run/better-auth@https://pkg.ing/@alchemy.run/better-auth/a52c67e@alchemy.run/pr-package bun add @alchemy.run/pr-package@https://pkg.ing/@alchemy.run/pr-package/a52c67e |
Mkassabov
added a commit
that referenced
this pull request
Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In a full-suite
test/Cloudflare/Workersrun,RpcHttp.test.ts's sharedbeforeAllfailed once with~effect/rpc/RpcClientError: HttpError, cascading to all 10 tests. The failing run's log shows the error was created in the RPC client'sDefect-message branch: while the worker→DO namespace binding is still propagating, the worker's internal DO client fails withHttpError, the fixture'sEffect.orDieturns it into a server-sent defect, and the client kills the pending call with it.The warmup gate already promoted those defects and retried (
retryReadyN(15)), but that is only ~40s of capped backoff — under full-suite parallel load the propagation window outlasted it and the 16th failure escaped the hook.Pingwarmup now also goes throughretryReadyN(20)instead of a bareEffect.retry, so a defect on that path can't escape unretried eitherbeforeAlltimeout: 180s → 300s so deploy + worst-case warmup fitsA plain HTTP readiness probe was considered and rejected: the workers.dev placeholder serves HTTP 200, so only the RPC-level warmup proves the pathway works. All retries stay bounded on the existing defect-promoting combinators.
Verified:
timeout 400 bun run test test/Cloudflare/Workers/RpcHttp.test.ts --profile testing— 10/10 pass (87s);bun tsc -bclean.🤖 Generated with Claude Code