Skip to content

Watcher (Linux): a file written right after its new folder is missed now and then #587

Closed

Description

@7schmiede

edits_become_candidates (crates/devstack/tests/daemon_lifecycle.rs, step 4) failed twice on the Linux integration job on 2026-11-18 (main at 82ff69b, and the PR chore: 0.50.0), after passing on main before:

  • the test makes src/Api/Schema/ and writes v2.txt into it at once;
  • the daemon's log shows no event after that (no build, no candidate) until the 120 s wait runs out: the schema change is held, candidate: null.

inotify watches a new directory only once it is reported; LIST_NEW_DIRS (crates/devstack-daemon/src/watch.rs) lists it then for what it holds already. A file written between the listing and the watch being added is neither listed nor reported. None of the commits since the last green run touches the watcher.

To do: reproduce (a loop creating a folder and a file in it), then close the window, e.g. list the new directory again once its watch is in place, or after a short settle; and a test that fails without it.

Found during the release of 0.50.0; its failed job was run again per docs/releasing.md.

Activity

  1. self-assigned this
    on Nov 20, 2026
  2. added a commit that references this issue on Nov 20, 2026
    5cd314c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions