Skip to content

feat(android): run local server with microinit - #11

Merged
keskad merged 4 commits into
mainfrom
feat/use-microinit
Aug 5, 2026
Merged

feat(android): run local server with microinit#11
keskad merged 4 commits into
mainfrom
feat/use-microinit

Conversation

@keskad

@keskad keskad commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace the Android supervisord integration with microinit managed by loco-server
  • fetch and stage libmicroinit.so from GHCR, including the current multi-binary artifact format
  • update CI, native-prebuilt targets, runtime cleanup, logs, and user-facing binary guidance

Test plan

  • make microinit-android fetches and identifies the ARM64 microinit binary
  • bash -n scripts/fetch-ghcr-oras.sh
  • ./gradlew :app:testDebugUnitTest (blocked by the local Room/KSP SQLite native-library environment issue)

Made with Cursor

keskad and others added 4 commits August 4, 2026 21:40
Replace the supervisord integration with loco-server's microinit runtime and fetch its Android artifact from GHCR.

Co-authored-by: Cursor <cursoragent@cursor.com>
Match bigfred's default $DATA_DIR/var/lib/redis layout when ensuring
local server directories.

Co-authored-by: Cursor <cursoragent@cursor.com>
When the foreground service stops, loco-server now gets a 10s
graceful window (was 3s) so its own shutdown defer can forward a
SIGTERM soft-kill to microinit via the SDK. As a fallback for the
case where loco-server is hard-killed before that completes,
cleanupChildren also sends SIGTERM directly to the microinit PID
(10s grace then SIGKILL) so its managed services (redis/alloy/
dcc-bus) still get a chance to stop instead of being orphaned.

ProcessOrphanReaper gains stopGracefully(pidFile, needle, graceMs);
reap() now delegates to it with the original 3s grace.

Co-authored-by: Cursor <cursoragent@cursor.com>
Validate pidfile identity with starttime to avoid PID reuse kills,
align graceful shutdown with the 15s microinit budget, and extend tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
@keskad
keskad merged commit d31043b into main Aug 5, 2026
1 check passed
@keskad
keskad deleted the feat/use-microinit branch August 5, 2026 08:18
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