Convert Runner CLI subprocess tests to in-process calls #486
Labels
No labels
P0
P1
P2
P3
bug
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#486
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
~56 tests (Runner::CliNextInstructionTest, CliSubagentStartTest, CliSubagentStopTest, GateCliTest) each fork a fresh ruby subprocess of the real binary via Open3.capture3 (tests/support/cli_next_instruction_helpers.rb:113, subagent_start_cli.rb:14, subagent_stop_cli.rb:33), ~55-60s of the 83s suite. Routing/payload logic does not need the process boundary.
Tasks
Acceptance criteria
suite time drops by roughly 40s; smoke subset still spawns the real binary.
Origin
Work started: converting Runner CLI subprocess tests to in-process calls (batch session 2026-08-23).
Resolution
Done: Converted the bulk of the Runner CLI subprocess tests to in-process calls via a new InProcessRunnerCli shim delegating to RoundCommands (no production changes needed); kept 3 black-box subprocess smoke tests per CLI; db adapter tests untouched.
Evidence: Commit
3871ecb: 8 test files, 215 insertions. Targeted runs green (18/14/14/9/6 runs, 0 failures). Full suite 1035 runs, 2692 assertions, 0 failures, wall time 51.9s vs ~83s baseline (~31s saved).Follow-ups: Dropped: converting the remaining Open3 users (cli_implementation_open_target_test.rb, gate_commands_test.rb) — residual wait is addressed by the parallelization ticket #488 in this same batch. Dropped: namespacing InProcessRunnerCli — matches existing flat support-class convention.