Files
uberbringer/internal/app
57_WolveandClaude Opus 5.5 f0b5bf020e
Security / Vulnerability check (push) Successful in 46s
Test / Lint and test (push) Successful in 2m0s
Skip state-file flushes in the daemon's subscription test
TestServeWithSubscription failed on CI: the message did not print
within 10 seconds. On a first start the open event sets the cursor, and
the subscription writes its state, flushing the file and its directory
to disk, before it reads the next line. The test's fake server sends
open and the message together, so the print waited behind two real
flushes, and on the CI runner, which is slow to flush, it did not come
in time. A flush made to take 11 seconds fails the test the same way,
at the same line.

run and newSubscribers now take the flush. The daemon passes
(*os.File).Sync, as before, and its tests pass one that does nothing,
as the ntfy package's tests do; TestSaveStateSyncs checks the flush
itself. Writing the first cursor at once stays: a saved cursor of 0
means a first start, which replays nothing.

On leil-test-1, on an ext4 file system that another process was
filling, a 4 KiB write with fsync took up to 0.5 seconds, and the old
test's time to print rose from 20 to 160 milliseconds with it. The new
test's run time did not change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:13:11 -06:00
..