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

Function setup

src/cli/setup.rs:67–84  ·  view source on GitHub ↗
(modes: &[RunnerMode], setup_cache_dir: Option<&Path>)

Source from the content-addressed store, hash-verified

65}
66
67async fn setup(modes: &[RunnerMode], setup_cache_dir: Option<&Path>) -> Result<()> {
68 let system_info = SystemInfo::new()?;
69 let run_environment = run_environment::detect();
70 let executors = get_executors_from_modes(modes);
71 start_group!("Setting up the environment");
72 for executor in executors {
73 setup_executor(
74 executor.as_ref(),
75 &system_info,
76 setup_cache_dir,
77 &run_environment,
78 )
79 .await?;
80 }
81 info!("Environment setup completed");
82 end_group!();
83 Ok(())
84}
85
86/// Set up a single executor based on its support level on the current system.
87async fn setup_executor(

Callers 1

runFunction · 0.70

Calls 3

detectFunction · 0.85
get_executors_from_modesFunction · 0.85
setup_executorFunction · 0.85

Tested by

no test coverage detected