Skip to content

Stabilize MCP lifecycle tests under suite load - #5026

Merged
Widthdom merged 6 commits into
mainfrom
fix-issue4935-4947-4978-5001
Aug 1, 2026
Merged

Stabilize MCP lifecycle tests under suite load#5026
Widthdom merged 6 commits into
mainfrom
fix-issue4935-4947-4978-5001

Conversation

@Widthdom

@Widthdom Widthdom commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Make MCP batch timeout tests establish initialization outside the shortened timed dispatch.
  • Synchronize timeout-action release on observed cancellation and use typed response-shape assertions.
  • Replace the cancelled EOF drain wall-clock threshold with a direct cancellation contract.
  • Use a database-independent adjacent success request in the duplicate-initialize timeout fixture.

Root cause

  • The shortened RequestTimeout also covered setup initialization and DB-probing ping requests, so parallel-suite load could change the expected lifecycle or response shape.
  • The timeout fixtures released blocked actions without first proving timeout cancellation had been observed.
  • The EOF coverage used a host-load-sensitive elapsed-time threshold instead of asserting the actual cancellation behavior.

Validation

  • dotnet build CodeIndex.sln -c Release -p:UseSharedCompilation=false --no-restore — succeeded with 0 warnings and 0 errors.
  • Focused MCP tests — 3/3 passed on both net8.0 and net9.0 in Release.
  • Adversarial stress — the three focused tests passed 30/30 iterations on net9.0.
  • dotnet run --project tools/CodeIndex.Changelog -- check — validated 95 fragments.
  • Local CodeIndex status --check — indexed HEAD matched the clean workspace with all readiness checks passing.
  • Codex adversarial review — No blocking/actionable issues found.

Documentation and changelog

Follow-up candidates

  • None.

Fixes #4935
Fixes #4947
Fixes #4978
Fixes #5001

@Widthdom
Widthdom marked this pull request as ready for review August 1, 2026 13:20
@Widthdom
Widthdom merged commit d29ef6a into main Aug 1, 2026
11 checks passed
@Widthdom
Widthdom deleted the fix-issue4935-4947-4978-5001 branch August 1, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant