Repository navigation
test(upstream): give the launch controls time for a slow shell - #1925
Merged
Merged
Conversation
TestRetire_LauncherControl_LaunchesWhenNotRetired failed on loaded CI runners (twice on #1923, once on main after it merged). Its launcher waited 500 ms for the URL and then killed the command; a shell that needed longer to start never touched the marker the test waits for. The controls now connect in the background with a 60 s budget, and the launcher control waits that long for the URL. They return as soon as the launch is seen, so a healthy run is as fast as before. With a shell delayed by 2 s the old wait fails and the new one passes.
Deploying mcpproxy-docs with
|
| Latest commit: |
ec7e8fe
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://16b5fd7d.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://test-launcher-control-flake.mcpproxy-docs.pages.dev |
Dumbris
enabled auto-merge (squash)
November 17, 2026 14:30
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 44100238088 --repo smart-mcp-proxy/mcpproxy-go
|
Dumbris
added a commit
that referenced
this pull request
Nov 17, 2026
…imeline retire_launch_admission_test.go takes main's fix (#1925) for the launcher control test; this branch's own fix for the same flake is dropped. Co-Authored-By: Claude Fable 5.2 <[email protected]>
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.
What failed
TestRetire_LauncherControl_LaunchesWhenNotRetired(internal/upstream) failed three times in one day on loaded runners: in "Unit Tests (ubuntu-latest)" and "Unit Tests (shuffle)" on #1923, and again onmainafter that PR merged. Each time: "Condition never satisfied", with sibling shell-spawning tests taking 12 s in the same log.Cause
The control's launcher waited 500 ms for its URL and then killed the command. A shell that needs longer than that to start is killed before it touches the marker file the test waits for. The connect itself had a 4 s limit.
Change (tests only)
-race).Checked
With the marker shell delayed by 2 s (
sleep 2; touch …), the old 500 ms wait fails with the same message as CI and the new fixture passes in 3.6 s.go test -race ./internal/upstream/passes; the four tests pass five times in a row.