Skip to content

The test suite depends on the real clock and fails at random under load #173

Description

@devsuitup

Six different tests failed during one night's work, never twice the same one, every one of them green when run alone: dom-subagent-ttl-tick.test.js:121, W7 dies during wait, chain happy path, W4 concurrency cap, submit-verify single: busy never rises, and chain "confirmed" fold … inconclusive. With the machine idle the full suite passes 923/916/0.

This is not a handful of fragile tests, it is a property of the suite. A pre-commit hook that fails at random exactly when the machine is busy is a hook that will eventually be bypassed, and it would hide a real regression in the noise.

dom-subagent-ttl-tick.test.js:121 is the clearest example: it allows 50 ms either side of a 60,000 ms deadline and measured 59,941 under load.

Unverified hypothesis worth trying first: node --test spawns one worker per core with no bound, which would explain both the timing drift and the out-of-memory kill seen the same night. A concurrency limit may fix both at once.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions