Repository navigation
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The documentation incorrectly implies that a false return means no outcome was recorded, although an expired attempt can be recorded as TimedOut, potentially misleading hosts about whether the attempt changed.
1 open issue
What changed in this PR
Adds an opt-in startup health store to GeneralUpdate.Core, providing persistent startup outcomes without changing the update pipeline or implementing rollback.
Changes:
- Adds explicit health confirmation, failure and process-exit outcomes, and deadline enforcement.
- Uses per-attempt locking and atomic file publication, with tests for persistence, contention, crash recovery, and interrupted writes.
- Documents host responsibilities, storage constraints, and future integration boundaries.
| File | Description |
|---|---|
tests/StartupHealthProbe/StartupHealthProbe.csproj |
Defines the cross-process test helper project. |
tests/StartupHealthProbe/Program.cs |
Provides outcome-reporting and lock-holding probe operations. |
tests/CoreTest/StartupHealth/StartupHealthStoreTests.cs |
Tests terminal outcomes, deadlines, corruption, and process recovery. |
tests/CoreTest/CoreTest.csproj |
Adds the probe as a build dependency. |
src/GeneralUpdate.Core/StartupHealth/StartupHealthStore.cs |
Implements persistent attempts, locking, and terminal transitions. |
src/GeneralUpdate.Core/StartupHealth/StartupHealthStatus.cs |
Defines pending and terminal startup states. |
docs/startup-health-store.md |
Explains usage, guarantees, and integration boundaries. |
Review effort: Balanced
Comment on lines
+10
to
+11
| overwritten; a `false` return means no new outcome was recorded, so read the | ||
| status to distinguish a retry from a conflicting outcome. |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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
Validation
dotnet test tests\CoreTest\CoreTest.csproj --filter "FullyQualifiedName~StartupHealthStoreTests|FullyQualifiedName~BackupRestoreTests"— 17 passed.dotnet build src\GeneralUpdate.Core\GeneralUpdate.Core.csproj --no-restore— all target frameworks built, with existing warnings.Scope and follow-up
This does not wire startup monitoring into the updater or Bowl and does not execute rollback. End-to-end recovery needs a shared host contract, an agreed single rollback owner, exact backup identity, durable idempotent interrupted-rollback recovery, and coordinated manifest/reporting changes. Process liveness is not a health confirmation.