From 301af17421ce5bf4d4f19acc00e65c87b699332b Mon Sep 17 00:00:00 2001 From: Travis Glenn Hansen Date: Thu, 5 May 2022 16:00:39 -0600 Subject: [PATCH] add nfs-client and smb-client to test matrix Signed-off-by: Travis Glenn Hansen --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ ci/bin/build.ps1 | 11 +++++++++++ ci/configs/client/nfs.yaml | 10 ++++++++++ ci/configs/client/smb.yaml | 10 ++++++++++ 4 files changed, 60 insertions(+) create mode 100644 ci/configs/client/nfs.yaml create mode 100644 ci/configs/client/smb.yaml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d00bdd8..c6285eb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -245,6 +245,35 @@ jobs: SERVER_USERNAME: ${{ secrets.SANITY_ZFS_GENERIC_USERNAME }} SERVER_PASSWORD: ${{ secrets.SANITY_ZFS_GENERIC_PASSWORD }} + # client drivers + csi-sanity-client: + needs: + - build-npm-linux-amd64 + strategy: + fail-fast: false + matrix: + config: + - client/nfs.yaml + - client/smb.yaml + runs-on: + - self-hosted + - Linux + - X64 + - csi-sanity-zfs-generic + steps: + - uses: actions/checkout@v2 + - uses: actions/download-artifact@v2 + with: + name: node-modules-linux-amd64 + - name: csi-sanity + run: | + # run tests + ci/bin/run.sh + env: + TEMPLATE_CONFIG_FILE: "./ci/configs/${{ matrix.config }}" + SERVER_HOST: ${{ secrets.SANITY_ZFS_GENERIC_HOST }} + SHARE_NAME: tank_client_smb + # zfs-local drivers csi-sanity-zfs-local: needs: diff --git a/ci/bin/build.ps1 b/ci/bin/build.ps1 index 7f3f8ad..5b7deb9 100644 --- a/ci/bin/build.ps1 +++ b/ci/bin/build.ps1 @@ -1,8 +1,19 @@ +Write-Output "current user" +whoami +Write-Output "current working directory" +(Get-Location).Path +Write-Output "current PATH" +$Env:PATH + +Write-Output "node version" node --version +Write-Output "npm version" npm --version # install deps +Write-Output "running npm i" npm i +Write-Output "creating tar.gz" # tar node_modules to keep the number of files low to upload tar -zcf node_modules-windows-amd64.tar.gz node_modules diff --git a/ci/configs/client/nfs.yaml b/ci/configs/client/nfs.yaml new file mode 100644 index 0000000..a3a6f5e --- /dev/null +++ b/ci/configs/client/nfs.yaml @@ -0,0 +1,10 @@ +driver: nfs-client +instance_id: +nfs: + shareHost: ${SERVER_HOST} + shareBasePath: "/mnt/tank/client/nfs/${CI_BUILD_KEY}" + # shareHost:shareBasePath should be mounted at this location in the controller container + controllerBasePath: "/mnt/client/nfs/${CI_BUILD_KEY}" + dirPermissionsMode: "0777" + dirPermissionsUser: root + dirPermissionsGroup: wheel diff --git a/ci/configs/client/smb.yaml b/ci/configs/client/smb.yaml new file mode 100644 index 0000000..8ce57c0 --- /dev/null +++ b/ci/configs/client/smb.yaml @@ -0,0 +1,10 @@ +driver: smb-client +instance_id: +smb: + shareHost: ${SERVER_HOST} + shareBasePath: "${SHARE_NAME}/${CI_BUILD_KEY}" + # shareHost:shareBasePath should be mounted at this location in the controller container + controllerBasePath: "/mnt/client/smb/${CI_BUILD_KEY}" + dirPermissionsMode: "0777" + dirPermissionsUser: root + dirPermissionsGroup: wheel