fix: harden StopPod registry cleanup
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user