Skip to content

Commit

Permalink
qa-tests: use a clean prebuilt db (#13414)
Browse files Browse the repository at this point in the history
  • Loading branch information
mriccobene authored Jan 24, 2025
1 parent fe70c4a commit 853f0ed
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/qa-tip-tracking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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=$?
Expand Down Expand Up @@ -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'
Expand All @@ -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: |
Expand Down

0 comments on commit 853f0ed

Please sign in to comment.