Skip to content

Give the cap-eviction scenario an idle window it can cross the cap in - #2395

Merged
RhysSullivan merged 1 commit into
mainfrom
e2e-cap-eviction-headroom
Oct 25, 2026
Merged

RhysSullivan merged 1 commit into
mainfrom
e2e-cap-eviction-headroom

Conversation

@RhysSullivan

Copy link
Copy Markdown
Collaborator

mcp-session-cap-eviction times out on about one main run in four (4 of the last 15 CI runs).

The scenario opens sessions one at a time and needs cap + 1 of them (25, with the e2e cap of 24) resident at once. Each session's runtime idles out MCP_SESSION_TIMEOUT_MS (3s in CI) after it opened. An open costs about 80-125ms on a CI runner, so 25 opens take roughly the whole window. In the failing runs, the first idle disposal landed just as the 25th session opened, and every later open was offset by another one. The cap was never crossed, the span search came up empty, and the cleanup's restores of the now-idle sessions ran the test into its 180s timeout.

The cap itself can't come down much: mcp-protocol.test.ts keeps about a dozen sessions resident within a second or two. This raises the e2e idle timeout to 8s, in the cloud shard env and the e2e default, which gives 25 opens 2.5x headroom at CI's slow end. It also documents the constraint next to the cap constant. Scenarios that wait for idle disposal derive their waits from the configured timeout, so they still work, each about 5s slower.

Test environment only; production is unchanged.

The scenario opens sessions one at a time and needs cap + 1 (25) resident at once, but each session idles out MCP_SESSION_TIMEOUT_MS after it opened. At 3s, 25 opens took the whole window on a CI runner (80-125ms each). When they ran over, early sessions idled out as new ones opened, the cap was never crossed, and the scenario timed out. Raise the e2e idle timeout to 8s in CI and the e2e default, and document the constraint next to the cap.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 25, 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 ce6ad38 Oct 25 2026, 09:27 PM

@cloudflare-workers-and-pages

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 ce6ad38 Commit Preview URL

Branch Preview URL
Oct 25 2026, 09:27 PM

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Cloudflare preview

Torn down — the PR is closed.

@pkg-pr-new

pkg-pr-new Bot commented Oct 25, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

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

@executor-js/config

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

@executor-js/execution

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

@executor-js/sdk

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

@executor-js/codemode-core

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

@executor-js/runtime-quickjs

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

@executor-js/plugin-file-secrets

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

@executor-js/plugin-graphql

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

@executor-js/plugin-keychain

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

@executor-js/plugin-mcp

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

@executor-js/plugin-onepassword

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

@executor-js/plugin-openapi

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

executor

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

commit: ce6ad38

@RhysSullivan
RhysSullivan marked this pull request as ready for review October 25, 2026 21:35
@RhysSullivan
RhysSullivan merged commit 10f40d1 into main Oct 25, 2026
44 checks passed
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