Skip to content

internal/syncer: TestACrashWhileDeletingTheLastFileLetsTheDeviceSyncOn timed out waiting for a scan in the race shard #282

Done

Description

@bketelsen

TestACrashWhileDeletingTheLastFileLetsTheDeviceSyncOn (internal/syncer) failed once in CI's race shard "Race shard (rest)", on a pull request that changes nothing in internal/syncer.

What was seen

  • Run 45517873296, attempt 1, 2026-11-25 UTC, on feat(nsgo): put the note's actions in the toolbar and the dialogs on the kit's parts #281's head d539141:

    --- 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.

What it was not

Not known

  • 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

  1. added
    bug
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions