diff --git a/Cargo.lock b/Cargo.lock index 94d8987b..794434fd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -143,6 +143,28 @@ version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b94f61472cee1439c0b966b47e3aca9ae07e45d070759512cd390ea2bebc6675" +[[package]] +name = "codspeed-go-runner" +version = "0.1.0" +dependencies = [ + "anyhow", + "clap", + "env_logger", + "glob", + "gosyn", + "handlebars", + "insta", + "itertools", + "log", + "regex", + "rstest", + "serde", + "serde_json", + "statrs", + "tempfile", + "thiserror 2.0.16", +] + [[package]] name = "colorchoice" version = "1.0.4" @@ -390,28 +412,6 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280" -[[package]] -name = "go-runner" -version = "0.1.0" -dependencies = [ - "anyhow", - "clap", - "env_logger", - "glob", - "gosyn", - "handlebars", - "insta", - "itertools", - "log", - "regex", - "rstest", - "serde", - "serde_json", - "statrs", - "tempfile", - "thiserror 2.0.16", -] - [[package]] name = "gosyn" version = "0.2.9" diff --git a/go-runner/Cargo.toml b/go-runner/Cargo.toml index 2f24237a..6cad7204 100644 --- a/go-runner/Cargo.toml +++ b/go-runner/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "go-runner" +name = "codspeed-go-runner" version = "0.1.0" edition = "2024" repository = "https://github.com/CodSpeedHQ/codspeed-go" diff --git a/go-runner/src/builder/snapshots/go_runner__builder__discovery__tests__discover_benchmarks.snap b/go-runner/src/builder/snapshots/codspeed_go_runner__builder__discovery__tests__discover_benchmarks.snap similarity index 100% rename from go-runner/src/builder/snapshots/go_runner__builder__discovery__tests__discover_benchmarks.snap rename to go-runner/src/builder/snapshots/codspeed_go_runner__builder__discovery__tests__discover_benchmarks.snap diff --git a/go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__already_patched_import.snap b/go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__already_patched_import.snap similarity index 100% rename from go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__already_patched_import.snap rename to go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__already_patched_import.snap diff --git a/go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__import_at_end_of_block.snap b/go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__import_at_end_of_block.snap similarity index 100% rename from go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__import_at_end_of_block.snap rename to go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__import_at_end_of_block.snap diff --git a/go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__import_with_comments.snap b/go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__import_with_comments.snap similarity index 100% rename from go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__import_with_comments.snap rename to go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__import_with_comments.snap diff --git a/go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__import_with_extra_whitespace.snap b/go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__import_with_extra_whitespace.snap similarity index 100% rename from go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__import_with_extra_whitespace.snap rename to go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__import_with_extra_whitespace.snap diff --git a/go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__import_with_testing_string.snap b/go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__import_with_testing_string.snap similarity index 100% rename from go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__import_with_testing_string.snap rename to go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__import_with_testing_string.snap diff --git a/go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__mixed_import_styles.snap b/go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__mixed_import_styles.snap similarity index 100% rename from go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__mixed_import_styles.snap rename to go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__mixed_import_styles.snap diff --git a/go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__multiline_import_replacement.snap b/go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__multiline_import_replacement.snap similarity index 100% rename from go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__multiline_import_replacement.snap rename to go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__multiline_import_replacement.snap diff --git a/go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__multiline_import_with_tabs.snap b/go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__multiline_import_with_tabs.snap similarity index 100% rename from go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__multiline_import_with_tabs.snap rename to go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__multiline_import_with_tabs.snap diff --git a/go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__multiline_import_with_testing_string.snap b/go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__multiline_import_with_testing_string.snap similarity index 100% rename from go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__multiline_import_with_testing_string.snap rename to go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__multiline_import_with_testing_string.snap diff --git a/go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__single_import_replacement.snap b/go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__single_import_replacement.snap similarity index 100% rename from go-runner/src/builder/snapshots/go_runner__builder__patcher__tests__single_import_replacement.snap rename to go-runner/src/builder/snapshots/codspeed_go_runner__builder__patcher__tests__single_import_replacement.snap diff --git a/go-runner/src/main.rs b/go-runner/src/main.rs index c4cc17d0..11ad4dff 100644 --- a/go-runner/src/main.rs +++ b/go-runner/src/main.rs @@ -1,4 +1,4 @@ -use go_runner::cli::Cli; +use codspeed_go_runner::cli::Cli; use std::path::Path; fn main() -> anyhow::Result<()> { @@ -9,7 +9,7 @@ fn main() -> anyhow::Result<()> { .init(); let cli = Cli::parse(); - go_runner::run_benchmarks(Path::new("."), &cli.bench)?; + codspeed_go_runner::run_benchmarks(Path::new("."), &cli.bench)?; Ok(()) } diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@fzf_0.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@fzf_0.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@fzf_0.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@fzf_0.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_0.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_0.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_0.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_0.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_1.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_1.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_1.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_1.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_10.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_10.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_10.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_10.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_11.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_11.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_11.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_11.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_12.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_12.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_12.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_12.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_13.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_13.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_13.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_13.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_14.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_14.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_14.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_14.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_2.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_2.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_2.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_2.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_3.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_3.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_3.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_3.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_4.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_4.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_4.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_4.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_5.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_5.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_5.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_5.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_6.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_6.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_6.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_6.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_7.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_7.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_7.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_7.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_8.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_8.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_8.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_8.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_9.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_9.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_9.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@golang-benchmarks_9.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@hugo_0.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@hugo_0.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@hugo_0.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@hugo_0.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@hugo_1.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@hugo_1.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@hugo_1.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@hugo_1.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@hugo_2.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@hugo_2.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@hugo_2.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@hugo_2.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@hugo_3.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@hugo_3.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@hugo_3.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@hugo_3.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@hugo_4.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@hugo_4.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@hugo_4.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@hugo_4.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@hugo_5.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@hugo_5.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@hugo_5.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@hugo_5.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@hugo_6.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@hugo_6.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@hugo_6.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@hugo_6.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@opentelemetry-go_0.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@opentelemetry-go_0.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@opentelemetry-go_0.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@opentelemetry-go_0.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@zap_0.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@zap_0.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@zap_0.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@zap_0.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@zap_1.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@zap_1.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@zap_1.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@zap_1.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@zerolog_0.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@zerolog_0.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@zerolog_0.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@zerolog_0.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@zerolog_1.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@zerolog_1.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@zerolog_1.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@zerolog_1.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@zerolog_2.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@zerolog_2.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@zerolog_2.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@zerolog_2.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@zerolog_3.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@zerolog_3.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@zerolog_3.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@zerolog_3.snap diff --git a/go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@zerolog_4.snap b/go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@zerolog_4.snap similarity index 100% rename from go-runner/src/snapshots/go_runner__integration_tests__assert_results_snapshots@zerolog_4.snap rename to go-runner/src/snapshots/codspeed_go_runner__integration_tests__assert_results_snapshots@zerolog_4.snap