From 8595dd880886090c29dff83685ed3de3bc3e9ecc Mon Sep 17 00:00:00 2001 From: Dylan Socolobsky Date: Wed, 29 Jan 2025 15:22:39 -0300 Subject: [PATCH] fix: ci: avoid failing the CI if the bench result is not present This is mostly because when we are adding a new benchmark in a PR; the benchmark won't be yet available in main, therefore the CI will fail. --- .github/workflows/ci_bench_levm_in_pr.yaml | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci_bench_levm_in_pr.yaml b/.github/workflows/ci_bench_levm_in_pr.yaml index 7b44aaf69d..5579afa8b5 100644 --- a/.github/workflows/ci_bench_levm_in_pr.yaml +++ b/.github/workflows/ci_bench_levm_in_pr.yaml @@ -38,19 +38,19 @@ jobs: make revm-comparison-ci { echo "#### Benchmark Results: Factorial"; - cat Factorial.md; + cat Factorial.md || echo "No results"; echo "#### Benchmark Results: Factorial - Recursive"; - cat FactorialRecursive.md; + cat FactorialRecursive.md || echo "No results"; echo "#### Benchmark Results: Fibonacci"; - cat Fibonacci.md; + cat Fibonacci.md || echo "No results"; echo "#### Benchmark Results: ManyHashes"; - cat ManyHashes.md; + cat ManyHashes.md || echo "No results"; echo "#### Benchmark Results: ERC20 - Transfer"; - cat ERC20Transfer.md; + cat ERC20Transfer.md || echo "No results"; echo "#### Benchmark Results: ERC20 - Mint"; - cat ERC20Mint.md; + cat ERC20Mint.md || echo "No results"; echo "#### Benchmark Results: ERC20 - Approval"; - cat ERC20Approval.md; + cat ERC20Approval.md || echo "No results"; } > pr_result.md - name: Upload PR results @@ -90,19 +90,19 @@ jobs: make revm-comparison-ci { echo "#### Benchmark Results: Factorial"; - cat Factorial.md; + cat Factorial.md || echo "No results"; echo "#### Benchmark Results: Factorial - Recursive"; - cat FactorialRecursive.md; + cat FactorialRecursive.md || echo "No results"; echo "#### Benchmark Results: Fibonacci"; - cat Fibonacci.md; + cat Fibonacci.md || echo "No results"; echo "#### Benchmark Results: ManyHashes"; - cat ManyHashes.md; + cat ManyHashes.md || echo "No results"; echo "#### Benchmark Results: ERC20 - Transfer"; - cat ERC20Transfer.md; + cat ERC20Transfer.md || echo "No results"; echo "#### Benchmark Results: ERC20 - Mint"; - cat ERC20Mint.md; + cat ERC20Mint.md || echo "No results"; echo "#### Benchmark Results: ERC20 - Approval"; - cat ERC20Approval.md; + cat ERC20Approval.md || echo "No results"; } > main_result.md - name: Upload main results