Skip to content

Add opt-in startup readiness process adapter - #546

Open
JusterZhu wants to merge 1 commit into
justerzhu-startup-health-confirmationfrom
justerzhu-startup-health-integration
Open

JusterZhu wants to merge 1 commit into
justerzhu-startup-health-confirmationfrom
justerzhu-startup-health-integration

Conversation

@JusterZhu

@JusterZhu JusterZhu commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add an explicit opt-in process adapter that passes a persistent startup attempt to a child and observes explicit business-readiness confirmation, exit, launch failure and timeout.
  • Preserve the existing updater, reporting and rollback behavior; the adapter is not wired into the production update pipeline or Bowl.Host.
  • Document the trust boundary and missing integration prerequisites; add real-process, restart and Windows Native AOT CI coverage.

Verification

  • StartupHealth tests: 17 passed on Windows, including actual child launch, failed readiness, timeout, cancellation and killed-host recovery.
  • Core builds for netstandard2.0, net8.0 and net10.0; repository AOT analyzer build succeeds with existing warnings.
  • Windows Native AOT CI published and ran the readiness probe successfully (run 45041158120). Local Native AOT publish requires an unavailable C++ platform linker.

Dependencies and limitations

  • Stacked on Add opt-in startup health state foundation #540 (including its CI fix dd84619); independent of Fix upgrade report record routing and status sequencing #541.
  • No automatic rollback, durable process reattachment/deduplication, server report or production lifecycle integration is provided. Bowl.Host v1 supports files-only/process-alive verification, neither of which proves business readiness. Existing pre-launch Success reports indicate files applied, not health.
  • A future end-to-end integration must coordinate explicit readiness in Bowl.Host, a single rollback owner with exact snapshot identity and fencing, restart-safe recovery, and durable reports that do not treat early Success as readiness. Trusted local storage and cooperating processes are required.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 22, 2026 15:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The health-probe test can read the PID file before writing completes, causing a failure before the child is assigned and leaving the indefinitely waiting process running.

1 open issue
What changed in this PR

Adds an opt-in process adapter on top of the persistent startup-health store from #540. It observes explicit readiness without changing the production updater, reporting, or rollback behavior.

Changes:

  • Adds child launch, readiness confirmation, and observation of exit, launch failure, timeout, and cancellation.
  • Adds real-process and host-restart tests, plus Windows Native AOT confirmation coverage.
  • Documents trust boundaries and prerequisites for future production integration.
File Description
tests/​StartupHealthProbe/​Program.cs Adds child readiness, host, exit, wait, and status probe modes.
tests/​CoreTest/​StartupHealth/​StartupHealthProcessTests.cs Tests process outcomes, cancellation, and killed-host recovery.
src/​GeneralUpdate.Core/​StartupHealth/​StartupHealthProcess.cs Implements the opt-in launch and readiness-observation adapter.
docs/​startup-health-store.md Documents adapter usage, trust requirements, and integration limits.
.github/​workflows/​startup-health-aot.yml Publishes and exercises the readiness probe with Windows Native AOT.

Review effort: Balanced

start.ArgumentList.Add(args[4]);
start.ArgumentList.Add("wait");
using var child = host.Start(attempt, start);
File.WriteAllText(args[3], child.Id.ToString());
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