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

Method new

src/executor/orchestrator.rs:33–59  ·  view source on GitHub ↗
(config: OrchestratorConfig, api_client: &CodSpeedAPIClient)

Source from the content-addressed store, hash-verified

31 }
32
33 pub async fn new(config: OrchestratorConfig, api_client: &CodSpeedAPIClient) -> Result<Self> {
34 let provider = run_environment::get_provider(&config, api_client).await?;
35 let system_info = SystemInfo::new()?;
36 let logger = Logger::new(provider.as_ref())?;
37
38 #[allow(deprecated)]
39 if config.modes.contains(&RunnerMode::Instrumentation) {
40 warn!(
41 "The 'instrumentation' runner mode is deprecated and will be removed in a future version. \
42 Please use 'simulation' instead."
43 );
44 }
45
46 if config.modes.contains(&RunnerMode::Telemetry) {
47 warn!(
48 "The 'telemetry' runner mode is experimental and may change or be removed without \
49 notice."
50 );
51 }
52
53 Ok(Orchestrator {
54 config,
55 system_info,
56 provider,
57 logger,
58 })
59 }
60
61 /// Execute all benchmark targets for all configured modes, then upload results.
62 ///

Callers

nothing calls this directly

Calls 1

get_providerFunction · 0.85

Tested by

no test coverage detected