diff --git a/.github/scripts/command/load_dump.sh b/.github/scripts/command/load_dump.sh index 531605169625..a21139877e91 100755 --- a/.github/scripts/command/load_dump.sh +++ b/.github/scripts/command/load_dump.sh @@ -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 diff --git a/.github/workflows/load.yml b/.github/workflows/load.yml index de509cb95fc2..5225cc5a0b2b 100644 --- a/.github/workflows/load.yml +++ b/.github/workflows/load.yml @@ -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 @@ -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