Skip to content

Lifecycle endpoint identity test flakes under full parallel suite #240

Description

@bcdonadio

Observed: A fresh npm run test:ci intermittently fails test/daemon/coverage-core-lifecycle.test.ts > handles wrong PID metadata after endpoint identity checks: expected result.connected to be true, received false. The same file immediately passes 27/27 when rerun in isolation.

Expected: The mocked endpoint-identity test is deterministic under the full parallel test suite, and fresh coverage runs do not depend on concurrent process/port state.

Root cause: Not yet confirmed. The isolation pass suggests shared process, port, or daemon-state interference between parallel workers rather than the #81 storage changes.

Repro: Run npm run test:ci; if the race occurs, rerun npx vitest run test/daemon/coverage-core-lifecycle.test.ts --reporter=verbose and observe the isolated pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingflaky-testingTests that have race conditions or fail non-deterministicallyp2-mediumNext sprint, quality/completeness

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions