Skip to content

fix(test): repair main E2E and shuffle failures after the issue-cleanup merge train - #1526

Merged
Dumbris merged 2 commits into
mainfrom
fix/issues-w4-main-ci
Oct 6, 2026
Merged

Dumbris merged 2 commits into
mainfrom
fix/issues-w4-main-ci

Conversation

@Dumbris

@Dumbris Dumbris commented Oct 6, 2026

Copy link
Copy Markdown
Member

Summary

Deflakes three test failures seen on main CI after the issue-cleanup merge train. Test-only changes; no production code touched.

Test Root cause Fix
search_servers_all_sources_test An unused slow httptest server whose handler blocks until the client cancels; a stray dial made its Close() hang to the 20m package timeout. Removed the unused server.
preflight_glue_test The instrumented gh upstream was registered enabled, so the manager's async connect could bump the zero-hit counter under load. Register it disabled.
manager_oauth_test The expire+scan step ran while the prior leg's reconnect was still Connecting; a scan skips a Connecting client by design. Retry the expire+scan step until it redials.

Introducing PRs: the flakes surfaced during the cleanup merge train; I did not bisect to individual PRs.

Proof

After merging current origin/main (#1521):

  • go test -race -count=3 -run 'Preflight|SearchServersAllSources' ./internal/server/ passes
  • go test -race -count=3 -run OAuth ./internal/upstream/ passes
  • go test ./internal/registries/ passes, go build ./... clean

No seed-based shuffle replay was run for this PR.

Review status

Clean; test-only diff.

…ts, token scan)

- search_servers_all_sources_test: drop the unused 'slow' httptest server whose
  handler blocks until client cancel; a stray dial made its Close() hang to the
  20m package timeout.
- preflight_glue_test: register the instrumented 'gh' upstream disabled so the
  manager's async connect cannot bump the zero-hit counter under load.
- manager_oauth_test: retry the expire+scan step until it redials; a scan skips
  a Connecting client by design and the prior leg's reconnect may still be in
  flight.
@Dumbris
Dumbris enabled auto-merge (squash) October 6, 2026 05:13
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

📦 Build Artifacts

Workflow Run: View Run
Branch: fix/issues-w4-main-ci

Available Artifacts

  • archive-darwin-amd64 (31 MB)
  • archive-darwin-arm64 (28 MB)
  • archive-linux-amd64 (19 MB)
  • archive-linux-arm64 (17 MB)
  • archive-windows-amd64 (31 MB)
  • archive-windows-arm64 (27 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (27 MB)
  • installer-dmg-darwin-arm64 (24 MB)
  • smart-mcp-proxymcpproxy-goO47S8O.dockerbuild (0 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 37417474486 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@Dumbris
Dumbris merged commit a936ea5 into main Oct 6, 2026
43 checks passed
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants