Repository navigation
fix(cri): refuse inventable Running on RemoveContainer/StopContainer (#445/#446) - #445
Merged
ZhiXiao-Lin merged 14 commits intoSep 16, 2026
Merged
Conversation
Durable Running alone must not invent force-stop of a live container. Reconcile reported container before the CRI force-remove stop path so inventable Running demotes first (#445 / #444/#434). Does not invent Live digests or flip B2. Co-authored-by: Cursor <[email protected]>
) Durable Running alone must not invent live stop, sandbox VM teardown, NotReady, or network disconnect. Reconcile reported container before the stop path so inventable Running demotes first (#446 / #445/#434). Does not invent Live digests or flip B2. Co-authored-by: Cursor <[email protected]>
Keep cargo fmt --check green on tip; collapse the heartbeat timeout if-let so Format CI matches local rustfmt. Co-authored-by: Cursor <[email protected]>
Replace expect_err on non-Debug VmManager with is_err assert, and correct unused/required mut on unix health/resume fixtures so Clippy -D warnings compiles on tip. Co-authored-by: Cursor <[email protected]>
Unix microvm_resume fixture assigns exec_socket_path; Clippy/compile requires mut on the local binding. Co-authored-by: Cursor <[email protected]>
clippy: :bool_assert_comparison rejects assert_eq!(..., false) on the Co-authored-by: Cursor <[email protected]> #424 Paused health probe; keep the invent-refusal assertion, fix the lint.
Attaching std::process::id() made Stop/Remove teardown kill the a3s_box_cri test binary (#445 CI SIGTERM). Use a sleep child as the shim stand-in. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
Attached ShimHandler::stop waitpid-reaps the disposable sleep PID; a later blocking Child::wait in Drop hung the suite after the SIGTERM self-kill fix. Co-authored-by: Cursor <[email protected]>
Keep only the PID; never Child::wait after ShimHandler attached stop may have already reaped the sleep process. Co-authored-by: Cursor <[email protected]>
Invent-refusal helpers used spawn_exec_stream_server with a one-hour exit delay; any Data frame against that socket froze CI. Use a heartbeat-only keepalive server, ignore signal-main Control without ACK, and never wait on stub Drop after waitpid may have reaped. Co-authored-by: Cursor <[email protected]>
Replace host sleep/DisposableVmm stubs with an in-process InstantStop handler after attach so Stop/Remove destroy cannot SIGTERM cargo-test or hang on waitpid; keepalive Control fails closed without ACK. Co-authored-by: Cursor <[email protected]>
Health re-proof heartbeats must not block behind an open Data stream; sequential fixture Accept caused invent-refusal demote (exit 255) on Stop/Attach. Align PortForward unready assert with sandbox invent gate. Co-authored-by: Cursor <[email protected]>
ZhiXiao-Lin
deleted the
honesty/445-cri-remove-container-refuse-stale-running
branch
September 16, 2026 07:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RemoveContainerreconciles before inventing force-stop of durable Running (fix(cri): refuse inventable Running on RemoveContainer/StopContainer (#445/#446) #445)StopContainerreconciles before inventing live stop / VM teardown / sandbox NotReady / network disconnect ([linux][P1] guest-init port-forward relay deadlocks under TSI: OPEN_ACK succeeds, no bytes ever reach the guest listener (scale endpoints / R17 / CRI PortForward) #446)Test plan
remove_container_refuses_inventing_force_stop_without_vm_healthstop_container_refuses_inventing_vm_teardown_without_vm_healthstop_container_refuses_inventing_network_disconnect_without_vm_health