Skip to content

fix(test): scale MCP App readiness polling and drop the #122 retry - #330

Merged
ScriptedAlchemy merged 1 commit into
mainfrom
wave/flake-root-mcp-poll
Sep 2, 2026
Merged

fix(test): scale MCP App readiness polling and drop the #122 retry#330
ScriptedAlchemy merged 1 commit into
mainfrom
wave/flake-root-mcp-poll

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • Root cause for the mcp-app-real.e2e.test.ts flake tracked in flake: track remaining dev-watcher and MCP App gate failures #122: the timeline test's readiness waits carried short fixed budgets (originally an unscaled 1-3s expect.poll ceiling at the consent relay; the failing gate hit expect.poll(...).toHaveLength(1) inside a 1s budget). Green runs return immediately, so a short ceiling only converts machine load into failures.
  • Per the issue's acceptance, all readiness waits are now tied to the existing time-scale mechanism: the five remaining 3_000 * timeScale polls (HMR client connect/disconnect, client + preview socket recording, consent relay) move to the file's standard 15_000 * timeScale, and the test-level timeout becomes 120_000 * timeScale (it was the only unscaled test-level timeout in the file). Diagnostic try/catch wrappers and every negative assertion are unchanged.
  • Removes the { retry: 2 } interim from PR test: retry known flaky cases per #122 #138.

Evidence

  • Stability: 8 consecutive green serial runs pre-rebase plus 2 post-rebase, all 4 tests per run, under load average 40-90 (the load regime the gate flake manifests in).
  • pnpm lint and pnpm typecheck green; test-only change, no changeset needed.

Part of #122 (MCP App polling scope). The dev-watcher scope landed in #329.

@ScriptedAlchemy
ScriptedAlchemy merged commit aaae8a1 into main Sep 2, 2026
@changeset-bot

changeset-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 7c5e083

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-02T23:08:56.227120Z 7c5e083 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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