Repository navigation
Conversation
It takes ~10s alone but ~25s after the rest of the suite in the shared isolate, and CI is slower again: it passed in 58.7s against the 60s limit on #257 and timed out on the release PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
Every call through exports.default.fetch left the next one slower: 1000 requests took a trivial 404 from ~1ms to ~190ms, and the slowdown carried across test files. Calling the Hono app directly shows no growth. The suite was quadratic in requests made: the conformance run (~1000 requests) took ~3s alone, ~25s after the other files, and ~60s on CI, where it timed out on the release PR. The helper now calls app.fetch with a fresh ExecutionContext per request, leaving waitUntil work running as in production. All 355 tests pass, and the run's test time drops from ~60s to ~15s locally. The conformance timeout goes back to 60s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
commit: |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
cirrusdocs | 2ae1d96 | Commit Preview URL Branch Preview URL |
Nov 20 2026, 08:19 AM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
pdscheck | 2ae1d96 | Nov 20 2026, 08:19 AM |
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.
The PDS conformance test timed out on the release PR (#227). It had passed in 58.7s against a 60s limit on #257. The cause isn't the conformance suite or Cirrus code. It's the test helper.
This PR first raised the timeout to 180s. A later commit replaces that with the fix below and puts the timeout back to 60s.
Cause
test/helpers.tssent every request throughexports.default.fetch, a loopback into the worker's own entrypoint. Each loopback call left every later one slower:exports.default.fetch, trivial 404app.fetchcalled directlyThe slowdown persists across test files and doesn't recover when idle. Direct calls made after a loopback run are unaffected, so it's specific to the loopback channel, not the isolate. The suite was therefore quadratic in requests made. The conformance run makes about 1000 requests, so it took about 3s alone, about 25s after the other files, and about 60s on CI.
The bisection, in order:
exports.defaultand not in the app.Fix
worker.fetch(request, env)now calls the Hono app directly, with a freshExecutionContextfromcloudflare:testfor each request.waitUntilwork is left running, as in production. The signature is unchanged, so no test needed editing.Results
The leak itself is in workerd or vitest-pool-workers. I'm tracing it separately.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB