Skip to content

test(ui): await MCP cancellation network evidence - #131690

Merged
steipete merged 1 commit into
mainfrom
steipete/release-verification-ci-fixes-04b48b
Aug 28, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/release-verification-ci-fixes-04b48b

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a release-verification failure where the real MCP App browser conformance test reports no cancelled HTTP request even though cancellation has reached the MCP server. Full Release Validation exposed the failure in the real-Gateway UI job.

Why This Change Was Made

The fixture's stdio records and Playwright's browser network events arrive on independent channels. Completing the upstream fixture is not a delivery barrier for the browser's requestfailed callback. Await the existing per-scenario failed-POST observation with the suite's existing polling defaults, retaining the exact count of one.

There is no production, fixture, timeout, retry, dependency, configuration, or storage change. Cancellation notification correlation, late-reply suppression, subsequent connection reuse, composed operation budgets, and browser-history assertions remain intact. The synchronous assertion originated in PR #119388 — own standalone MCP App request lifetimes, authored by @tzy-17 and merged by @steipete on August 28.

User Impact

No product behavior changes. Release CI now waits for the browser evidence it is asserting instead of treating unrelated fixture progress as synchronous network-event delivery.

Evidence

  • The original uninstrumented CI failure was captured before editing. The unchanged Linux baseline passed 2/2; this PR does not claim the natural intermittent ordering reproduced on demand.
  • A temporary delayed-observer control held a genuine Playwright failure callback and published it with setImmediate: the old assertion failed with zero versus one, while the fix passed both tests and all five cancellation scenarios. Fetch, HTTP, SDK, and producer results were not mocked.
  • A negative control dropped the real browser cancellation message. The fixed test still failed for the missing failed POST, so polling does not hide broken cancellation. All diagnostic controls were removed from the final diff.
  • Final uninstrumented Linux Node 24.19.0 / Chromium 144 conformance: 2/2 passed, with exactly one failed POST and cancellation notification per scenario, no late app replies, complete history navigation, and empty cleanup failures.
  • Focused Gateway/HTTP siblings: 91 passed. Focused MCP runtime cancellation: 3 passed (102 unrelated cases filtered out).
  • Fresh isolated Codex autoreview: no accepted/actionable findings at its configured P0 threshold; the reviewer did not run tests.
  • Blacksmith Testbox proof: run 33156274663, lease tbx_01m13re1xw8ewv18rzpmjef5pw. Wrapper terminal results, not the lease-cleanup workflow conclusion, establish test outcomes.
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/mcp-app-conformance.e2e.test.ts
node scripts/run-vitest.mjs src/gateway/mcp-app-standalone.test.ts src/gateway/mcp-app-standalone-cancellation.test.ts src/gateway/http-common.test.ts
node scripts/run-vitest.mjs src/agents/agent-bundle-mcp-runtime.test.ts -t 'cancels.*catalog waiter|cancels materialized MCP calls'
node scripts/check-changed.mjs -- ui/src/e2e/mcp-app-conformance.e2e.test.ts
git diff --check

The full changed gate passed, including core-test typechecking, lint, format, and guards; exact-head hosted CI remains required before landing. The proof lease was stopped and cleanup verified. Optional recording was unavailable because the Testbox lacked Playwright's ffmpeg bundle; no screenshots/video or full-dashboard proof is claimed. The real Gateway, browser, stdio server, and official MCP App are exercised. Ordinary history is not BFCache proof.

Production LOC: +0/-0. Tests: +8/-5 (net +3). AI-assisted maintainer-requested CI repair; no changelog change.

@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Aug 28, 2026
@steipete
steipete marked this pull request as ready for review August 28, 2026 09:14
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for af6f14bcc09f28aefd574c49d8a57953a6cd7bdf: one reviewed test-only change (+8/-5; production +0/-0), awaiting the existing asynchronous browser observation while preserving the exact failed-POST count and cancellation/late-reply/reuse assertions. No production, timeout, retry, fixture, dependency, or configuration changes.

Exact-head CI 33158538181 and its required openclaw/ci-gate passed. node scripts/watch-pr-ci.mjs 131690 af6f14bcc09f28aefd574c49d8a57953a6cd7bdf finished GREEN. Native review artifacts validated and OPENCLAW_TESTBOX=1 scripts/pr prepare-run 131690 passed without changing or pushing the head. Fresh isolated Codex autoreview had no accepted/actionable findings at its configured P0 threshold; that reviewer did not run tests.

Real Linux Node 24.19.0 / Chromium 144 proof used Testbox run 33156274663, lease tbx_01m13re1xw8ewv18rzpmjef5pw, now stopped. The test commands ran with OPENCLAW_TESTBOX=1 OPENCLAW_TESTBOX_REMOTE_RUN=1:

node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/mcp-app-conformance.e2e.test.ts
node scripts/run-vitest.mjs src/gateway/mcp-app-standalone.test.ts src/gateway/mcp-app-standalone-cancellation.test.ts src/gateway/http-common.test.ts
node scripts/run-vitest.mjs src/agents/agent-bundle-mcp-runtime.test.ts -t 'cancels.*catalog waiter|cancels materialized MCP calls'
node scripts/check-changed.mjs -- ui/src/e2e/mcp-app-conformance.e2e.test.ts
git diff --check

Results: conformance 2/2 in original order; all five scenarios recorded one failed POST, one cancellation notification, and zero late replies; history completed and cleanup was empty. Siblings passed 91/91; runtime cancellation passed 3/3 (102 unrelated cases filtered out); full changed gate passed. Terminal command logs and inspected artifacts establish these results, not the lease-cleanup workflow conclusion. The delayed genuine-event control failed before/pass after; dropped-cancellation control still failed. Both controls were removed. The natural intermittent race was not reproduced on demand; the original CI failure is linked in the PR body.

Limits: no screenshots because no product UI/runtime behavior changes. Optional recording lacked Playwright ffmpeg. This is real Gateway/browser/stdio/official App proof with a source-mounted component, not full-dashboard or BFCache proof; ordinary history is not BFCache.

ClawSweeper remains at review_started, with no actual findings or Rank-up moves published. The maintainer explicitly approved landing with the verified gates above; the pending publisher is not an independent approval requirement. Live rules require CI and no independent review approval. No enforced rule or approval bypass is being used.

@steipete
steipete merged commit 4ef3b14 into main Aug 28, 2026
149 checks passed
@steipete
steipete deleted the steipete/release-verification-ci-fixes-04b48b branch August 28, 2026 09:40
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant