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
macOS: FSEvents reports a change twice; the second report re-arms a candidate's debounce #233
On macOS, FSEvents often reports a change to a file a second time, a moment later. The watcher takes the second report as a new change. Two visible effects so far:
A job can run twice for one change. Two services after the same job, one edit that both build: the second report re-arms one candidate's debounce, so it starts building about 240 ms after the other. By then the job's run for the first one has begun, and the job runs again for the second. Seen on the macos-14 runner, a_job_runs_once_for_two_candidates, run 39941117097 (seed ran 3 times, expected 2).
Possible fix: in crates/devstack-daemon/src/watch.rs, drop a report for a path whose metadata (mtime, size) has not changed since the last report for it. Or don't let a report re-arm a debounce that is already armed for the same path, and fire at the first report's deadline.
Done when:a_job_runs_once_for_two_candidates passes reliably on macos-14 (e.g. 10 runs in a row).
Activity
fix(candidate): a change reported after a restart began waits for it (#…
ci: TEMPORARY, lifecycle_services_only 5 times on macOS (#233)
ci: remove the temporary macOS repeat job (#233)
fix(watch): one change makes one deadline for every service it concer…
test: two flaky tests made reliable without weakening them (#260)