diff --git a/.github/actions/free-up-disk-space/action.yml b/.github/actions/free-up-disk-space/action.yml index fcf231ae20d..4bf62a61308 100644 --- a/.github/actions/free-up-disk-space/action.yml +++ b/.github/actions/free-up-disk-space/action.yml @@ -60,3 +60,12 @@ runs: echo "Restarting docker ..." sudo systemctl restart docker echo "Docker root dir: $(docker info -f '{{ .DockerRootDir}}')" + + echo "minikube datadir" + sudo mkdir -p /mnt/minikube/data + sudo ln -s /mnt/minikube/data /data + sudo mkdir -p /mnt/minikube/tmp/hostpath_pv + sudo ln -s /mnt/minikube/tmp/hostpath_pv /tmp/hostpath_pv + sudo mkdir -p /mnt/minikube/tmp/hostpath-provisioner + sudo ln -s /mnt/minikube/tmp/hostpath-provisioner /tmp/hostpath-provisioner + diff --git a/.github/workflows/freeup-space.yml b/.github/workflows/freeup-space.yml deleted file mode 100644 index 6d14afe66c3..00000000000 --- a/.github/workflows/freeup-space.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Free up storage space - -on: - pull_request: - -jobs: - freeup-storage: - runs-on: ubuntu-latest - steps: - - name: Before cleanup - run: | - df -Th - - - name: checkout - uses: actions/checkout@v4 - - - name: free up storage - uses: ./.github/actions/free-up-disk-space - - - name: After cleanup - run: | - sf -Th diff --git a/.github/workflows/huggingface-docker-publish.yml b/.github/workflows/huggingface-docker-publish.yml index 61088e62059..49248371c6b 100644 --- a/.github/workflows/huggingface-docker-publish.yml +++ b/.github/workflows/huggingface-docker-publish.yml @@ -25,6 +25,9 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Free-up disk space + uses: ./.github/actions/free-up-disk-space + - name: Run tests run: | if [ -f docker-compose.test.yml ]; then diff --git a/test/scripts/gh-actions/build-server-runtimes.sh b/test/scripts/gh-actions/build-server-runtimes.sh index 2be98aa02e7..1ab2d042629 100755 --- a/test/scripts/gh-actions/build-server-runtimes.sh +++ b/test/scripts/gh-actions/build-server-runtimes.sh @@ -44,18 +44,25 @@ pushd python >/dev/null if [[ " ${types[*]} " =~ "predictor" ]]; then echo "Building Sklearn image" docker buildx build -t ${SKLEARN_IMG} -f sklearn.Dockerfile . + df -hT echo "Building XGB image" docker buildx build -t ${XGB_IMG} -f xgb.Dockerfile . + df -hT echo "Building LGB image" docker buildx build -t ${LGB_IMG} -f lgb.Dockerfile . + df -hT echo "Building PMML image" docker buildx build -t ${PMML_IMG} -f pmml.Dockerfile . + df -hT echo "Building Paddle image" docker buildx build -t ${PADDLE_IMG} -f paddle.Dockerfile . + df -hT echo "Building Custom model gRPC image" docker buildx build -t ${CUSTOM_MODEL_GRPC} -f custom_model_grpc.Dockerfile . + df -hT echo "Building image transformer gRPC image" docker buildx build -t ${CUSTOM_TRANSFORMER_GRPC} -f custom_transformer_grpc.Dockerfile . + df -hT fi if [[ " ${types[*]} " =~ "explainer" ]]; then @@ -71,5 +78,5 @@ pushd python >/dev/null fi popd - +df -hT echo "Done building images"