Skip to content

Commit

Permalink
add more test in nightly ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zwwhdls committed Jul 5, 2023
1 parent b932165 commit ee85019
Showing 1 changed file with 94 additions and 0 deletions.
94 changes: 94 additions & 0 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,102 @@ jobs:
value=`printf '%s\n' "${testmode[@]}" | jq -R . | jq -cs .`
echo "value: $value"
echo "matrix=$value" >> $GITHUB_OUTPUT
wtestmode=("pod" "pod-mount-share" "pod-provisioner")
value=`printf '%s\n' "${wtestmode[@]}" | jq -R . | jq -cs .`
echo "value without kubelet: $value"
echo "wmatrix=$value" >> $GITHUB_OUTPUT
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
wmatrix: ${{ steps.set-matrix.outputs.wmatrix }}

e2e-ce-without-kubelet-test:
runs-on: ubuntu-latest
needs: build-matrix
strategy:
fail-fast: false
matrix:
testmode: ${{ fromJson(needs.build-matrix.outputs.wmatrix) }}
steps:
- uses: actions/checkout@v2
- name: Build docker image nightly
# env:
# JFSCHAN: beta
run: |
make image-nightly
- name: Prepare microk8s environment
run: |
${GITHUB_WORKSPACE}/.github/scripts/k8s-deps.sh
docker image save -o juicefs-csi-driver-nightly.tar juicedata/juicefs-csi-driver:nightly
sudo microk8s.ctr image import juicefs-csi-driver-nightly.tar
rm -f juicefs-csi-driver-nightly.tar
- name: Deploy JuiceFS CSI
run: |
testmode=${{matrix.testmode}}
export dev_tag=nightly
.github/scripts/deploy-csi-in-k8s.sh ${testmode} withoutkubelet
- name: Run e2e test
env:
JUICEFS_STORAGE: s3
JUICEFS_BUCKET: "http://juicefs-bucket.minio.default.svc.cluster.local:9000"
JUICEFS_ACCESS_KEY: "minioadmin"
JUICEFS_SECRET_KEY: "minioadmin"
JUICEFS_NAME: "ce-secret"
JUICEFS_META_URL: "redis://redis.default.svc.cluster.local:6379/1"
JUICEFS_MODE: ce
TEST_MODE: ${{matrix.testmode}}
run: |
cd ${GITHUB_WORKSPACE}/.github/scripts/
python3 e2e-test.py
- name: Setup upterm session
if: ${{ failure() }}
timeout-minutes: 60
uses: lhotari/action-upterm@v1

e2e-ee-without-kubelet-test:
runs-on: ubuntu-latest
needs: build-matrix
strategy:
fail-fast: false
matrix:
testmode: ${{ fromJson(needs.build-matrix.outputs.wmatrix) }}
steps:
- uses: actions/checkout@v2
- name: Build docker image nightly
# env:
# JFSCHAN: beta
run: |
make image-nightly
- name: Prepare microk8s environment
run: |
${GITHUB_WORKSPACE}/.github/scripts/k8s-deps.sh
docker image save -o juicefs-csi-driver-nightly.tar juicedata/juicefs-csi-driver:nightly
sudo microk8s.ctr image import juicefs-csi-driver-nightly.tar
rm -f juicefs-csi-driver-nightly.tar
- name: Deploy JuiceFS CSI
run: |
testmode=${{matrix.testmode}}
cd ${GITHUB_WORKSPACE}
export dev_tag=nightly
.github/scripts/deploy-csi-in-k8s.sh ${testmode} withoutkubelet
- name: Run e2e test
env:
JUICEFS_TOKEN: ${{ secrets.JUICEFS_CI_VOLUME_TOKEN }}
JUICEFS_STORAGE: s3
JUICEFS_BUCKET: "http://juicefs-bucket.minio.default.svc.cluster.local:9000"
JUICEFS_ACCESS_KEY: "minioadmin"
JUICEFS_SECRET_KEY: "minioadmin"
JUICEFS_NAME: "csi-ci"
JUICEFS_META_URL: ""
JUICEFS_MODE: "ee"
TEST_MODE: ${{matrix.testmode}}
run: |
cd ${GITHUB_WORKSPACE}/.github/scripts/
python3 e2e-test.py
- name: Setup upterm session
if: ${{ failure() }}
timeout-minutes: 60
uses: lhotari/action-upterm@v1

e2e-ce-test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ee85019

Please sign in to comment.