pingqiuandClaude Opus 5.5 b78a01e239 test: start the weed cluster again on fresh ports when it never accepts a write
The harness checks each weed port pair free and releases it before weed
binds it, reserving it only inside the test process. On a runner host shared
with another job, a port can be taken in between; the master then cannot
reach the volume server's gRPC port and the cluster never accepts a write,
failing the test as an environment flake.

A start whose probe never accepts a write is now stopped (each process's log
tail logged) and the cluster is started again on fresh ports in a
subdirectory of the same root, up to 3 starts. A cluster with a
fault-injection front keeps one start.

TestWeedStartAgainOnFreshPortsWhenAPortIsTaken holds the first start's
volume gRPC port with a plain HTTP server (as another job's listener): the
first start fails as the CI runs did, and the second accepts a write. With
one start only, the test fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:36:28 -08:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%