Repository navigation
fix(ci): eliminate chronic E2E timeout — Runtime.Close Docker-verify waste - #478
Merged
Merged
Conversation
Root cause of the chronic E2E red (failing on every main commit for weeks; v0.31.0/.1 shipped through it): Runtime.Close() and Server.Stop() always ran a Docker container-cleanup verification — a docker ps probe + a 15x1s poll loop + 2s sleep (~17s) — even when no Docker isolation was ever used. Every runtime-constructing unit test paid ~17s in t.Cleanup; across ~dozens of tests under -race the internal/runtime package hung past 12 min, blowing CI's -race -timeout 2m step. Fix: add Manager.UsesDockerIsolation() (same predicate as the Docker recovery monitor) and gate both cleanup-verification blocks on it. No isolation => no managed containers => nothing to verify. Production behavior with Docker isolation is unchanged. Also add testing.Short() guards to the heaviest property/timing tests (TestRapidQuarantineStateMachine ~270s, TestRapidInvariant ~70s, and five ~18s timing tests) so the fast unit step stays lean; they still run in the main-only stress-tests job. Result (local, exact CI condition -short -race -timeout 2m): - internal/runtime: hang >12m -> ok 20s - internal/server: slow -> ok 18s - internal/upstream/contracts: ok Related #468
Pairs with the Runtime.Close Docker-verify fix. The fast unit step now passes -short (activating the testing.Short guards) with a 4m race timeout for headroom; the heavy property/timing tests run unguarded in the main-only stress-tests job so coverage is preserved. Related #468
Deploying mcpproxy-docs with
|
| Latest commit: |
60f094a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a396e12b.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://fix-runtime-close-docker-ver.mcpproxy-docs.pages.dev |
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 26041263822 --repo smart-mcp-proxy/mcpproxy-go
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
E2E Testshas failed on everymaincommit for weeks (v0.31.0/v0.31.1 shipped through it). Root-caused:Runtime.Close()andServer.Stop()unconditionally ran a Docker container-cleanup verification — adocker psprobe + a 15×1s poll loop + 2s sleep (~17 s) — even when no Docker isolation was ever used. Every runtime-constructing unit test paid ~17 s int.Cleanup; across ~dozens of tests under-racetheinternal/runtimepackage hung >12 min, blowing the-race -timeout 2mstep. Not caused by any recent feature — pure pre-existing infra rot.Fix
Manager.UsesDockerIsolation()(same predicate as the Docker recovery monitor) gates both cleanup-verification blocks. No isolation ⇒ no managed containers ⇒ nothing to verify. Production behavior with Docker isolation is unchanged.testing.Short()guards on the heaviest property/timing tests (TestRapidQuarantineStateMachine~270 s,TestRapidInvariant_*~70 s, five ~18 s timing tests).-short -timeout 4m; the guarded heavy tests run unguarded in the main-onlystress-testsjob so invariant coverage is preserved.Result (local, exact CI condition
-short -race -timeout 2m)Related #468