make test retry masks real data races and timeouts
#101
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Makefile:35runsgo test ... || go test -v .... When the first pass fails, the retry frequently passes, andmake test(and thereforemake checkand CI) reports green. Real failures are being swallowed.Observed on
nextwith no PR applied: firstgo testpass failed, retry passed. Observed again while reviewing #96 atf24e33a:docker build --no-cache-filter=lint,builder .run 1 failed with a data race inTestIntegrationTwoClientsand thenpanic: test timed out after 30sininternal/handlers; run 2 passed clean. Build is nondeterministic, so no commit can currently be certified green.Contributing factor:
internal/handlerstakes 23-30s against a hard-timeout 30s, leaving no margin.Definition of done:
make testfails when any test fails. No||retry that can convert a red run into a green one.ircserverintegration tests are fixed (not skipped, not-racedisabled).internal/handlerstimeout margin is resolved, either by making the package faster or by a justified timeout that is not near the runtime.docker build --no-cache .runs pass onnext.