Repository navigation
Description
Implementation: FlyBot (ours) — PR follows within 24h. Do not pick up without a pickup-ok comment on this issue.
Written-by: FlyBot Lead
Claimed-by: FlyBot Lead
Claim-Id: 3d02d009bfbb4199b4aa3050df1e29b6
Branch: dev/3-timeline-sync-controls
Base: 9a48f5a
At: 2026-11-23T00:45:51Z
Bot: FlyBot Dev-3 (kept from its #3304 branch, which merged as a rewrite without these three cases)
What is missing
#3304 merged as 66a7e401 with Birfy's tests-only rewrite of our branch: three cases in plugins/timeline/test/store.test.js — a directory fsync refused with EPERM is tolerated, EINVAL is tolerated the same way, and a rotation still prunes to the cap while it is refused. The mechanism is fs.fsyncSync patched for the duration of the case through syncBuiltinESMExports, refusing only directory handles.
Three cases that were on our branch did not make it into that rewrite:
- a file
fsyncfailing withEIOstill fails the write; - a directory
fsyncfailing withEACCESstill fails the write; - a deferred trace (
retryLock) takes the lock and saves once the other writer leaves, with the directoryfsyncrefused.
Without 1 and 2, nothing in the suite fails if noDirectoryFlush (the EPERM/EINVAL set in plugins/timeline/src/store.js) is widened to swallow every directory error, or if the file fsync is put inside the same try. Verified by mutation on live main (9a48f5aa4bd49c8cae0d80fb4da3a74d02af0f99): with noDirectoryFlush = new Set(['EPERM', 'EINVAL', 'EACCES', 'EIO']) the timeline suite is still green; with the file fsyncSync also swallowed it is still green. Both should be red.
Without 3, the lock hand-over path that #3298 measured as never converging on Windows is only covered through the rotation case.
Expected
Three cases added in the same monkey-patch style the merged cases use (patch fs.fsyncSync per case through syncBuiltinESMExports, refuse only what the case needs), and each must be red under the corresponding mutation:
- file
EIO:flush() === false,stats().failing === true, one warning that carriesEIO, and the segment name is not left as saved; - directory
EACCES:flush() === false(the write fails), i.e. the tolerance does not cover it; - deferred lock: with
retryLock, a refused directoryfsyncmust not stop the second writer from adopting the lock and saving once, and the records must read back after reopen.
No product change. No existing case may be relaxed, and the merged three must stay as they are.
Reproduction (red first, by mutation)
On live main (9a48f5aa), node --test plugins/timeline/test/store.test.js → 22/22, and after each of these mutations it must be red at the new case that names the behaviour:
noDirectoryFlushwidened toEACCES/ all codes → the directoryEACCEScase red;- the file
fsyncSyncswallowed inside the sametry→ the fileEIOcase red; - the deferred-lock case itself is the red-first evidence for 3: on the pre-
#3300base (848bc314) the same case fails withfalse !== trueon the flush assertion, which is the reading our branch recorded.
Scope
plugins/timeline/test/store.test.jsonly;plugins/timeline/src/store.jsmust not change (the merged product behaviour is#3300's, which is inmain).- Risk T1 (tests). No UI face. No changelog fragment: no user-visible behaviour changes.
Dedup
Searched before opening: "directory fsync" (2 hits, both closed: #3301, #2631), noDirectoryFlush (0), timeline EPERM (3 hits, all closed: #3301, #3293, #3298). #3298/#3299/#3300 are the Windows suite-compat work and #3304 is the merged pin of the refusal; none of them covers a control that a widened tolerance or a swallowed file fsync is caught by. No open issue covers these three cases.
Activity
HugoXK commentedon Nov 23, 2026
Claim
Written-by: FlyBot Lead
Claimed-by: FlyBot Lead
Claim-Id: 3d02d009bfbb4199b4aa3050df1e29b6
Branch: dev/3-timeline-sync-controls
Base: 9a48f5a
At: 2026-11-23T00:45:53Z
Scope: three cases only in
plugins/timeline/test/store.test.js, in thesyncBuiltinESMExportsstyle the merged#3304cases use — a filefsyncEIOstill fails the write, a directoryfsyncEACCESstill fails it, and a deferredretryLocktrace saves once under a refused directoryfsync. No product change (plugins/timeline/src/store.jsuntouched), no relaxed existing case, no changelog fragment. Risk T1.timeline: pin that a widened directory-fsync tolerance and a swallowe…
HugoXK commentedon Nov 23, 2026
Release
Written-by: FlyBot Lead
Released: 3d02d009bfbb4199b4aa3050df1e29b6
Reason: stood down
At: 2026-11-23T14:38:55Z