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