From a4d88a346c90705919973cb528ef396139475b3b Mon Sep 17 00:00:00 2001 From: dan moore Date: Wed, 10 Apr 2024 11:31:47 -0500 Subject: [PATCH] debuggin --- .github/workflows/regression-test-auto.yml | 11 ++++------- .github/workflows/regression-test-manual-trigger.yml | 3 ++- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/regression-test-auto.yml b/.github/workflows/regression-test-auto.yml index f677ead..08c1e4f 100644 --- a/.github/workflows/regression-test-auto.yml +++ b/.github/workflows/regression-test-auto.yml @@ -4,11 +4,7 @@ name: Regression Tests - Auto Merge to Main types: [opened, synchronize] # Trigger on new pull requests and when existing ones are synchronized branches: - main - inputs: - bake_time: - description: bake time (minutes) - required: false - default: 20 + jobs: deploy_devnet: runs-on: ubuntu-latest @@ -46,8 +42,9 @@ jobs: kurtosis run --enclave cdk-v1 --args-file params.yml . - name: Monitor and report any potential regressions to CI logs run: | - bake_time="${{ inputs.bake_time }}" - end_minute=$(( $(date +'%M') + bake_time)) + bake_time=20 + current_minute=$(date +'%M') + end_minute=$(( (current_minute + bake_time) % 60 )) export ETH_RPC_URL="$(kurtosis port print cdk-v1 zkevm-node-rpc-001 http-rpc)" INITIAL_STATUS=$(cast rpc zkevm_verifiedBatchNumber 2>/dev/null) diff --git a/.github/workflows/regression-test-manual-trigger.yml b/.github/workflows/regression-test-manual-trigger.yml index 028e226..d61150d 100644 --- a/.github/workflows/regression-test-manual-trigger.yml +++ b/.github/workflows/regression-test-manual-trigger.yml @@ -49,7 +49,8 @@ jobs: - name: Monitor and report any potential regressions to CI logs run: | bake_time="${{ github.event.inputs.bake_time }}" - end_minute=$(( $(date +'%M') + bake_time)) + current_minute=$(date +'%M') + end_minute=$(( (current_minute + bake_time) % 60 )) export ETH_RPC_URL="$(kurtosis port print cdk-v1 zkevm-node-rpc-001 http-rpc)" INITIAL_STATUS=$(cast rpc zkevm_verifiedBatchNumber 2>/dev/null)