Skip to content

Commit

Permalink
CI: test sync between minio and jfs (#5592)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoucheng361 authored Jan 22, 2025
1 parent 6e13f50 commit f66e894
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/scripts/sync/sync_minio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ test_sync_small_files(){
[ $count1 -eq $count2 ]
}

test_sync_big_file_with_jfs(){
prepare_test
[[ ! -f "/tmp/bigfile" ]] && dd if=/dev/urandom of=/tmp/bigfile bs=1M count=1024
./mc cp /tmp/bigfile myminio/myjfs/bigfile
export dst_jfs=$META_URL
timeout 10 ./juicefs sync minio://minioadmin:minioadmin@localhost:9000/myjfs/bigfile jfs://dst_jfs/bigfile --threads=64 --force-update
cmp /tmp/bigfile /jfs/bigfile
}

test_sync_big_file(){
prepare_test
dd if=/dev/urandom of=/tmp/bigfile bs=1M count=1024
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ jobs:
exit 1
fi
- name: upload coverage report
timeout-minutes: 5
continue-on-error: true
uses: ./.github/actions/upload-coverage
with:
UPLOAD_TOKEN: ${{ secrets.CI_COVERAGE_FILE_UPLOAD_AUTH_TOKEN }}

- name: Setup upterm session
if: failure() && (github.event.inputs.debug == 'true' || github.run_attempt != 1)
# if: failure()
Expand Down

0 comments on commit f66e894

Please sign in to comment.