v4.0.0-rc2
Bugfix release focused on reliable SD-card imports — especially progressive
FTP uploads where files trickle in over time rather than landing all at once. 📦
🐛 Fixed
- 🔓 Export deadlock unblocked — the first imported day could write
SDCARD/STR.edfwithoutIdentification.json, after which every later
day refused to export (export identity differs from native STR) and CPAP
uploads stayed deferred forever. A missingIdentification.jsonis now
regenerated from the native device identity — the foreign-card veto still
applies to genuinely mismatched trees. - ⏳ Partial commits during progressive uploads — a session could commit
while sibling files were still on the wire, leaving permanent orphans.
Day folders now get directory-level quiescence: any new arrival holds the
whole group until the copy goes quiet. Works for FTP, manual copies, and
every other writer. 📁 - 🔍 Scan→commit race closed — the source directory stamp is re-verified
right before sessions commit; if it changed mid-scan, the unit is
re-queued instead of committing a subset.
✨ Improved
- 🚚 Incomplete uploads are no longer "failures" — torn/still-growing
EDFs now stage as in flight, and after ~1 h untouched report as
stalled — retained for retry in both cases, never quarantined. - 📊 Clearer staged accounting — the per-day staged line gains an
inflight=count, and partially-merged sessions now log
merged; remaining unverifiable source(s) keptso mid-merge leftovers
are distinguishable from truly undecided ones. - ⏲️ Quiescence window 15 s → 30 s — more settle headroom for
slow/manual copies.
🧪 Tests
- ✅ Host suite green: 37/37 —
edf_import_test859 checks,
edf_roundtrip_test1273 checks. Fixtures now age directories as well
as files to match the whole-tree-quiet semantics.
⚠️ Notes
- Contested day folders may pause ~30 s between evaluation passes —
deliberate settle time, not a hang. - No changes to the vendored FTP server.