Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(regression): prepare Show Runtime before restart (#897)

Call White3aff86e66512
diff --git a/scripts/incus_regression.py b/scripts/incus_regression.py
index b84b3068e..481f1c7fe 100644
--- a/scripts/incus_regression.py
+++ b/scripts/incus_regression.py
@@ -1420,8 +1420,10 @@ def cmd_up(args: argparse.Namespace) -> int:
run_prepare_state(runner, target, reset_mode=args.reset_mode, remote=args.remote)
normalize_runtime_config(runner, target, remote=args.remote)
write_metadata(runner, target, repo_root, fingerprints, remote=args.remote)
- restart_and_verify(runner, target, remote=args.remote)
+ # Install updated runtime sources while the service is stopped so the
+ # restarted process cannot keep serving code loaded before preparation.
prepare_show_runtime(runner, target, remote=args.remote)
+ restart_and_verify(runner, target, remote=args.remote)
if not args.dry_run:
update_worktree_mapping(repo_root, target)
print_summary(target)
diff --git a/tests/test_incus_regression.py b/tests/test_incus_regression.py
index 171581ab3..c2bd87da3 100644
--- a/tests/test_incus_regression.py
+++ b/tests/test_incus_regression.py
@@ -1549,6 +1549,7 @@ def test_up_stops_old_service_before_mutating_runtime(tmp_path: Path, monkeypatc
assert calls[:3] == ["ensure_project_and_instance", "stop_service_for_update", "write_runtime_env"]
assert calls.index("sync_source") < calls.index("update_dependencies_and_build")
assert calls.index("normalize_runtime_config") < calls.index("restart_and_verify")
+ assert calls.index("prepare_show_runtime") < calls.index("restart_and_verify")
def test_up_preserves_runtime_env_when_existing_target_has_no_env_file(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None: