extrafunctional

Flaky tests, reproduced · Rust

ZcashFoundation/zebra

Each flaky test here was run in a deterministic simulator with timing faults until it failed the way CI saw it fail. Open one for its schedule, its replay and its fix check.

GitHub

Reproduce this in your account

Paste one prompt into your coding agent, in a checkout of ZcashFoundation/zebra. 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 ZcashFoundation/zebra from https://staging.extrafunctional-staging.fyi/dst/ZcashFoundation/zebra.md

Flaky tests reproduced

14 of 15

  • 14 reproduced
  • 1 not reproduced

One square for each flaky test. Reproduced: it failed here the way CI saw it fail.

Median time to reproduce

4 min

10 s1 min10 min1 h

Fastest 45 s, slowest 51 min. One dot for each of the 13 runs with a time on record, on a log scale; the line is the median.

CI flakes, 30 days

85 proved

Failed, then passed at the same commit: 11 tests in GitHub Actions, Oct 23 to Nov 22. A bar for each of the 6 on this page.

Reached each stage
intake15image15baseline15search15replay14fix check14report14
Replays bit-exact

14 of 14

The same fingerprint on every replay of the failing schedule.

Fix checks

14 fixes checked

14 confirmed, 0 caught still failing

  • 14 confirmed
Found by
locate11pause2stolen time1

The kind of search that first made each one fail.

Flaky tests

Status
Found by
From
15 of 15
Test, and what CI said
Flaky in CI, 2026-11-08 to 2026-11-22Six live flakes from 2,988 GitHub Actions job logs; the product run, with no hand input.
1reproduced side_fork_child_authenticates_and_remembers_rejectionthe replayed side-fork body authenticates again (mining_rejection.rs:485), CI's message 45 s locate ✓ bit-exact✓ fix passes 2×in CI, 30 days

The failing schedule

✓ bit-exact replay · fingerprint

0230 M guest branches

2 steals of CPU time, placed by guest branch count, the schedule's own unit; taller is longer (log scale), the longest 250 ms.

In CI

Failed, then passed at the same commit, 2 times on 2 commits: first Nov 17, last Nov 17. GitHub Actions, Oct 23 to Nov 22.

intake

CI's own messagethe replayed side-fork body authenticates again (mining_rejection.rs:485), CI's message

image

test (pre → fix commit, on next)zebra-state side_fork_child_authenticates_and_remembers_rejection (863f915e7 → 573fc2f1c, #12509)

search

product runaimed search
resultreproduced
wall to first failure45 s
seeds to first failure10

replay

failing schedulestx=219629037:250000,221056548:250000
replays2/2 e988d2c87a530726

fix check

the fix, same schedulefix OK
2reproduced ordinary_and_mined_rejections_suppress_mining_replayassertion left == right failed at mining_rejections.rs:108 (#12535: "0 != 1 at line 108") 76 s locate ✓ bit-exact✓ fix passes 4×in CI, 30 days

The failing schedule

✓ bit-exact replay · fingerprint

01.3 s

pause of workload for 1 ms, 1.3 s after the step started.

In CI

Failed, then passed at the same commit, 4 times on 3 commits: first Nov 18, last Nov 18. GitHub Actions, Oct 23 to Nov 22.

intake

CI's own messageassertion left == right failed at mining_rejections.rs:108 (#12535: "0 != 1 at line 108")

image

test (pre → fix commit, on next)zebra-consensus ordinary_and_mined_rejections_suppress_mining_replay (15a6b7889 → e4faa114a, #12535)
reproduction: pre-fix commit15a6b7889
reproduction: fix commite4faa114a
reproduction: fplus-dstf+ DST

baseline

reproduction: baseline (no faults)pre OK 1949acaaa7f1e0b4 ; fix OK dc100d166a00ed80

search

product runaimed search
resultreproduced
wall to first failure76 s
seeds to first failure14
reproduction: resultreproduced by blind stolen time, seed 4
reproduction: wall time to first failure109 s (images were ready after 45 min)
reproduction: the test's own errorMessage: assertion left == right failed

replay

failing scheduleP=workload@0~1281:1 (a 1 ms whole-workload pause), mining_rejections.rs:108
replays2/2 273ccceacfcdad4c
reproduction: schedulestx=62992120:262160,83842479:1783,135114449:177597,149265626:21867,152233392:65045,284237273:13288,298181456:2257,305885928:604191,307645584:2377,315421088:5860,451886983:13257 | run
reproduction: replays on preVIOLATION 5cacbf5db7712c6b ; VIOLATION 5cacbf5db7712c6b

fix check

the fix, same schedulefix OK
reproduction: same schedule on fixOK 93f32e96d7e3bdfb
bisect (find the fix): resulte4faa114a12ec213831b7703574fb9041a5379cf 2026-11-18 test(consensus): wait for early mining admission response (#12535)
bisect (find the fix): range15a6b7889..origin/next, 4 candidates (first parent)
bisect (find the fix): confirmationconfirmed: a 20-min search found no failure
bisect (find the fix): probes3 commits built and run
bisect (find the fix): wall29 min
bisect (find the break): result847f91b033b0771922844d3dca82f37d7422d3b1 2026-11-17 perf!: merge the performance stack (#11687 to #12185) (#12507)
bisect (find the break): rangee68ffe342^..15a6b7889, 3 candidates (first parent)
bisect (find the break): confirmationnot checked
bisect (find the break): probes4 commits built and run
bisect (find the break): wall8 min
3reproduced compact_cf_range_drops_deleted_entriesthe entries and their deletion markers are on disk (disk_db/tests.rs:557), CI's message 3.3 min locate ✓ bit-exact✓ fix passes 3×in CI, 30 days

The failing schedule

✓ bit-exact replay · fingerprint

0711 ms

pause of workload/service::finali for 20 ms, 711 ms after the step started.

In CI

Failed, then passed at the same commit, 3 times on 2 commits: first Nov 18, last Nov 18. GitHub Actions, Oct 23 to Nov 22.

intake

CI's own messagethe entries and their deletion markers are on disk (disk_db/tests.rs:557), CI's message

image

test (pre → fix commit, on next)zebra-state compact_cf_range_drops_deleted_entries (05c50f768 → 15a6b7889, #12536)

search

product runaimed search
resultreproduced
wall to first failure195 s
seeds to first failure98 (+16 name probes)

replay

failing scheduleP=workload/service::finali@0~711:20
replays2/2 32f5ed5892786e9a

fix check

the fix, same schedulefix OK
4reproduced getblocktemplate_precomputedgetblocktemplate should answer after a chain tip change: Elapsed(()) (vectors.rs:4237), CI's message 6.3 min locate ✓ bit-exact✓ fix passes 9×in CI, 30 days

The failing schedule

✓ bit-exact replay · fingerprint

0390 M guest branches

4 steals of CPU time, placed by guest branch count, the schedule's own unit; taller is longer (log scale), the longest 5 ms.

In CI

Failed, then passed at the same commit, 9 times on 9 commits: first Nov 4, last Nov 18. GitHub Actions, Oct 23 to Nov 22.

intake

CI's own messagegetblocktemplate should answer after a chain tip change: Elapsed(()) (vectors.rs:4237), CI's message
reproduction: CI's failurehttps://github.com/ZcashFoundation/zebra/actions/runs/41909185556/job/126851961246
reproduction: same failure as CImatches CI matches the CI error

image

test (pre → fix commit, on next)zebra-rpc getblocktemplate_precomputed (3805088d4 → 863f915e7, #12509)
reproduction: pre-fix commitf7d8ad50fcf934f865e8ed48da25964c323c7c15
reproduction: fplus-dstf+ DST

baseline

reproduction: baseline (no faults)pre OK ec25ee33b97e0fdb

search

product runaimed search
resultreproduced
wall to first failure6.3 min
seeds to first failure224
reproduction: resultreproduced by aimed search
reproduction: wall time to first failure220 s (images were ready after 30 min)
reproduction: the test's own errorgetblocktemplate should answer after a chain tip change: Elapsed(()) at zebra-rpc/src/methods/tests/vectors.rs:3762

replay

failing schedulestx=373585167:5000,374048791:5000,374512415:5000,374976039:5000 (4 x 5 ms)
replays2/2 0193a0fb20a5786a (a second aimed search run got the same seed and fp)
reproduction: schedule| run P=workload/sync@0~1478:10
reproduction: replays on preVIOLATION 3ddbebfbcf519150 ; VIOLATION 3ddbebfbcf519150

fix check

the fix, same schedulefix OK
5reproduced default_nodes_use_compact_blocks_and_disabled_peers_receive_full_blocksmempool did not reach the expected transaction set (the #12513 mechanism: the tx never reached node A's mempool) 51 min stolen time ✓ bit-exact✓ fix passes 5×in CI, 30 days

The failing schedule

✓ bit-exact replay · fingerprint

07459 M guest branches

18 steals of CPU time, placed by guest branch count, the schedule's own unit; taller is longer (log scale), the longest 705 ms.

In CI

Failed, then passed at the same commit, 5 times on 5 commits: first Nov 9, last Nov 22. GitHub Actions, Oct 23 to Nov 22.

intake

CI's own messagemempool did not reach the expected transaction set (the #12513 mechanism: the tx never reached node A's mempool)

image

test (pre → fix commit, on next)zebrad compact_relay::default_nodes_use_compact_blocks_and_disabled_peers_receive_full_blocks (5977201d6 → 4ce7a7e7c, #12513; 3 zebrad, Regtest)
reproduction: pre-fix commit5977201d6
reproduction: fix commit4ce7a7e7c
reproduction: fplus-dstf+ DST

baseline

reproduction: baseline (no faults)pre OK 57ddfb50f585310a ; fix OK 098caf644fcb4d82

search

product runaimed search 0/246 (interrupted) and 0/111; blind stolen time beside it
resultreproduced by blind stolen time
wall to first failure51 min
seeds to first failure128 (blind)
reproduction: resultreproduced by blind stolen time, seed 77
reproduction: wall time to first failure6437 s (images were ready after 2 min)
reproduction: the test's own error0: mempool did not reach the expected transaction set: {"a44c73bf699f788a33b85a208ec43bfb70f7a1aab2b03511bb1d9765095d5d2f"}

replay

replays2/2
reproduction: schedulestx=487990094:54351,1544545395:136916,1643065529:705109,1979049648:567268,2696650060:29712,3145277361:134094,3268004956:4279,4189060746:142637,4864633783:66958,5383492855:2233,6070565926:72440,6255973326:102151,6326639951:508779,6431709289:478402,6793693266:60465,6859582946:2663,6911096312:12529,7172526503:497552 | run
reproduction: replays on preVIOLATION 93e6ae16c7e77a3c ; VIOLATION 93e6ae16c7e77a3c

fix check

the fix, same schedulefix OK
reproduction: same schedule on fixOK e12c8ff170481481
6not reproduced early_relay_unknown_and_non_tip_parents_do_not_reserve_publication – – – 8×in CI, 30 days

The failing schedule

In CI

Failed, then passed at the same commit, 8 times on 6 commits: first Nov 17, last Nov 17. GitHub Actions, Oct 23 to Nov 22.

image

test (pre → fix commit, on next)zebra-consensus early_relay_unknown_and_non_tip_parents_do_not_reserve_publication, approved target = next head 50e6bd1d4 (no fix known)

search

product runaimed search, stopped at 175 schedules
resultnot reproduced (most likely fixed on next)
Known flakes from Zebra's issues and fix PRsEach made to fail on demand before its fix, then the fix run on the same schedules.
7reproduced test_rpc_response_datatimeout while waiting for a request 26 min locate ✓ bit-exact✓ fix passes none seen

The failing schedule

✓ bit-exact replay

In CI

No proved flake of this test in GitHub Actions, Oct 23 to Nov 22.

intake

CI symptomtimeout while waiting for a request
before this workqueue pause families: 4 in 22,343 runs (replay on pre 4/4, fix 4/4 OK); notes said "not reproduced"

image

test (fix)zebra-rpc methods::tests::snapshot::test_rpc_response_data (#10634, d5ccbbd4cb → 00c8efc548)

search

mechanism that reproduces itstolen time, dense: 10-30 steals of 0.3-0.9 s over the run phase
pre-fix fails8/60 (13%)
aimed search given only the image, 2 workers: first failure26 min

replay

replays (same fp)8/8 (+ seed 108 a 4th time via the queue script)

fix check

fixed, same schedules0/60

report

cause class300 ms mock deadline vs CPU starvation
8reproduced crawler_peer_limit_one_connect_ok_then_drop 60 s locate ✓ bit-exact✓ fix passes none seen

The failing schedule

✓ bit-exact replay

In CI

No proved flake of this test in GitHub Actions, Oct 23 to Nov 22.

intake

before this work2/40 at epoch 8; queue c1v2 0 in 103,256 runs

image

test (fix)zebra-network peer_set::initialize::tests::vectors::crawler_peer_limit_one_connect_ok_then_drop (#11501, bcd0ab2da → 501f00ec6)

search

mechanism that reproduces itstolen time: 10-30 steals of 0.1-3 ms over all 185 M branches, or 3-12 over the first 60 M
pre-fix fails8/120 (7%)
aimed search given only the image, 2 workers: first failure1.0 min

replay

replays (same fp)8/8

fix check

fixed, same schedules0/120

report

cause classtimer vs work on one thread (sub-ms)
9reproduced non_blocking_logger 90 s locate ✓ bit-exact✓ fix passes none seen

The failing schedule

✓ bit-exact replay · fingerprint

0300 ms

pause of workload/tracing-appende for 300 ms, 300 ms after the step started.

In CI

No proved flake of this test in GitHub Actions, Oct 23 to Nov 22.

intake

before this worknever run in a VM: zebrad on Mainnet blocks in network init without DNS (needed fplus-dst-seeders.yaml)

image

test (fix)zebrad unit::config::non_blocking_logger (#11471, f84277f28a → bcd0ab2da)

search

mechanism that reproduces itthread pause of the zebrad log writer: P=workload/tracing-appende@0~300:300 (also @0~260:300)
pre-fix fails2 of 22 grid points; fails every replay
aimed search given only the image, 2 workers: first failure1.5 min

replay

replays (same fp)3/3 (643a1cddee8c5f73)

fix check

fixed, same schedulesfix commit: 260 OK, 300 fails differently (AddrInUse, the #11961 port race, 2/2 3115ff28b8cb3f1a); main 720141ff8: both OK

report

cause classlossy logger drops the line the test waits for
10reproduced trusted_chain_sync_handles_forks_correctly 16.5 min locate ✓ bit-exact✓ fix passes none seen

The failing schedule

✓ bit-exact replay

In CI

No proved flake of this test in GitHub Actions, Oct 23 to Nov 22.

intake

before this workpauses only (queue 202 in 66,353; zebra-flakes 2/120 blind)

image

test (fix)zebrad e2e::trusted_chain::trusted_chain_sync_handles_forks_correctly (open, #[ignore]; our test fix TIP_CHANGE_TIMEOUT 1 s → 10 s)

search

mechanism that reproduces itstolen time: 2-6 steals of 0.5-1.5 s (o2b) or 5-20 of 0.5-2 s (o2a) over 650 M branches
pre-fix fails4/40 (o2b), 16/40 (o2a)
aimed search given only the image, 2 workers: first failure16.5 min

replay

replays (same fp)3/3 tried

fix check

fixed, same scheduleso2b 0/40; o2a 38/38 counted (2 excluded: a different error from too much total steal, see section)

report

cause class1 s tip-change deadline vs a stalled machine
11reproduced spawn_notify_command_runs_shell_with_substituted_hash 20 min locate ✓ bit-exact✓ fix passes none seen

The failing schedule

✓ bit-exact replay

In CI

No proved flake of this test in GitHub Actions, Oct 23 to Nov 22.

intake

before this worknever reproduced ("under load" only, #11861)

image

test (fix)zebrad components::notify::tests::spawn_notify_command_runs_shell_with_substituted_hash (#11865, a5e7ea8d54 → 9358963540)

search

mechanism that reproduces itstolen time aimed at the test: locate the test's branch range with single 1 s steals, then a comb of 32 steals of 30 ms, 16,000 branches apart, offset 500·r
pre-fix fails6/32 comb offsets (r = 9-14)
aimed search given only the image, 2 workers: first failure20 min

replay

replays (same fp)3/3

fix check

fixed, same schedules0/32 (the same 32 schedules)

report

cause classthe test reads the file between sh's open (>) and printf's write
12reproduced sync_one_checkpoint_mainnettest child process deadline elapsed 12.4 min pause ✓ bit-exact✓ fix passes none seen

The failing schedule

✓ bit-exact replay · fingerprint

01.3 s

pause of proc/test for 10 s, 1.3 s after the step started.

In CI

No proved flake of this test in GitHub Actions, Oct 23 to Nov 22.

intake

CI symptomtest child process deadline elapsed
before this workqueue never ran it; stolen time 0/60, thread pauses 0

image

test (fix)zebrad integration::sync::sync_one_checkpoint_mainnet (#11807, b2fd4ce06b → 4362d056d5; CI still retries it)
reproduction: pre-fix commitb2fd4ce06b
reproduction: fix commit4362d056d5
reproduction: fplus-dstf+ DST

baseline

reproduction: baseline (no faults)pre OK fef5a937dbba8a46 ; fix OK 2c420d7d6555b8f5

search

mechanism that reproduces ittarget-side stop of the test process (its GenesisPeer) for ≥ 6 s at its handshake: J=0.1400.20000 (knob J extended: n = 0 is the test process)
pre-fix fails4/4 grid points 1360-1480 ms, durations 6-20 s all fail
reproduction: resultreproduced by per-process pause
reproduction: wall time to first failure742 s (images were ready after 1 min)
reproduction: the test's own error0: test child process deadline elapsed

replay

replays (same fp)3/3 (d3463d6310f052fc)
reproduction: schedule| run P=proc/test@0~1315:10000
reproduction: replays on preVIOLATION b4e0fa50c8d47f8d ; VIOLATION b4e0fa50c8d47f8d

fix check

fixed, same schedules4/4 OK (the #11807 redial, 157 s)
reproduction: same schedule on fixOK ecb9149032ab2eca

report

cause classthe only startup handshake to the in-process GenesisPeer times out and is not redialled in time
13reproduced restart_stop_at_height – pause ✓ bit-exact✓ fix passes none seen

The failing schedule

✓ bit-exact replay · fingerprint

In CI

No proved flake of this test in GitHub Actions, Oct 23 to Nov 22.

intake

before this workas row 12

image

test (fix)zebrad integration::sync::restart_stop_at_height (same fix)

search

mechanism that reproduces itsame J=0.<1360..1480>.20000
pre-fix fails4/4

replay

replays (same fp)2/2 (c80b3170d7e88063)

fix check

fixed, same schedules4/4 OK (160 s)

report

cause classsame, first phase
14reproduced rate_limiting_drops_burstsrequests should be dropped past threshold 4 min locate ✓ bit-exact✓ fix passes none seen

The failing schedule

✓ bit-exact replay

In CI

No proved flake of this test in GitHub Actions, Oct 23 to Nov 22.

intake

CI symptomrequests should be dropped past threshold
before this workupstream: "not reproduced"; fixed preventively with an injected clock

image

test (fix)zebrad components::health::tests::rate_limiting_drops_bursts (#11966, 24e160ae6e → 6a3c337041)

search

mechanism that reproduces itstolen time over the test's burst (390-650 M branches): one 5.5 s steal, or 20 steals of 0.3 s
pre-fix fails12/13 single, 6/6 dense
aimed search given only the image, 2 workers: first failure4.0 min

replay

replays (same fp)2/2

fix check

fixed, same schedules0/13, 0/6

report

cause class10,000 requests must fit one 5 s real-time window
15reproduced eviction_list_time_mixed 2 min locate ✓ bit-exact✓ fix passes none seen

The failing schedule

✓ bit-exact replay · fingerprint

In CI

No proved flake of this test in GitHub Actions, Oct 23 to Nov 22.

intake

before this workupstream: "not reproduced"

image

test (fix)zebrad components::mempool::storage::tests::prop::eviction_list_time_mixed (same fix)

search

mechanism that reproduces itcomb of 300 ms steals over 370-402 M (32 runs x 32 steals)
pre-fix fails1/32
aimed search given only the image, 2 workers: first failure2.0 min

replay

replays (same fp)2/2 (ad36a9a565b8a748)

fix check

fixed, same schedules0/32

report

cause class250/500 ms real sleeps around inserts

In our own words

catalogue16 Zebra flakes fail on demand, each with the test's own (upstream or CI) message, each replaying to one fingerprint
live hit rateLive hit rate: 5 of 6 within 4 h, in all three passes
time to first failurethird pass, the product's fplus-dst explore aimed search: 45 s-6.3 min for the four sub-second tests, 51 min for the long #3 by blind stolen time beside it