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

Function run

src/cli/exec/mod.rs:96–116  ·  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

94}
95
96pub async fn run(
97 args: ExecArgs,
98 api_client: &mut CodSpeedAPIClient,
99 project_config: Option<&ProjectConfig>,
100 setup_cache_dir: Option<&Path>,
101) -> Result<()> {
102 let merged_args = args.merge_with_project_config(project_config);
103 let base_run_id = merged_args.shared.base.clone();
104 let target = executor::BenchmarkTarget::Exec {
105 command: merged_args.command.clone(),
106 name: merged_args.name.clone(),
107 walltime_args: merged_args.walltime_args.clone(),
108 };
109 let config = build_orchestrator_config(
110 merged_args,
111 target,
112 PollResultsOptions::new(false, base_run_id),
113 )?;
114
115 execute_config(config, api_client, setup_cache_dir).await
116}
117
118/// Core execution logic shared by `codspeed exec` and `codspeed run` with config targets.
119///

Callers

nothing calls this directly

Calls 3

execute_configFunction · 0.85

Tested by

no test coverage detected