Flaky tests, reproduced · Go
nats-io/nats-server
A coding agent signed this repository up for fplus-dst from one prompt. It chose tests by their sources of non-determinism and, from a scan of CI's history, the tests CI saw fail and then pass. fplus-dst built each test as CI does and ran it in a deterministic simulator with timing faults. Reproduced: it failed here with CI's own error. Found by search: it failed here, and CI has no record of that failure. Nothing found: searched, and the test held up.
Reproduce this in your account
Paste one prompt into your coding agent, in a checkout of nats-io/nats-server. It reads this repository's runbook: the tests above, the commits they ran at and how to build the image, then makes them fail in your own account, with $50 of free credit.
Set up f+ DST for nats-io/nats-server from https://staging.extrafunctional-staging.fyi/dst/nats-io/nats-server.md
5 of 9
- 5 reproduced
- 4 nothing found
One square for each flaky test. Reproduced: it failed here the way CI saw it fail. Nothing found: no failure in the hours searched, which is not a pass; a search whose faults never reached the test proves nothing.
15.4 min
Fastest 85 s, slowest 42.4 min. One dot for each of the 4 runs with a time on record, on a log scale; the line is the median.
5 of 5
The same fingerprint on every replay of the failing schedule.
The kind of search that first made each one fail.
Flaky tests
1reproduced TestJWTAccountNATSResolverWrongCredsjwt_test.go:7377: require no error, but got: stat /tmp/TestJWTAccountNATSResolverWrongCreds2926843114/006/AC5DHMJB4SMRVSWSP6BMLCYO6TBGXPCO7JCVQR2DXVUZAM6XFKXPWMGG.jwt: no such file or directory 42.4 min stolen time ✓ bit-exactno fix yet –
The failing schedule
✓ bit-exact replay · fingerprint
15 steals of CPU time, placed by guest branch count, the schedule's own unit; taller is longer (log scale), the longest 196 ms.
In CI
intake
image
search
replay
shrink
report
2reproduced TestGatewayTLSMixedIPAndDNSgateway_test.go:689: Expected 1 outbound gateway(s), got 0 (ulimit -n too low?) 25.8 min locate ✓ bit-exactno fix yet –
The failing schedule
✓ bit-exact replay · fingerprint
16 steals of CPU time, placed by guest branch count, the schedule's own unit; taller is longer (log scale), the longest 753 ms.
In CI
intake
image
search
replay
shrink
3reproduced TestStressChainedSolicitWorksexact match route_discovery_test.go:253: Expecting 3 routes, got 2 – locate ✓ bit-exactno fix yet –
The failing schedule
✓ bit-exact replay · fingerprint
pause of workload/test.test for 20 ms, 1.5 s after the step started.
In CI
intake
image
baseline
search
replay
report
4reproduced TestJetStreamClusterDesyncAfterDiskResetDuringRolloutjetstream_cluster_2_test.go:9472: require no error, but got: [TEST] Expected 5 Replicas, got 4 4.9 min stolen time ✓ bit-exactno fix yet –
The failing schedule
✓ bit-exact replay · fingerprint
9 steals of CPU time, placed by guest branch count, the schedule's own unit; taller is longer (log scale), the longest 289 ms.
In CI
intake
image
search
replay
shrink
5reproduced TestJetStreamClusterLeafnodeSpokesjetstream_cluster_2_test.go:502: Expected a cluster peer count of 9, got 10 85 s stolen time ✓ bit-exactno fix yet –
The failing schedule
✓ bit-exact replay · fingerprint
6 steals of CPU time, placed by guest branch count, the schedule's own unit; taller is longer (log scale), the longest 799 ms.
In CI
intake
image
search
replay
shrink
6reproduced TestStressChainedSolicitWorksexact match route_discovery_test.go:253: Expecting 3 routes, got 2 – stolen time ✓ bit-exactno fix yet –
The same flaky test as row 3, run again by the batch; counted once.
The failing schedule
✓ bit-exact replay · fingerprint
7 steals of CPU time, placed by guest branch count, the schedule's own unit; taller is longer (log scale), the longest 404 ms.