Skip to content

Commit

Permalink
CI: fix tests
Browse files Browse the repository at this point in the history
1. remove all "set up docker"
2. disable trash for vdbench test
3. allow client before v1.1 for version compatible test
4. do not install python2 for mongodb test (package not found)
5. use ubuntu 20 for travis (awscli not found)
  • Loading branch information
SandyXSD committed Aug 24, 2023
1 parent 4e0d8ae commit 8a623bc
Show file tree
Hide file tree
Showing 20 changed files with 7 additions and 61 deletions.
3 changes: 0 additions & 3 deletions .github/actions/clickhouse/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ runs:
with:
go-version: '1.18.x'

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Build linux target
shell: bash
run: make juicefs
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/vdbench/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ runs:
- name: vdbench-big
shell: bash
run: |
./juicefs format ${{inputs.meta_url}} vdbench-big
./juicefs format ${{inputs.meta_url}} vdbench-big --trash-days 0
./juicefs mount -d ${{inputs.meta_url}} ${{ inputs.mount_point }}
vdbench/vdbench -f ./.github/workflows/resources/vdbench_big_file.conf
Expand All @@ -97,7 +97,7 @@ runs:
- name: vdbench-small
shell: bash
run: |
./juicefs format ${{inputs.meta_url}} vdbench-small
./juicefs format ${{inputs.meta_url}} vdbench-small --trash-days 0
./juicefs mount -d ${{inputs.meta_url}} ${{ inputs.mount_point }}
vdbench/vdbench -f ./.github/workflows/resources/vdbench_small_file.conf
Expand Down
1 change: 1 addition & 0 deletions .github/actions/version-compatible/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ runs:
./mc admin user add minio juicedata juicedata
./mc admin policy attach minio consoleAdmin --user juicedata
sudo ./$jfs_bin format --trash-days 0 --storage minio --bucket ${{ inputs.bucket }} --access-key juicedata --secret-key juicedata ${{ inputs.meta_url }} juicefs-version-compatible
sudo ./$jfs_bin config ${{ inputs.meta_url }} --min-client-version 1.0.0
echo "format finished"
;;
"mount")
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/aitests_limitcache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ jobs:
with:
go-version: '1.18.x'

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/elastictest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ jobs:
with:
go-version: '1.18.x'

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/integrationtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ jobs:
with:
go-version: '1.18.x'

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ltpfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ jobs:
with:
go-version: '1.18.x'

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ltpsyscallshead.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ jobs:
with:
go-version: '1.18.x'

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ltpsyscallsmiddle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ jobs:
with:
go-version: '1.18.x'

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ltpsyscallstail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ jobs:
with:
go-version: '1.18.x'

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/mongodb_mmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@ jobs:
go-version: '1.18.x'

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '2.7'
architecture: 'x64'

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master
run: |
sudo rm /usr/bin/python
sudo ln -s python2 /usr/bin/python
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -41,7 +37,6 @@ jobs:
run: |
make juicefs
- name: Run Redis
run: |
sudo docker run -d --name redis -v redis-data:/data \
Expand All @@ -55,8 +50,6 @@ jobs:
run: |
sudo ./juicefs mount -d redis://127.0.0.1:6379/1 /jfs/ --enable-xattr --cache-size 3072 --no-usage-report &
- name: Set up Mongodb
run: |
df -lh
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/mysqltest_bigtable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ jobs:
with:
go-version: '1.18.x'

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/mysqltest_smalltable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ jobs:
with:
go-version: '1.18.x'

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/mysqltest_smalltablelocal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ jobs:
with:
go-version: '1.18.x'

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/mysqltest_smalltablelocalchangedir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ jobs:
with:
go-version: '1.18.x'

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/pjdfstest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ jobs:
with:
go-version: '1.18.x'

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.34'
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/sdktest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ jobs:
with:
go-version: '1.18.x'

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/sysbench_smallfile_randrw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ jobs:
with:
go-version: '1.18.x'

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/sysbench_smallfile_seqrw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ jobs:
with:
go-version: '1.18.x'

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
os: linux
dist: xenial
dist: focal
language: go
cache:
directories:
Expand Down

0 comments on commit 8a623bc

Please sign in to comment.