Skip to content

Attach a diagnosis to the dev-db socket wedge timeouts - #1767

Draft
RhysSullivan wants to merge 4 commits into
mainfrom
chore/devdb-wedge-diagnostics
Draft

Attach a diagnosis to the dev-db socket wedge timeouts#1767
RhysSullivan wants to merge 4 commits into
mainfrom
chore/devdb-wedge-diagnostics

Conversation

@RhysSullivan

@RhysSullivan RhysSullivan commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Diagnostics for the two distinct dev-db wedge families, so the next occurrences carry their own cause.

Unit-suite wedges (runs 32933818134, 33019527020): the reap and ghost scenarios each wedged once as bare 30s vitest timeouts — bystander startup served, query then hung. ~800 isolated replays (macOS + Linux, idle and CPU-starved) never reproduced it. The two bystander queries now run under a 20s deadline that fails with the server's queue/handler stats plus a fresh-startup probe (a latched queue serves nobody; per-handler pinning still answers new startups).

E2E-shard cascades (latest: run 33129376530, main): 100+ seconds of app-side CONNECT_TIMEOUT against the dev DB while every watchdog probe from the dev-db process silently PASSED — the server was healthy and the stall is on the app's side of the socket (the workerd/miniflare outbound path), which a silent-when-healthy watchdog cannot show. The watchdog now logs a stats heartbeat (every 60s, and on every 50-connection jump in active connections), so the next cascade's boot log shows whether connections pile up before the starvation — the direct test of the workerd-socket-leak theory.

Pure observability in both cases — no behavior or assertion changes.

Checks: lint, typecheck, the socket suite (6/6), dev-db boot smoke.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 27, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud e3ff346 Aug 28 2026, 03:14 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 27, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing e3ff346 Commit Preview URL

Branch Preview URL
Aug 28 2026, 03:15 AM

@github-actions

github-actions Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Cloudflare preview

Console https://executor-preview-pr-1767.executor-e2e.workers.dev
MCP https://executor-preview-pr-1767.executor-e2e.workers.dev/mcp
Deployed commit e3ff346

Sign-in is Cloudflare Access (one-time PIN to an allowed email). The preview has its own database and encryption key; it is destroyed when this PR closes.

@pkg-pr-new

pkg-pr-new Bot commented Aug 27, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@1767

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@1767

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@1767

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@1767

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@1767

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@1767

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@1767

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@1767

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@1767

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@1767

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@1767

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@1767

executor

npm i https://pkg.pr.new/executor@1767

commit: e3ff346

Sign up for free to 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