Skip to content

test(apps): keep the appliance running when the app manager stops - #574

Merged
RentnerKev merged 1 commit into
mainfrom
rentner/test/app-manager-exit-guard
Nov 25, 2026
Merged

RentnerKev merged 1 commit into
mainfrom
rentner/test/app-manager-exit-guard

Conversation

@RentnerKev

Copy link
Copy Markdown
Member

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.ts already copies the startup guard out of the entrypoint and runs it against fixture children. It now does the same with assert_children_running:

  • an exited app manager next to a running controller: the function logs the message, drops the app manager and returns;
  • an exited controller next to a running app manager: the function stops with 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.ts on Windows (Git Bash) and on Linux in Kiri (Bash 5.2).
  • As a mutation check, the test fails once the app manager branch in assert_children_running no longer matches.
  • Typecheck and lint, including the type-aware rules.

🤖 Generated with Claude Code

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]>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@RentnerKev

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor
Action not completed

Pull request is closed.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@RentnerKev
RentnerKev merged commit 0791ce0 into main Nov 25, 2026
36 of 37 checks passed
@RentnerKev
RentnerKev deleted the rentner/test/app-manager-exit-guard branch November 25, 2026 21:54
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