You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
internal/syncer: TestACrashWhileDeletingTheLastFileLetsTheDeviceSyncOn timed out waiting for a scan in the race shard #282
TestACrashWhileDeletingTheLastFileLetsTheDeviceSyncOn (internal/syncer) failed once in CI's race shard "Race shard (rest)", on a pull request that changes nothing in internal/syncer.
--- FAIL: TestACrashWhileDeletingTheLastFileLetsTheDeviceSyncOn (60.84s)
crashapply_test.go:439: the vault's scan did not finish
FAIL github.com/frostyard/frostnotes/internal/syncer 126.798s
Line 439 is a.rescan(), after the device's vault and its index are both empty. rescan (pairs_test.go) calls vault.reindex and then waitScanned (sync_test.go), which waits up to 1 minute for the vault's status, or a vault.scan event, to be idle with a scan time. The test ran 60.84 s, so nearly all of it was that wait.
The command was go test -race -timeout 25m over every package but internal/synctest. No data race was reported in the log.
The cause. Nothing here says whether the scan never started, never ended, or ended without the status or the event the helper waits for.
How often it happens: this is 1 failure. The failed jobs were run again; the result of that attempt was not in when this was written.
What might help
On the helper's timeout, log the vault's last status (vault.status) and the vault.scan events it received, so the next failure says which of the three it was.
Activity