Skip to content

fix: harden VM shutdown, detached health, and macOS runtime staging - #244

Merged
ZhiXiao-Lin merged 2 commits into
mainfrom
fix/local-runtime-shutdown-health-20260906
Sep 6, 2026
Merged

ZhiXiao-Lin merged 2 commits into
mainfrom
fix/local-runtime-shutdown-health-20260906

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Join warm-pool maintenance before draining; retain socket-request ownership through cleanup and bound VM/lease destruction concurrency.
  • Give detached health workers independent Unix sessions so terminal/job process-group cleanup cannot terminate ongoing probes.
  • Stage macOS libkrun/libkrunfw dylibs and all versioned aliases without mutating signed install names.
  • Unblock workspace clippy after the preceding pool changes with a typed boot-batch request and test-module ordering fixes.
  • Correct the snapshot smoke for independent ext4 restores, isolate the raw-disk lock-release assertion from parallel child spawns, and record local Dify evidence.

Local validation

  • scripts/host-integration-smoke.sh --pure: passed fmt, workspace all-target/all-feature clippy, library tests, and integration tests.
  • Final all-target/all-feature clippy: passed with warnings denied.
  • Deterministic delayed-maintenance drain regression: passed.
  • All 28 shim unit tests: passed; the parallel shim suite passed 100/100 repeated runs after isolating the descriptor-lifetime assertion.
  • Real HVF detached-health regression: passed in 7.01 s, including launcher process-group termination followed by a fresh successful guest probe.
  • Real HVF multi-image warm-pool regression: passed in 32.73 s, including concurrent and lazy runs and no remaining new host socket directory.
  • Local release CLI/shim built successfully; installed dylib signatures and shim hypervisor entitlement verified.
  • Existing Dify 1.16.1 redeployed from the local package without deleting named volumes. All 15 long-running services and four independent health workers remain live; setup state is retained.
  • Unchanged Compose convergence: 2.99 s. A 60.687-second observation recorded 12/12 HTTP 200 responses (16–25 ms), stable PIDs, 15.24% aggregate CPU on a one-core scale, and about 8.91 GiB aggregate RSS.

Details and measurement limits: docs/local-dify-validation-2026-09-06.md.

Scope limits

This is local macOS/HVF evidence, not a new published release or a cross-platform/soak certificate. The convergence result is not a cold-deployment benchmark, and no memory reduction percentage is claimed. Issue #172 remains open for joint Box/Cloud and hardware acceptance. The standalone clippy fix can unblock PR #243 without mixing in these runtime changes.

@ZhiXiao-Lin
ZhiXiao-Lin merged commit 76130f5 into main Sep 6, 2026
14 checks passed
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