Skip to content

Commit

Permalink
refactor: rename benchmark_tests to regression_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aner-starkware committed Jul 9, 2024
1 parent 1a814b9 commit e8f6c6a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
- run: cargo test

run-bench-tests:
run-regression-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -112,7 +112,7 @@ jobs:
- run: echo "BENCH_INPUT_FILES_PREFIX=$(cat ./crates/committer_cli/src/tests/flow_test_files_prefix)" >> $GITHUB_ENV
- run: gcloud storage cp gs://committer-testing-artifacts/$BENCH_INPUT_FILES_PREFIX/tree_flow_inputs.json ./crates/committer_cli/benches/tree_flow_inputs.json
- run: gcloud storage cp gs://committer-testing-artifacts/$BENCH_INPUT_FILES_PREFIX/committer_flow_inputs.json ./crates/committer_cli/benches/committer_flow_inputs.json
- run: cargo test --release -- --include-ignored test_benchmark
- run: cargo test --release -- --include-ignored test_regression

benchmarking:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions crates/committer_cli/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[cfg(test)]
pub mod benchmark_tests;
pub mod python_tests;
#[cfg(test)]
pub mod regression_tests;
pub mod utils;
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl<'de> Deserialize<'de> for TreeRegressionInput {

#[ignore = "To avoid running the benchmark test in Coverage or without the --release flag."]
#[tokio::test(flavor = "multi_thread")]
pub async fn test_benchmark_single_tree() {
pub async fn test_regression_single_tree() {
let TreeRegressionInput {
tree_flow_input:
TreeFlowInput {
Expand Down Expand Up @@ -117,7 +117,7 @@ pub async fn test_benchmark_single_tree() {

#[ignore = "To avoid running the benchmark test in Coverage or without the --release flag."]
#[tokio::test(flavor = "multi_thread")]
pub async fn test_benchmark_committer_flow() {
pub async fn test_regression_committer_flow() {
let CommitterRegressionInput {
committer_input,
contract_states_root: expected_contract_states_root,
Expand Down

0 comments on commit e8f6c6a

Please sign in to comment.