Repository navigation
test(app-server): widen the default test startup budget - #2231
Conversation
|
Marked ready for review. This is the test-only startup budget that unblocks the 8 |
Simon-He95
left a comment
There was a problem hiding this comment.
Reviewed at 65c225a0. Test-only; the product startup_timeout default stays 10 s. launch_inner raises the budget only when the caller left ServerConfig::default, and the deadline cases keep their explicit 1 s / 2 s / 500 ms bounds (transport_flow.rs:582, :690, :722, :750, :771), so process_startup_timeout_* still exercises the deadline. The agents::sessions case sets its own 30 s. CI is green at this head. LGTM.
zerob13
left a comment
There was a problem hiding this comment.
Approved at 65c225a00e2c54be043de592d52570639ca6c7c8.
The larger startup allowance applies only to test setup. The product default stays at 10 seconds, and the existing short, explicitly bounded deadline tests retain their own limits. Exact checkout CI passed Linux, selected macOS and ci-ok, including the affected existence, MCP and explicit deadline cases; Windows was not selected. This verifies the affected tests on that run, not the root cause of the earlier SQLite stall. Nonblocking: a future test explicitly exercising the product's exact 10-second default should bypass the helper's equality-based override.
Summary
Two CI failures reported startup timeouts in tests that do not test the startup deadline:
transport_flowtests (mcp_import::*,product_protocol::mcp_*) panicked inlaunch_withafter the default 10 sServerConfig::startup_timeout.agents::sessions::tests::exists_answers_loaded_unloaded_closed_and_deletedhit the same timeout.The default 10 s budget measures the runner when the whole suite is loaded.
transport_flow::launch_innernow raises the budget to 30 s only when the test left the default in place; tests that set 1 s, 2 s or 50 ms for deadline behavior keep their values. The oneagents::sessionscase gets the same 30 s test budget. The product default is unchanged.Fixes #2230. Part of #2217.
Design rule checklist
beforecallbacks: n/a — no Timeline writes.Documentation
Verification
transport_flow mcp_import::— 16 passed.transport_flow product_protocol::mcp_— 11 passed.agents::sessions::tests::exists_answers_loaded_unloaded_closed_and_deleted— passed.process_startup_timeout_names_the_rows_that_are_not_active— passed in 2.02 s, so the 2 s test still uses its own bound.cargo clippy --locked -p dim-app-server --tests -- -D warnings— passed.cargo fmt --all -- --check— passed.