Skip to content

test(upstream): give the launch controls time for a slow shell - #1925

Merged
Dumbris merged 1 commit into
mainfrom
test-launcher-control-flake
Nov 17, 2026
Merged

Dumbris merged 1 commit into
mainfrom
test-launcher-control-flake

Conversation

@Dumbris

@Dumbris Dumbris commented Nov 17, 2026

Copy link
Copy Markdown
Member

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 on main after 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)

  • The two controls (launcher, Docker) connect in the background with a 60 s budget; the connect is cancelled and awaited when the test ends.
  • The launcher control waits the whole budget for the URL, so a slow shell is not killed early.
  • Both return as soon as the launch is seen, so a healthy run takes as long as before (package: 33 s under -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.

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.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

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

View logs

@Dumbris
Dumbris enabled auto-merge (squash) November 17, 2026 14:30
@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!

@github-actions

Copy link
Copy Markdown
Contributor

📦 Build Artifacts

Workflow Run: View Run
Branch: test-launcher-control-flake

Available Artifacts

  • archive-darwin-amd64 (33 MB)
  • archive-darwin-arm64 (29 MB)
  • archive-linux-amd64 (20 MB)
  • archive-linux-arm64 (18 MB)
  • archive-windows-amd64 (32 MB)
  • archive-windows-arm64 (29 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (28 MB)
  • installer-dmg-darwin-arm64 (26 MB)
  • smart-mcp-proxymcpproxy-goUXAEES.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 44100238088 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@Dumbris
Dumbris merged commit 5a9f50a into main Nov 17, 2026
93 of 102 checks passed
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]>
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