MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / run

Function run

src/cli/exec/mod.rs:113–133  ·  view source on GitHub ↗
(
    args: ExecArgs,
    api_client: &mut CodSpeedAPIClient,
    project_config: Option<&ProjectConfig>,
    setup_cache_dir: Option<&Path>,
)

Source from the content-addressed store, hash-verified

111}
112
113pub async fn run(
114 args: ExecArgs,
115 api_client: &mut CodSpeedAPIClient,
116 project_config: Option<&ProjectConfig>,
117 setup_cache_dir: Option<&Path>,
118) -> Result<()> {
119 let merged_args = args.merge_with_project_config(project_config);
120 let base_run_id = merged_args.shared.base.clone();
121 let target = executor::BenchmarkTarget::Exec {
122 command: merged_args.command.clone(),
123 name: merged_args.name.clone(),
124 walltime_args: merged_args.walltime_args.clone(),
125 };
126 let config = build_orchestrator_config(
127 merged_args,
128 target,
129 PollResultsOptions::new(false, base_run_id),
130 )?;
131
132 execute_config(config, api_client, setup_cache_dir).await
133}
134
135/// Core execution logic shared by `codspeed exec` and `codspeed run` with config targets.
136///

Callers

nothing calls this directly

Calls 3

execute_configFunction · 0.85

Tested by

no test coverage detected