Repository navigation
test(apps): keep the appliance running when the app manager stops - #574
Merged
Merged
Conversation
The entrypoint drops a stopped app manager and keeps the proxy and the administration running, while any other owned child stops the appliance. An older image whose app manager refuses newer app state relies on this path, but nothing tested it. The startup guard test now runs the entrypoint's child supervision against fixture children. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Member
Author
|
@coderabbitai review |
Contributor
Action not completed
|
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
Part of #457. When the app manager stops, the production entrypoint drops it from the supervised children and logs
app manager stopped; installed app operations are unavailable. The proxy and the administration keep running. Any other owned child that stops, such as the controller, still stops the appliance.An older image whose app manager refuses newer app state takes exactly this path, and it is the recovery path that #457 requires for an incompatible downgrade. No test covered it so far.
startup-guard.test.tsalready copies the startup guard out of the entrypoint and runs it against fixture children. It now does the same withassert_children_running:controller stopped unexpectedly.The fixture reaps the exited child before the check, so a zombie can never look like a running process.
Testing
startup-guard.test.tson Windows (Git Bash) and on Linux in Kiri (Bash 5.2).assert_children_runningno longer matches.🤖 Generated with Claude Code