Skip to content

Commit

Permalink
qa-tests: fix the cause of rpc tests failing intermittently (#13871)
Browse files Browse the repository at this point in the history
In this PR we try to save and then restore the previous chaindata.
  • Loading branch information
mriccobene authored Feb 20, 2025
1 parent 7443f2a commit 716e474
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/qa-tip-tracking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
run: |
python3 $ERIGON_QA_PATH/test_system/db-producer/pause_production.py || true
- name: Clean Erigon Chaindata Directory
- name: Save Erigon Chaindata Directory
id: save_chaindata_step
run: |
rm -rf $ERIGON_REFERENCE_DATA_DIR/chaindata
mv $ERIGON_REFERENCE_DATA_DIR/chaindata $ERIGON_TESTBED_AREA/chaindata-prev
- name: Run Erigon, wait sync and check ability to maintain sync
id: test_step
Expand Down Expand Up @@ -115,10 +116,11 @@ jobs:
name: metric-plots
path: ${{ github.workspace }}/metrics-${{ env.CHAIN }}-plots*

- name: Clean Erigon Chaindata Directory
if: always()
- name: Restore Erigon Chaindata Directory
if: steps.save_chaindata_step.outcome == 'success'
run: |
rm -rf $ERIGON_REFERENCE_DATA_DIR/chaindata
mv $ERIGON_TESTBED_AREA/chaindata-prev $ERIGON_REFERENCE_DATA_DIR/chaindata
- name: Resume the Erigon instance dedicated to db maintenance
run: |
Expand Down

0 comments on commit 716e474

Please sign in to comment.