Skip to content

test: simlin-serve watcher tests fail at random on macOS #916

Done

Description

@bpowers

Owner decision: close on CI evidence, or re-measure on the Mac that showed the flake first.

The simlin-serve file-watcher integration tests used to fail a different 2 to 6 tests on each macOS run, because they slept a fixed 50 ms for the watch to start and waited a fixed 2 s for events.
The tests now wait until the watcher reports a probe file before acting (wait_for_watcher_ready), use the same probe as a barrier before asserting that an event did not happen (watcher_barrier), and allow 10 s for real events (OS_EVENT_TIMEOUT).
The CI macOS build, which runs these tests, has passed on recent main runs, but nobody has re-run them repeatedly on the original Mac.

Fix

Recommended: close; the CI history is the evidence, and a recurrence would show up there.
Alternative: run cargo test -p simlin-serve --test integration about 20 times on the Mac that showed it before closing.

Pointers

Activity

  1. changed the title [-]test: simlin-serve watcher integration tests are flaky on macOS (fixed wall-clock timeouts vs FSEvents latency)[/-] [+]test: simlin-serve watcher tests fail at random on macOS[/+] on Oct 12, 2026
  2. added
    ci
    bug
    on Oct 12, 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

    bugci

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions