Skip to content

fix(cri): refuse inventable Running on RemoveContainer/StopContainer (#445/#446) - #445

Merged
ZhiXiao-Lin merged 14 commits into
mainfrom
honesty/445-cri-remove-container-refuse-stale-running
Sep 16, 2026
Merged

ZhiXiao-Lin merged 14 commits into
mainfrom
honesty/445-cri-remove-container-refuse-stale-running

Conversation

@ZhiXiao-Lin

@ZhiXiao-Lin ZhiXiao-Lin commented Sep 16, 2026 •

Copy link
Copy Markdown

Summary

Test plan

  • remove_container_refuses_inventing_force_stop_without_vm_health
  • stop_container_refuses_inventing_vm_teardown_without_vm_health
  • stop_container_refuses_inventing_network_disconnect_without_vm_health
  • Updated StopContainer / RemoveContainer auth-VM paths still pass
  • Linux CI green

ZhiXiao-Lin and others added 2 commits September 16, 2026 11:32
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]>
@ZhiXiao-Lin ZhiXiao-Lin changed the title fix(cri): refuse inventable Running force-stop on RemoveContainer (#445) fix(cri): refuse inventable Running on RemoveContainer/StopContainer (#445/#446) Sep 16, 2026
ZhiXiao-Lin and others added 12 commits September 16, 2026 12:07
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]>
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
ZhiXiao-Lin merged commit 78ad2bb into main Sep 16, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the honesty/445-cri-remove-container-refuse-stale-running branch September 16, 2026 07:23
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.

1 participant