mcpproxy-go icon indicating copy to clipboard operation
mcpproxy-go copied to clipboard

test: TestRT05_ListChangedDuringInFlightVerification_IsFollowedUp flaky (follow-up verification not applied)

Open Dumbris opened this issue 2 weeks ago • 0 comments

TestRT05_ListChangedDuringInFlightVerification_IsFollowedUp (internal/runtime/lifecycle_quarantine_verify_test.go:245) failed once in CI and does not reproduce locally.

Failure (End-to-End Tests (ubuntu-latest, 1.26), "Run unit tests" step, PR #1949 head 0733283c1): https://github.com/smart-mcp-proxy/mcpproxy-go/actions/runs/44865908087/job/136742826225

lifecycle_quarantine_verify_test.go:296  expected: "changed"           (rec.Status)
lifecycle_quarantine_verify_test.go:297  expected: "armed definition"  (rec.CurrentDescription)
--- FAIL: TestRT05_ListChangedDuringInFlightVerification_IsFollowedUp (0.77s)

The earlier assertions (coalescedReturned, notified == 1) passed, so the coalesced notification was delivered during the in-flight verification, but the follow-up verification had not written the changed record when the outer call returned. The test comment says "No polling: the outer call returns only after its follow-up ran", so either the follow-up can run after the outer call returns, or it can be skipped.

The PR did not touch the quarantine or runtime lifecycle code. Locally the test passed 80/80 with -race -count=40, both with default GOMAXPROCS and with GOMAXPROCS=1.

Dumbris avatar Nov 21 '26 14:11 Dumbris