Skip to content

Commit

Permalink
fix download artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoucheng361 committed Jan 24, 2025
1 parent 68be2b1 commit 66aa0bd
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 23 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/command2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,24 @@ jobs:
fi
- name: Download example database
uses: dawidd6/action-download-artifact@v6
timeout-minutes: 5
continue-on-error: true
uses: actions/download-artifact@v4
with:
name: hypothesis-example-db
name: hypothesis-example-db-${{ matrix.meta }}
path: .hypothesis/examples
if_no_artifact_found: warn
workflow_conclusion: completed

- name: Run All
timeout-minutes: 70
continue-on-error: true
timeout-minutes: 60
run: |
sudo -E LOG_LEVEL=WARNING META1=redis META2=${{matrix.meta}} timeout 3600 .github/scripts/command/random.sh test_run_all || code=$?; if [[ $code -eq 124 ]]; then echo test timeout with $code && exit 0; else echo failed with $code && exit $code; fi
sudo -E LOG_LEVEL=WARNING META1=redis META2=${{matrix.meta}} .github/scripts/command/random.sh test_run_all 2>&1 | tee fsrand.log
- name: Check fsrand.log
if: always()
run: |
grep "AssertionError" fsrand.log && exit 1 || true
- name: Upload example database
uses: actions/upload-artifact@v4
if: always()
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/fsrand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,23 @@ jobs:
sudo -E python3 .github/scripts/hypo/fs_acl_test.py
- name: Download example database
uses: dawidd6/action-download-artifact@v6
timeout-minutes: 5
continue-on-error: true
uses: actions/download-artifact@v4
with:
name: hypothesis-example-db
name: hypothesis-example-db-${{ matrix.meta }}
path: .hypothesis/examples
if_no_artifact_found: warn
workflow_conclusion: completed

- name: Test
timeout-minutes: 125
continue-on-error: true
timeout-minutes: 120
run: |
timeout 7200 sudo -E LOG_LEVEL=WARNING python3 .github/scripts/hypo/fs.py 2>&1 | tee fsrand.log || code=$?; if [[ $code -ne 124 && $code -ne 0 ]]; then echo test failed; exit $code; fi
sudo -E LOG_LEVEL=WARNING python3 .github/scripts/hypo/fs.py 2>&1 | tee fsrand.log
- name: check fsrand.log
if: always()
run: |
grep "AssertionError" fsrand.log && exit 1 || true
- name: Upload example database
uses: actions/upload-artifact@v4
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/gateway-random.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,24 +81,29 @@ jobs:
fi
sudo -E SUBDIR=$subdir .github/scripts/command/gateway-random.sh test_run_example
- name: Download example database
uses: dawidd6/action-download-artifact@v6
timeout-minutes: 5
continue-on-error: true
uses: actions/download-artifact@v4
with:
name: hypothesis-example-db
name: hypothesis-example-db-${{ matrix.meta }}
path: .hypothesis/examples
if_no_artifact_found: warn
workflow_conclusion: completed

- name: Test randomly
timeout-minutes: 65
continue-on-error: true
timeout-minutes: 60
run: |
if [[ ${{matrix.meta}} == "tikv" ]]; then
subdir=true
else
subdir=false
fi
sudo -E LOG_LEVEL=WARNING SUBDIR=$subdir timeout 3600 .github/scripts/command/gateway-random.sh test_run_all || code=$?; if [[ $code -eq 124 ]]; then echo test timeout with $code && exit 0; else echo test failed with $code && exit $code; fi
sudo -E LOG_LEVEL=WARNING SUBDIR=$subdir .github/scripts/command/gateway-random.sh test_run_all 2>&1 | tee fsrand.log
- name: check fsrand.log
if: always()
run: |
grep "AssertionError" fsrand.log && exit 1 || true
- name: Upload example database
uses: actions/upload-artifact@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pysdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ jobs:
sudo META_URL=$meta_url python3 .github/scripts/pysdk/pysdk_test.py
- name: Download example database
uses: dawidd6/action-download-artifact@v6
timeout-minutes: 5
continue-on-error: true
uses: actions/download-artifact@v4
with:
name: hypothesis-example-db
name: hypothesis-example-db-${{ matrix.meta }}
path: .hypothesis/examples
if_no_artifact_found: warn
workflow_conclusion: completed

- name: Run file_test.py
run: |
Expand Down

0 comments on commit 66aa0bd

Please sign in to comment.