Skip to content

Commit 2b84321

Browse files
committed
Include RCC catalog zip path in config and take into account when building envs
CMK-19785
1 parent e8b9fcf commit 2b84321

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

src/bin/scheduler/internal_config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ mod tests {
237237
robot_yaml_path: Utf8PathBuf::from("robot.yaml"),
238238
build_timeout: 300,
239239
remote_origin: None,
240+
catalog_zip: None,
240241
}),
241242
#[cfg(unix)]
242243
session_config: SessionConfig::Current,

src/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ pub struct RCCEnvironmentConfig {
111111
pub robot_yaml_path: Utf8PathBuf,
112112
pub build_timeout: u64,
113113
pub remote_origin: Option<String>,
114+
pub catalog_zip: Option<Utf8PathBuf>,
114115
}
115116

116117
#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]

src/environment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl Environment {
4141
EnvironmentConfig::Rcc(rcc_environment_config) => Self::Rcc(RCCEnvironment {
4242
binary_path: rcc_binary_path.to_path_buf(),
4343
remote_origin: rcc_environment_config.remote_origin.clone(),
44-
catalog_zip: None,
44+
catalog_zip: rcc_environment_config.catalog_zip.clone(),
4545
robot_yaml_path: base_dir.join(&rcc_environment_config.robot_yaml_path),
4646
controller: String::from("robotmk"),
4747
space: plan_id.to_string(),

tests/test_scheduler.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ fn create_config(
185185
robot_yaml_path: "robot.yaml".into(),
186186
build_timeout: 1200,
187187
remote_origin: None,
188+
catalog_zip: None,
188189
}),
189190
session_config: SessionConfig::Current,
190191
working_directory_cleanup_config:
@@ -223,6 +224,7 @@ fn create_config(
223224
robot_yaml_path: "robot.yaml".into(),
224225
build_timeout: 1200,
225226
remote_origin: None,
227+
catalog_zip: None,
226228
}),
227229
session_config: SessionConfig::SpecificUser(UserSessionConfig {
228230
user_name: user_name_headed.into(),
@@ -265,6 +267,7 @@ fn create_config(
265267
robot_yaml_path: "robot.yaml".into(),
266268
build_timeout: 1200,
267269
remote_origin: None,
270+
catalog_zip: None,
268271
}),
269272
#[cfg(unix)]
270273
session_config: SessionConfig::Current,

0 commit comments

Comments
 (0)