Flaky test: CryptSaverTests.closedFilesKeepNothingAfterTheirWrite #240

open cmc opened this on 2026-11-26 15:53 UTC · milestone Backlog

Discussion

cmc 2026-11-26 15:53 UTC

CryptSaverTests.closedFilesKeepNothingAfterTheirWrite (OrgDocument) failed once in five full swift test runs on 2026-11-26, on a branch that doesn't touch OrgDocument. Find the timing dependence and make it deterministic.

Platforms: tests only.

cmc 2026-11-27 04:37 UTC

On main at ab61bf0 it fails 1 run in 3 when run alone, at CryptSaverTests.swift:54 (save(&doc, to: url) == .saved), so the save itself sometimes returns something else, not only the later keepsAnything check.

Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form