Skip to content

Commit dd45aec

Browse files
feat: add --show-full-output to bypass the new rolling buffer
1 parent 4853472 commit dd45aec

6 files changed

Lines changed: 19 additions & 2 deletions

File tree

src/cli/exec/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ fn build_orchestrator_config(
8888
skip_setup: args.shared.skip_setup,
8989
allow_empty: args.shared.allow_empty,
9090
go_runner_version: args.shared.go_runner_version,
91+
show_full_output: args.shared.show_full_output,
9192
poll_results_options: PollResultsOptions::for_exec(),
9293
})
9394
}

src/cli/run/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ impl RunArgs {
7979
skip_setup: false,
8080
allow_empty: false,
8181
go_runner_version: None,
82+
show_full_output: false,
8283
perf_run_args: PerfRunArgs {
8384
enable_perf: false,
8485
perf_unwinding_mode: None,
@@ -127,6 +128,7 @@ fn build_orchestrator_config(
127128
skip_setup: args.shared.skip_setup,
128129
allow_empty: args.shared.allow_empty,
129130
go_runner_version: args.shared.go_runner_version,
131+
show_full_output: args.shared.show_full_output,
130132
poll_results_options,
131133
})
132134
}

src/cli/shared.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ pub struct ExecAndRunSharedArgs {
106106
#[arg(long, env = "CODSPEED_GO_RUNNER_VERSION", value_parser = parse_version)]
107107
pub go_runner_version: Option<semver::Version>,
108108

109+
/// Show full executor output instead of a rolling buffer window
110+
#[arg(long, default_value = "false")]
111+
pub show_full_output: bool,
112+
109113
#[command(flatten)]
110114
pub perf_run_args: PerfRunArgs,
111115
}

src/executor/config.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ pub struct OrchestratorConfig {
7272
pub allow_empty: bool,
7373
/// The version of go-runner to install (if None, installs latest)
7474
pub go_runner_version: Option<Version>,
75+
/// If true, show full executor output instead of a rolling buffer window
76+
pub show_full_output: bool,
7577
/// Options controlling post-upload result polling and display
7678
pub poll_results_options: PollResultsOptions,
7779
}
@@ -201,6 +203,7 @@ impl OrchestratorConfig {
201203
skip_setup: false,
202204
allow_empty: false,
203205
go_runner_version: None,
206+
show_full_output: false,
204207
poll_results_options: PollResultsOptions::for_exec(),
205208
}
206209
}

src/executor/orchestrator.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,15 @@ impl Orchestrator {
160160

161161
let ctx = ExecutionContext::new(config, profile_folder);
162162

163-
activate_rolling_buffer(&part.label);
163+
if !self.config.show_full_output {
164+
activate_rolling_buffer(&part.label);
165+
}
164166

165167
run_executor(executor.as_ref(), self, &ctx, setup_cache_dir).await?;
166168

167-
deactivate_rolling_buffer();
169+
if !self.config.show_full_output {
170+
deactivate_rolling_buffer();
171+
}
168172
all_completed_runs.push((ctx, executor.name()));
169173
}
170174

src/project_config/merger.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ mod tests {
160160
skip_setup: false,
161161
allow_empty: false,
162162
go_runner_version: None,
163+
show_full_output: false,
163164
perf_run_args: PerfRunArgs {
164165
enable_perf: true,
165166
perf_unwinding_mode: None,
@@ -193,6 +194,7 @@ mod tests {
193194
skip_setup: false,
194195
allow_empty: false,
195196
go_runner_version: None,
197+
show_full_output: false,
196198
perf_run_args: PerfRunArgs {
197199
enable_perf: true,
198200
perf_unwinding_mode: None,
@@ -228,6 +230,7 @@ mod tests {
228230
skip_setup: false,
229231
allow_empty: false,
230232
go_runner_version: None,
233+
show_full_output: false,
231234
perf_run_args: PerfRunArgs {
232235
enable_perf: false,
233236
perf_unwinding_mode: None,

0 commit comments

Comments
 (0)