diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a5de4a0..c8b5221 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -99,7 +99,7 @@ jobs: fail-fast: false matrix: config: - - truenas/core-iscsi.yaml + - truenas/core/13.0/core-iscsi.yaml - truenas/core/13.0/core-nfs.yaml # 80 char limit #- truenas/core-smb.yaml diff --git a/ci/bin/run.sh b/ci/bin/run.sh index c6eedb0..9aa0898 100755 --- a/ci/bin/run.sh +++ b/ci/bin/run.sh @@ -23,7 +23,20 @@ sudo -E ci/bin/launch-server.sh & SUDO_PID=$! # wait for server to launch -sleep 10 +#sleep 10 + +: ${CSI_ENDPOINT:=/tmp/csi-${CI_BUILD_KEY}.sock} +iter=0 +max_iter=60 +while [ ! -f "${CSI_ENDPOINT}" ];do + ((++iter)) + echo "waiting for ${CSI_ENDPOINT} to appear" + sleep 1 + if [[ $iter -gt $max_iter ]];then + echo "${CSI_ENDPOINT} failed to appear" + exit 1 + fi +done # launch csi-sanity sudo -E ci/bin/launch-csi-sanity.sh