Skip to content

test(cli): stabilize TUI startup render assertions in Linux CI #1008

Closed

Description

@Astro-Han

What happened

A TUI runner test added during PR #1006 asserted the initial status line through the shared waitFor helper. The test passed locally both in isolation and as part of the complete CLI suite, but failed twice in Linux CI at the helper's fixed 250 ms deadline.

The failures completed at 251.76 ms and 254.53 ms. The other 351 CLI tests passed, including the synchronous status-line contract tests. Removing this timing-dependent runner assertion made the complete CI suite pass.

TUI startup assertions should synchronize on an observable render completion signal instead of depending on a short wall-clock deadline.

How to reproduce

  1. At commit 0a98719c, run the complete test:dist suite in the GitHub Actions Linux environment.
  2. Observe shows the default thinking status for Ollama Cloud GLM-5.2.
  3. The assertion times out in waitFor after 250 ms.
  4. Rerun the failed job and observe the same timeout.

The same test passes locally in approximately 6 ms, including within the complete CLI workspace suite.

Environment

  • Maka commit: 0a98719c
  • OS: GitHub Actions ubuntu-latest
  • Surface: TUI/CLI test harness
  • Node.js: 22

Logs, screenshots, or additional context

A suitable fix should add deterministic render synchronization to the TUI test harness or use a synchronous observable seam. Merely increasing the shared timeout would retain the underlying timing dependency.

Activity

  1. added
    bug
    on Jul 15, 2026
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