Skip to content

test(health_check): explicit stop() for the healthy-box test#615

Merged
DorianZheng merged 1 commit into
boxlite-ai:mainfrom
G4614:fix/health-check-test1-explicit-stop
May 28, 2026
Merged

test(health_check): explicit stop() for the healthy-box test#615
DorianZheng merged 1 commit into
boxlite-ai:mainfrom
G4614:fix/health-check-test1-explicit-stop

Conversation

@G4614
Copy link
Copy Markdown
Contributor

@G4614 G4614 commented May 28, 2026

After #604 , the healthy box test should be stopped manually after tasks finished

Test plan

--features krun,gvproxy, nextest --profile vm.

health_check_transitions_to_healthy_after_startup result
without stop() FAILPerTestBoxHome dropped with 1 live shim(s): [<pid>] (shim still Running at the leak check)
with stop() PASS

…eak a running shim

health_check_transitions_to_healthy_after_startup ends with the box still
Running. RuntimeImpl::Drop's safety-net shutdown_sync only sends SIGTERM and
returns without waiting, so the shim is still mid-shutdown when
PerTestBoxHome::Drop (boxlite-ai#604) runs its leak assertion — `1 live shim(s)`.
Adding t.bx.stop() (which stops and waits) clears it. The reaper (boxlite-ai#613) does
not help here: it reaps dead shims, not a still-running one.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@G4614 G4614 marked this pull request as ready for review May 28, 2026 09:54
@DorianZheng DorianZheng merged commit d5b93da into boxlite-ai:main May 28, 2026
21 checks passed
@G4614 G4614 deleted the fix/health-check-test1-explicit-stop branch May 28, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants