Skip to content

Commit f193cf0

Browse files
Remove distributed chunk size configuration
1 parent 1e7fda2 commit f193cf0

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

config.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ remove = "^S-"
1212
experiment-queued = "S-waiting-on-crater"
1313
experiment-completed = "S-waiting-on-review"
1414

15-
[server.distributed]
16-
# Number of crates in each chunk when running distributed experiments
17-
# A negative value selects all the available crates
18-
chunk-size = 1024
19-
2015
# This section contains the list of tested crates when defining an experiment
2116
# with `--crate-select demo`.
2217

src/config.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ fn default_false() -> bool {
4343
pub struct ServerConfig {
4444
pub bot_acl: BotACL,
4545
pub labels: ServerLabels,
46-
pub distributed: ChunkConfig,
4746
}
4847

4948
#[derive(Clone, Serialize, Deserialize)]
@@ -78,12 +77,6 @@ pub struct SandboxConfig {
7877
pub build_log_max_lines: usize,
7978
}
8079

81-
#[derive(Clone, Serialize, Deserialize)]
82-
#[serde(rename_all = "kebab-case")]
83-
pub struct ChunkConfig {
84-
pub chunk_size: i32,
85-
}
86-
8780
#[derive(Clone, Serialize, Deserialize)]
8881
#[serde(rename_all = "kebab-case")]
8982
pub struct Config {
@@ -138,10 +131,6 @@ impl Config {
138131
&self.demo_crates
139132
}
140133

141-
pub fn chunk_size(&self) -> i32 {
142-
self.server.distributed.chunk_size
143-
}
144-
145134
pub fn check(file: &Option<String>) -> Fallible<()> {
146135
if let Some(file) = file {
147136
Self::check_all(file.into())
@@ -269,7 +258,6 @@ impl Default for Config {
269258
experiment_queued: "".into(),
270259
experiment_completed: "".into(),
271260
},
272-
distributed: ChunkConfig { chunk_size: 1 },
273261
},
274262
}
275263
}
@@ -300,8 +288,6 @@ mod tests {
300288
"remove = \"\"\n",
301289
"experiment-queued = \"\"\n",
302290
"experiment-completed = \"\"\n",
303-
"[server.distributed]\n",
304-
"chunk-size = 32\n",
305291
"[demo-crates]\n",
306292
"crates = []\n",
307293
"github-repos = []\n",
@@ -338,7 +324,5 @@ mod tests {
338324
name: "cargo".into(),
339325
sha: None,
340326
})));
341-
342-
assert_eq!(list.chunk_size(), 32);
343327
}
344328
}

0 commit comments

Comments
 (0)