Remove hardcoded remote staged payload fields from shared context
Intent: Eliminate the `remote_workspace_deps_dir` and `remote_workspace_build_dir` fields from `RemoteLinuxVmSharedContext` so that staged payload paths are no longer duplicated between the host context and the remote context. This reduces the surface area for path inconsistencies.
Affected files: crates/pikaci/src/executor.rs
@@ -68,8 +68,6 @@ struct RemoteLinuxVmSharedContext {
remote_artifacts_dir: PathBuf,
remote_cargo_home_dir: PathBuf,
remote_target_dir: PathBuf,
- remote_workspace_deps_dir: PathBuf,
- remote_workspace_build_dir: PathBuf,
}
@@ -1777,12 +1775,6 @@ fn remote_linux_vm_context(
remote_artifacts_dir: remote_job_dir.join("artifacts"),
remote_cargo_home_dir: remote_work_dir.join("cache").join("cargo-home"),
remote_target_dir: remote_work_dir.join("cache").join("cargo-target"),
- remote_workspace_deps_dir: remote_job_dir
- .join("staged-linux-rust")
- .join("workspace-deps"),
- remote_workspace_build_dir: remote_job_dir
- .join("staged-linux-rust")
- .join("workspace-build"),
};
Two fields are deleted from the RemoteLinuxVmSharedContext struct:
remote_workspace_deps_dirremote_workspace_build_dir
These were previously constructed by joining staged-linux-rust/workspace-deps and staged-linux-rust/workspace-build onto the remote_job_dir. The construction site in remote_linux_vm_context is cleaned up to no longer produce them.
This is the foundational change that motivates everything else in the branch: the remote paths for staged payloads will now be derived at the point of use rather than stored ahead of time.