Skip to content

test(cli): viewer mode test asserts an 8 s latency bound that fails under load #259

Closed

Description

@ElbertePlinio

Found while fixing #249.

packages/cli/test/commands.test.ts "applies auto/manual viewer mode with one-shot overrides" asserts Date.now() - automaticStartedAt < 8_000. This measures product latency, not a test timeout, so raising the test timeout does not help. Under CPU contention it can fail. Changing the bound would weaken the assertion.

  • Make the check independent of load, for example with a fake browser the test releases
  • Repeat-run evidence under load

Activity

  1. added
    bug
    on Oct 6, 2026
  2. ElbertePlinio commented on Oct 7, 2026

    @ElbertePlinio
    MemberAuthor

    Re-checked after the host RTTIME fix from #253. Four rounds of two concurrent full suites on main be2d00c did not reproduce this, and no test process was SIGKILLed. The issue describes a timing assumption in the test code, so it stays open. A starved-CPU run, as in the original report, is still the way to confirm the fix.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions