Skip to content

[CI] Windows E2E red on main since 2026-08-13: internal/server exceeds the 4m unit-test timeout (not a code regression) #1034

Closed

Description

@Dumbris

Summary

The End-to-End Tests (windows-latest, 1.25) job in E2E Tests (.github/workflows/e2e-tests.yml) has failed on every push to main since 2026-08-13. It is not a code regression and not a hang — the Run unit tests step's -timeout 4m budget is exhausted by internal/server (and now also internal/runtime) on Windows runners under -race.

The "since 2026-08-19" impression is an undercount: the streak actually starts 2026-08-13, and the same signature appeared intermittently as far back as 2026-08-05.

Failing step

.github/workflows/e2e-tests.yml:99

go test -v -short -race -timeout 4m -skip "Binary|MCP|E2E|TestInfoEndpoint|TestGracefulShutdownNoPanic|TestSocketInfoEndpoint" ./internal/...

Evidence — it's a budget problem, not a hang

Last green main run, 31669951995 (2b90a105f, 2026-08-13T05:19Z) — windows job package times in that step:

ok  github.com/smart-mcp-proxy/mcpproxy-go/internal/runtime   155.259s
ok  github.com/smart-mcp-proxy/mcpproxy-go/internal/server    228.922s

internal/server passed with 11 seconds of headroom under the 240s cap. Every main push since has crossed it.

First red run of the unbroken streak, 31698286614 (4ee7b10c4, 2026-08-13T12:03Z):

panic: test timed out after 4m0s
	running tests:
		TestMaybeAutoApproveScanSettled (1s)
FAIL	github.com/smart-mcp-proxy/mcpproxy-go/internal/server	240.567s

4ee7b10c4 is ci(release): raise SignPath wait timeout to 3h — a release.yml-only diff (3 insertions, 1 deletion, one file). It cannot have caused this; it is simply the first push after the suite crossed the line.

Same signature, different "running test" every time — proof that no single test hangs; the package wall clock runs out:

Run Date Package "running tests" at panic
30980270140 08-05 internal/server 240.315s TestToonDetectionParity_SecurityCorpus (11s)
31698286614 08-13 internal/server 240.567s TestMaybeAutoApproveScanSettled (1s)
31707050873 08-13 internal/server 240.378s TestProfile_UnpinnedTokenUnaffected (2s)
32222497722 08-19 internal/server 240.247s TestStartServer_GracefulCancel_NoServeErr (1s)
32281894111 08-19 internal/server 241.498s TestProfile_PolicyIntersection (10s)
32560824673 08-22 internal/server 240.250s TestProfile_PerServerDisabledToolsRespected (1s)
32561643259 08-22 internal/runtime 240.333s and internal/server 240.648s TestIsToolConfigDenied_UnknownServer (0s) / TestDisabledDiscovery_DefaultPathUnchanged (4s)

The newest run is the first where internal/runtime also blows the budget (155s → 240s+), so the margin is still eroding.

Why PRs stay green

.github/workflows/e2e-tests.yml:52

os: ${{ github.event_name == 'pull_request' && fromJSON('["ubuntu-latest"]') || fromJSON('["ubuntu-latest", "macos-latest", "windows-latest"]') }}

Windows and macOS only run on push to main. No PR can ever catch this before merge — that is the coverage gap that let the budget silently erode past the cap. Secondary effect: the matrix uses default fail-fast, so the Windows failure cancels the ubuntu E2E job on every main run (it shows cancelled, not success) — main has effectively had no Linux E2E signal either since 2026-08-13.

Not related to the Build-Binaries Go 1.25.13 lead

A separate recent Windows Build-Binaries failure was a Go 1.25.13 stdlib panic in internal/syscall/windows.SupportTCPKeepAliveIdle (OnceFunc). That signature is absent from every E2E Windows log inspected here (grep -c SupportTCPKeepAliveIdle → 0). Different problem; do not conflate.

Also seen in the E2E logs but harmless: a recovered nil pointer dereference in internal/httpapi.(*Server).handleEditRegistrySource (internal/httpapi/server.go:5017) under TestMutatingServerRoutes_AdminAllowed/registry-edit-source — the chi Recoverer catches it and the subtest passes. Worth a separate look, but it is not what reddens the job.

Proposed remediation

  1. Raise the budget in e2e-tests.yml:99 from -timeout 4m to -timeout 12m. This is the actual unblock; the step is a whole-./internal/... sweep whose slowest package legitimately needs ~4 minutes on a Windows runner under -race, and a cap sitting within seconds of the real runtime will re-break on the next test added.
  2. Close the pre-merge gap. Either include windows-latest in the PR matrix (costs one runner per PR), or add a scheduled nightly full-matrix run so budget erosion is caught by something other than a red main.
  3. Consider fail-fast: false on the e2e-tests matrix so one slow OS stops cancelling the other two and destroying the Linux/macOS signal.
  4. Optional follow-up: profile the slowest tests in internal/server / internal/runtime (go test -race -v timings) and move the heaviest into the existing main-only stress job, rather than growing the fast sweep indefinitely.

Related prior art: the same "Windows package timeout, not a code regression" family was hit in unit-tests.yml (MCP-2493 / #689) and fixed there with runtime.GOOS == "windows" skips on the heavy rapid property tests.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions