From 2a0a4f564110f61e1846a1928e971848219dda44 Mon Sep 17 00:00:00 2001 From: Joerg Herbel Date: Fri, 17 Nov 2023 14:19:49 +0100 Subject: [PATCH] Enable support for long paths during RCC setup CMK-15211 --- v2/robotmk/src/bin/scheduler/results.rs | 1 + v2/robotmk/src/bin/scheduler/setup/rcc.rs | 29 +++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/v2/robotmk/src/bin/scheduler/results.rs b/v2/robotmk/src/bin/scheduler/results.rs index e2104228..9e0d03a1 100644 --- a/v2/robotmk/src/bin/scheduler/results.rs +++ b/v2/robotmk/src/bin/scheduler/results.rs @@ -28,6 +28,7 @@ impl WriteSection for SchedulerPhase { #[derive(Serialize)] pub struct RCCSetupFailures { pub telemetry_disabling: Vec, + pub long_path_support: Vec, pub shared_holotree: Vec, pub holotree_init: Vec, } diff --git a/v2/robotmk/src/bin/scheduler/setup/rcc.rs b/v2/robotmk/src/bin/scheduler/setup/rcc.rs index f1010928..7d98367c 100644 --- a/v2/robotmk/src/bin/scheduler/setup/rcc.rs +++ b/v2/robotmk/src/bin/scheduler/setup/rcc.rs @@ -53,6 +53,7 @@ fn rcc_setup_working_directory(working_directory: &Utf8Path) -> Utf8PathBuf { fn rcc_setup(global_config: &GlobalConfig, rcc_suites: Vec) -> Result> { let mut rcc_setup_failures = RCCSetupFailures { telemetry_disabling: vec![], + long_path_support: vec![], shared_holotree: vec![], holotree_init: vec![], }; @@ -69,6 +70,19 @@ fn rcc_setup(global_config: &GlobalConfig, rcc_suites: Vec) -> Result, +) -> Result<(Vec, Vec)> { + run_command_spec_once_in_current_session( + global_config, + suites, + &CommandSpec { + executable: global_config.rcc_binary_path.to_string(), + arguments: vec!["configure".into(), "longpaths".into(), "--enable".into()], + }, + "long_path_support_enabling", + ) +} + fn shared_holotree_init( global_config: &GlobalConfig, suites: Vec,