Skip to content

Commit

Permalink
CI: fix storage & gluster test (#4199)
Browse files Browse the repository at this point in the history
Co-authored-by: Zhou Cheng <[email protected]>
  • Loading branch information
SandyXSD and zhoucheng361 authored Nov 27, 2023
1 parent 29b4a5b commit 2ba4130
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/command/sync_minio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ prepare_test(){
(./mc rb myminio/myjfs > /dev/null 2>&1 --force || true) && ./mc mb myminio/myjfs
./juicefs format $META_URL myjfs
./juicefs mount -d $META_URL /jfs
lsof -i :9005 | awk 'NR!=1 {print $2}' | xargs -r kill -9
lsof -i :9005 | awk 'NR!=1 {print $2}' | xargs -r kill -9 || true
MINIO_ROOT_USER=minioadmin MINIO_ROOT_PASSWORD=minioadmin ./juicefs gateway $META_URL localhost:9005 &
./mc alias set juicegw http://localhost:9005 minioadmin minioadmin --api S3v4
}
Expand Down
5 changes: 3 additions & 2 deletions .github/scripts/storage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ test_with_big_file(){
rm -rf /var/jfsCache/myjfs
./juicefs mount $META_URL /jfs -d
compare_md5sum /tmp/bigfile /jfs/bigfile
rm -rf /tmp/bigfile
}

test_with_fio(){
prepare_test
./juicefs mount $META_URL /jfs -d
dpkg -s fio || .github/scripts/apt_install.sh fio
fio --name=randrw --ioengine=sync --time_based=1 --runtime=180 --group_reporting \
--bs=128k --filesize=1G --numjobs=1 --rw=randrw --verify=md5 --filename=/jfs/fio
fio --name=randrw --ioengine=sync --time_based=1 --runtime=60 --group_reporting \
--bs=128k --filesize=128M --numjobs=1 --rw=randrw --verify=md5 --filename=/jfs/fio
}

test_random_read_write(){
Expand Down

0 comments on commit 2ba4130

Please sign in to comment.