Skip to content

cua serve teardown budget (5 s) is not controllable; serve-cli/serve-lazy flake under load #145

Open

Description

@SSFSKIM

Found while making cua's timing tests event-driven for CI (PR #143), where these tests were deferred.

The only logged serve-cli / serve-lazy failures came from cua serve's own teardown budget (5 s). It ran out on a MacBook run at load 107–154 with the own REPL host. A test-only fix is impossible: serve() does not forward teardownBudgetMs, and serve-cli spawns the CLI, so a test cannot widen or control the budget.

  • On the hosted macOS gate, none failed in 10 full-suite runs at 2× induced load, so CI is green for now.
  • Options:
    • forward teardownBudgetMs through serve() and the CLI (an env var or flag), so tests can control it;
    • make teardown wait for the events it needs rather than a wall-clock budget.

Related: #123, #142.

Activity

  1. added
    status:ready-for-architect
    on Nov 1, 2026
  2. SSFSKIM commented on Nov 1, 2026

    @SSFSKIM
    OwnerAuthor

    [board] ready-for-architect: Board repair: filed outside the board scripts with no status label; placed in the design backlog for triage

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

    status:ready-for-architect

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions