diff --git a/.github/workflows/qa-tip-tracking.yml b/.github/workflows/qa-tip-tracking.yml index 3e338cf5603..5be99d8621e 100644 --- a/.github/workflows/qa-tip-tracking.yml +++ b/.github/workflows/qa-tip-tracking.yml @@ -11,7 +11,6 @@ jobs: timeout-minutes: 600 env: ERIGON_REFERENCE_DATA_DIR: /opt/erigon-versions/reference-version/datadir - ERIGON_TESTBED_DATA_DIR: /opt/erigon-testbed/datadir ERIGON_QA_PATH: /home/qarunner/erigon-qa TRACKING_TIME_SECONDS: 14400 # 4 hours TOTAL_TIME_SECONDS: 28800 # 8 hours @@ -34,9 +33,9 @@ jobs: run: | python3 $ERIGON_QA_PATH/test_system/db-producer/pause_production.py || true - - name: Restore Erigon Testbed Data Directory + - name: Clean Erigon Chaindata Directory run: | - rsync -a --delete $ERIGON_REFERENCE_DATA_DIR/ $ERIGON_TESTBED_DATA_DIR/ + rm -rf $ERIGON_REFERENCE_DATA_DIR/chaindata - name: Run Erigon, wait sync and check ability to maintain sync id: test_step @@ -47,7 +46,7 @@ jobs: # 2. Allow time for the Erigon to achieve synchronization # 3. Begin timing the duration that Erigon maintains synchronization python3 $ERIGON_QA_PATH/test_system/qa-tests/tip-tracking/run_and_check_tip_tracking.py \ - ${{ github.workspace }}/build/bin $ERIGON_TESTBED_DATA_DIR $TRACKING_TIME_SECONDS $TOTAL_TIME_SECONDS Erigon3 $CHAIN + ${{ github.workspace }}/build/bin $ERIGON_REFERENCE_DATA_DIR $TRACKING_TIME_SECONDS $TOTAL_TIME_SECONDS Erigon3 $CHAIN # Capture monitoring script exit status test_exit_status=$? @@ -104,7 +103,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: erigon-log - path: ${{ env.ERIGON_TESTBED_DATA_DIR }}/logs/erigon.log + path: ${{ env.ERIGON_REFERENCE_DATA_DIR }}/logs/erigon.log - name: Upload metric plots if: steps.test_step.outputs.test_executed == 'true' @@ -113,10 +112,10 @@ jobs: name: metric-plots path: ${{ github.workspace }}/metrics-${{ env.CHAIN }}-plots* - - name: Delete Erigon Testbed Data Directory + - name: Clean Erigon Chaindata Directory if: always() run: | - rm -rf $ERIGON_TESTBED_DATA_DIR + rm -rf $ERIGON_REFERENCE_DATA_DIR/chaindata - name: Resume the Erigon instance dedicated to db maintenance run: |