test: TestRetrieveTools_ProfileNarrowedStaleIndexNeverExposes/legacy_profile flaky (empty baseline)
TestRetrieveTools_ProfileNarrowedStaleIndexNeverExposes/legacy_profile (internal/server/retrieve_tools_profile_index_reload_test.go:152) failed once on main.
Failure (End-to-End Tests (ubuntu-latest, 1.26), "Run unit tests" step, main at 5f37ac9e9): https://github.com/smart-mcp-proxy/mcpproxy-go/actions/runs/44862763184/job/136719833115
Error: Not equal:
expected: []string{"b:beta_tool"}
actual: []string(nil)
Messages: baseline: b is in ro
--- FAIL: TestRetrieveTools_ProfileNarrowedStaleIndexNeverExposes/legacy_profile (11.70s)
--- PASS: .../capped_profile (11.89s)
The failing assertion is the baseline (before the profile narrows): retrieve_tools returned nothing for server b even though it is in the profile. That looks like the baseline query running before b's tools were indexed (a readiness wait missing or too short) rather than a stale-index exposure. The capped_profile subtest passed in the same run. 5f37ac9e9 (#1950) changed only Web UI code and a test fixture command.