Skip to content

test(app-server): give test assembly a load-tolerant startup budget #2230

Done

Description

@eric8810

Part of #2217.

Context

Two current CI failures are unrelated to the tests they report:

  • PR test(branch-flow): stop racing the wait timeout #2229 Linux verify: 8 transport_flow tests (mcp_import::*, product_protocol::mcp_*) panic at transport_flow.rs:405 because launch_with hits the default 10 s ServerConfig::startup_timeout while rows are still Pending.
  • The same run's agents::sessions::tests::exists_answers_loaded_unloaded_closed_and_deleted hits the same startup timeout at sessions/tests.rs:169.

These tests are not testing the startup deadline; the deadline has dedicated tests that set 1–2 s explicitly. Under whole-suite load, assembly can take longer than 10 s, so the default budget measures the runner.

Scope

  • In transport_flow::launch_inner, raise the startup budget to 30 s only when the test left the default 10 s in place. Tests that set 1 s / 2 s / 50 ms for deadline behavior keep their values.
  • In agents::sessions::tests::exists_answers_loaded_unloaded_closed_and_deleted, set the same 30 s test budget.
  • Do not change the product default.

Acceptance

  • The mcp_import::* and product_protocol::mcp_* tests pass repeatedly under ordinary load.
  • exists_answers_loaded_unloaded_closed_and_deleted passes.
  • Existing short-timeout tests still fail at their own bounds, proving the override is conditional.
  • No production default changes.

Activity

  1. self-assigned this
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions