fix: harden StopPod registry cleanup

This commit is contained in:
2026-06-24 00:23:10 +09:00
parent b28d64c3c6
commit 1ca5663298
6 changed files with 94 additions and 31 deletions
+1 -1
View File
@@ -2890,7 +2890,7 @@ fn build_orchestrator_launch_context(
pod_name: &str,
) -> TicketRoleLaunchContext {
let mut context = TicketRoleLaunchContext::new(
orchestration_workspace_root.to_path_buf(),
original_workspace_root.to_path_buf(),
TicketRole::Orchestrator,
)
.with_cwd(orchestration_workspace_root.to_path_buf())
+3 -2
View File
@@ -16,14 +16,15 @@ fn orchestration_worktree_layout_is_stable_under_original_workspace_root() {
}
#[test]
fn orchestrator_launch_context_uses_orchestration_root_for_runtime_workspace() {
fn orchestrator_launch_context_uses_original_root_for_runtime_workspace_and_worktree_cwd() {
let original = PathBuf::from("/repo/yoi");
let orchestration = original
.join(".worktree")
.join("orchestration")
.join("yoi-orchestrator");
let context = build_orchestrator_launch_context(&original, &orchestration, "yoi-orchestrator");
assert_eq!(context.workspace_root, orchestration);
assert_eq!(context.workspace_root, original);
assert_eq!(context.cwd.as_deref(), Some(orchestration.as_path()));
assert_eq!(
context.original_workspace_root.as_deref(),
Some(original.as_path())