os-sdlc test suite leaves ruby-lsp daemons running after full-suite runs #651
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
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
rule-proposal
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#651
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?
lsp-probe test daemon leaks when an in-test assertion fails
Problem
After full os-sdlc suite runs on 2026-09-23, ruby-lsp processes stayed alive with test-tmp-dir cwds, adding load; narrower than first filed. Only plugins/os-sdlc/tests/lsp_probe_bin_test.rb spawns a real daemon; its
with_daemonhelper callsassert_stoppedafteryieldwith noensure, so a failing assertion inside the block leaks the daemon.Cases
with_daemonwhose block assertion fails, when the test run completes, then no daemon process for that test's root remains.with_daemonwhose block passes, when the test run completes, then the daemon is stopped as before.Approach
Wrap the yield so stop runs in an ensure block inside
with_daemon.Required work:
with_daemonin plugins/os-sdlc/tests/lsp_probe_bin_test.rb to runstop/assert_stoppedin anensurearound the yieldpgrep -f ruby-lspafter a deliberately failingwith_daemonblockAcceptance criteria
with_daemonblock whose assertion raises, when the test process exits, then no ruby-lsp process with that test's root remains.Owner sketch
Origin
Resolution
Done: Full-suite runs no longer leak ruby-lsp daemons: real-server integration tests run only under PROCMAN_REAL=1 and call Procman.stop_all in Minitest.after_run; procman servers self-exit when leases drop (ADR-0219, #712).
Evidence: Commit
cd265726on branch ticket-712; after a full suite runpgrep -f 'lsp-probe serve'matched no server process.Follow-ups: #714 adds procman cleanup to the SessionStart hook.