Skip to content

watch.test.ts: chokidar signal-watch test flakes under shard load #362

Description

@elkaix

packages/agent-core-v2/src/human/test/utils/watch.test.ts > watch signal mode > uses chokidar for signal watches on platforms without native recursive watch (line 349) failed in 1 of 3 full-suite runs on main (f1fbb9c19). Isolated runs pass (20 pass, 1 skip).

This is the same class of load flake seen in other watch tests since 2026-09: they wait on file-system watch timing, which slips under shard load.

Possible fixes: wait for chokidar's ready event and then poll for the signal with a deadline instead of a fixed delay, or run the watch suites serially.

Quarantined for loaded runs until 2026-11-02. Fix or delete the test by then.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions