Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoucheng361 committed Jan 20, 2025
1 parent 205c69c commit c1b83d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/scripts/command/load_dump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ test_dump_load_big_dir(){
echo "hello" > /jfs/test/dir$i/hello.txt
ln -s /jfs/test/dir$i/hello.txt /jfs/test/dir$i/hello_link.txt
# ln /jfs/test/dir$i/hello.txt /jfs/test/dir$i/hello_hardlink.txt
# xattr -w user.test $i /jfs/test/dir$i/hello.txt
# ./juicefs quota set $META_URL --path /test/dir$i --inodes 1000 --capacity 1
xattr -w user.test $i /jfs/test/dir$i/hello.txt
./juicefs quota set $META_URL --path /test/dir$i --inodes 1000 --capacity 1
# setfacl -m u:root:rwx /jfs/test/dir$i
done
./juicefs dump $META_URL dump.json $(get_dump_option)
if [[ "$BINARY" == "true" ]]; then
# symlinks=$(./juicefs load dump.json --binary --stat | grep symlink | awk -F"|" '{print $2}')
# xattrs=$(./juicefs load dump.json --binary --stat | grep xattr | awk -F"|" '{print $2}')
# quota=$(./juicefs load dump.json --binary --stat | grep quota | awk -F"|" '{print $2}')
# acl=$(./juicefs load dump.json --binary --stat | grep acl | awk -F"|" '{print $2}')
symlinks=$(./juicefs load dump.json --binary --stat | grep symlink | awk -F"|" '{print $2}')
xattrs=$(./juicefs load dump.json --binary --stat | grep xattr | awk -F"|" '{print $2}')
quota=$(./juicefs load dump.json --binary --stat | grep quota | awk -F"|" '{print $2}')
acl=$(./juicefs load dump.json --binary --stat | grep acl | awk -F"|" '{print $2}')
[[ "$symlinks" -eq "$count" ]] || (echo "symlinks($symlinks) should be $count" && exit 1)
# [[ "$xattrs" -eq "$count" ]] || (echo "xattrs($xattrs) should be $count" && exit 1)
# [[ "$quota" -eq "$count" ]] || (echo "quota($quota) should be $count" && exit 1)
[[ "$xattrs" -eq "$count" ]] || (echo "xattrs($xattrs) should be $count" && exit 1)
[[ "$quota" -eq "$count" ]] || (echo "quota($quota) should be $count" && exit 1)
# [[ "$acl" -eq "$count" ]] || (echo "acl($acl) should be $count" && exit 1)
fi
umount_jfs /jfs $META_URL
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/load.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Test Load & Dump with Binary
timeout-minutes: 30
run: |
sudo BINARY=true GOCOVERDIR=$(pwd)/cover META=${{matrix.meta}} .github/scripts/command/load_dump.sh
sudo BINARY=true GOCOVERDIR=$(pwd)/cover META=${{matrix.meta}} .github/scripts/command/load_dump.sh test_dump_load_big_dir
- name: Test Load & Dump with Json Fast Mode
if: false
Expand Down Expand Up @@ -157,8 +157,8 @@ jobs:
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()
# if: failure() && (github.event.inputs.debug == 'true' || github.run_attempt != 1)
if: failure()
timeout-minutes: 60
uses: lhotari/action-upterm@v1

Expand Down

0 comments on commit c1b83d9

Please sign in to comment.