Second flake, CI run 2 on main at e241f1ef9 (internalconsole@23): --- FAIL: TestPDFDoorEngineDown (0.33s) / `apipdftest.go:310: status 404 body "404 page not found\n": invalid character 'p' after top-level value`. Run 3 on the same commit passed.
CI flakes on main at e241f1ef9: TestBurstSingleKeyFloodBounded and TestPDFDoorEngineDown Issue open
Main's CI at e241f1ef9 ("Hub reaches the console through a root-created socket", #1385) failed twice in the gate step and passed on the third run, with no code change between runs. Each failure was a different test, and neither test touches e241f1ef9's change. v0.43.4 was cut from the third, passing run.
1. TestBurstSingleKeyFloodBounded (internal/edge)
First run. From the gate log:
--- FAIL: TestBurstSingleKeyFloodBounded (0.62s)
burst_test.go:394: notes during a cool-down: 25 allocations, 0 counters
FAIL github.com/carlosframework/platform/internal/edge 193.949s
amadan: step gate failed: exit status 2The test measures testing.AllocsPerRun(1, ...) over 1,000,000 note calls inside a cool-down and allows at most 10 (internal/edge/burst_test.go:388-395, from b7802fd84, #491). The counters assertion held (0), so only the allocation count went over. With AllocsPerRun(1, ...) one measured pass carries any allocation the runtime makes during it, so a loaded runner can push it over 10.
It passed 30 out of 30 in isolation at e241f1ef9 (go test -count=30 -run 'TestBurstSingleKeyFloodBounded$' ./internal/edge/, go1.26.10 linux/arm64 in a container). The internal/edge tests don't compile on darwin (readerConn is Linux-only), so it can't be reproduced on a Mac.
2. TestPDFDoorEngineDown (internal/console)
Second run. internal/console/apipdf_test.go:305, from 306f4051e (PDF service). This session only had the first run's log, so the failure lines for this one still need adding from the second run's gate log.
Ask
Make both tests robust to a loaded runner, or quarantine them, so a release isn't held on a rerun. For the burst test, one option is to measure over several runs and test the average, or to leave allocation checks out of the default gate.
Seen again on branch rootfs-etc-hosts-1349 at 5ac1033d (2026-11-25 15:33Z): TestBurstSingleKeyFloodBounded, burst_test.go:379 "1,000,000 notes allocated 21 times". The branch only touches internal/rootfsimage; the test passes 5/5 locally. Re-running CI.
Third flake: TestReplicaConsoleSocketIgnoresRouteRows (internal/edge, from #1385) failed once with a broken pipe on a loaded CI machine at public-share tip 2886cfa67; the rerun passed. Likely the test's fake listener closing before the client's write; worth a look.