From 01285897731544dd5b3c87fcf2c1ca99f791ec77 Mon Sep 17 00:00:00 2001 From: Yuki Iwai Date: Fri, 21 Jul 2023 04:48:48 +0900 Subject: [PATCH] Replace action to set up minikube with medyagh/setup-minikube Signed-off-by: Yuki Iwai --- .github/workflows/e2e-test-darts-cifar10.yaml | 5 +--- .github/workflows/e2e-test-enas-cifar10.yaml | 5 +--- .github/workflows/e2e-test-mxnet-mnist.yaml | 5 +--- .github/workflows/e2e-test-pytorch-mnist.yaml | 5 +--- .github/workflows/e2e-test-simple-pbt.yaml | 5 +--- .../e2e-test-tf-mnist-with-summaries.yaml | 5 +--- .../e2e-test-ui-random-search-postgres.yaml | 5 +--- .../template-publish-image/action.yaml | 6 ++++ .../template-setup-e2e-test/action.yaml | 30 +++++++++++++++---- 9 files changed, 38 insertions(+), 33 deletions(-) diff --git a/.github/workflows/e2e-test-darts-cifar10.yaml b/.github/workflows/e2e-test-darts-cifar10.yaml index ad19d383bf7..878d9e48081 100644 --- a/.github/workflows/e2e-test-darts-cifar10.yaml +++ b/.github/workflows/e2e-test-darts-cifar10.yaml @@ -9,9 +9,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - jobs: e2e: runs-on: ubuntu-20.04 @@ -36,6 +33,6 @@ jobs: strategy: fail-fast: false matrix: - kubernetes-version: ["v1.23.13", "v1.24.7", "v1.25.3"] + kubernetes-version: ["v1.23.17", "v1.24.16", "v1.25.12"] # Comma Delimited experiments: ["darts-cpu"] diff --git a/.github/workflows/e2e-test-enas-cifar10.yaml b/.github/workflows/e2e-test-enas-cifar10.yaml index ad9dfde3d87..a5ca306c2dc 100644 --- a/.github/workflows/e2e-test-enas-cifar10.yaml +++ b/.github/workflows/e2e-test-enas-cifar10.yaml @@ -9,9 +9,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - jobs: e2e: runs-on: ubuntu-20.04 @@ -36,6 +33,6 @@ jobs: strategy: fail-fast: false matrix: - kubernetes-version: ["v1.23.13", "v1.24.7", "v1.25.3"] + kubernetes-version: ["v1.23.17", "v1.24.16", "v1.25.12"] # Comma Delimited experiments: ["enas-cpu"] diff --git a/.github/workflows/e2e-test-mxnet-mnist.yaml b/.github/workflows/e2e-test-mxnet-mnist.yaml index e611a86cc65..46b371d371e 100644 --- a/.github/workflows/e2e-test-mxnet-mnist.yaml +++ b/.github/workflows/e2e-test-mxnet-mnist.yaml @@ -9,9 +9,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - jobs: e2e: runs-on: ubuntu-20.04 @@ -36,7 +33,7 @@ jobs: strategy: fail-fast: false matrix: - kubernetes-version: ["v1.23.13", "v1.24.7", "v1.25.3"] + kubernetes-version: ["v1.23.17", "v1.24.16", "v1.25.12"] # Comma Delimited experiments: # suggestion-hyperopt diff --git a/.github/workflows/e2e-test-pytorch-mnist.yaml b/.github/workflows/e2e-test-pytorch-mnist.yaml index 51bd0428730..67f40e3c1b3 100644 --- a/.github/workflows/e2e-test-pytorch-mnist.yaml +++ b/.github/workflows/e2e-test-pytorch-mnist.yaml @@ -9,9 +9,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - jobs: e2e: runs-on: ubuntu-20.04 @@ -37,7 +34,7 @@ jobs: strategy: fail-fast: false matrix: - kubernetes-version: ["v1.23.13", "v1.24.7", "v1.25.3"] + kubernetes-version: ["v1.23.17", "v1.24.16", "v1.25.12"] # Comma Delimited experiments: - "file-metrics-collector,pytorchjob-mnist" diff --git a/.github/workflows/e2e-test-simple-pbt.yaml b/.github/workflows/e2e-test-simple-pbt.yaml index a2b6f50e103..8d8014c343c 100644 --- a/.github/workflows/e2e-test-simple-pbt.yaml +++ b/.github/workflows/e2e-test-simple-pbt.yaml @@ -9,9 +9,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - jobs: e2e: runs-on: ubuntu-20.04 @@ -36,6 +33,6 @@ jobs: fail-fast: false matrix: # Detail: https://hub.docker.com/r/kindest/node - kubernetes-version: ["v1.23.13", "v1.24.7", "v1.25.3"] + kubernetes-version: ["v1.23.17", "v1.24.16", "v1.25.12"] # Comma Delimited experiments: ["simple-pbt"] diff --git a/.github/workflows/e2e-test-tf-mnist-with-summaries.yaml b/.github/workflows/e2e-test-tf-mnist-with-summaries.yaml index 68a32a77a60..11d4a7f2111 100644 --- a/.github/workflows/e2e-test-tf-mnist-with-summaries.yaml +++ b/.github/workflows/e2e-test-tf-mnist-with-summaries.yaml @@ -9,9 +9,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - jobs: e2e: runs-on: ubuntu-20.04 @@ -36,6 +33,6 @@ jobs: strategy: fail-fast: false matrix: - kubernetes-version: ["v1.23.13", "v1.24.7", "v1.25.3"] + kubernetes-version: ["v1.23.17", "v1.24.16", "v1.25.12"] # Comma Delimited experiments: ["tfjob-mnist-with-summaries"] diff --git a/.github/workflows/e2e-test-ui-random-search-postgres.yaml b/.github/workflows/e2e-test-ui-random-search-postgres.yaml index 89d06dcae27..00b0a3b46b1 100644 --- a/.github/workflows/e2e-test-ui-random-search-postgres.yaml +++ b/.github/workflows/e2e-test-ui-random-search-postgres.yaml @@ -7,9 +7,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - jobs: e2e: runs-on: ubuntu-20.04 @@ -35,4 +32,4 @@ jobs: strategy: fail-fast: false matrix: - kubernetes-version: ["v1.23.13", "v1.24.7", "v1.25.3"] + kubernetes-version: ["v1.23.17", "v1.24.16", "v1.25.12"] diff --git a/.github/workflows/template-publish-image/action.yaml b/.github/workflows/template-publish-image/action.yaml index 5b1620c39e9..ba51edf35f7 100644 --- a/.github/workflows/template-publish-image/action.yaml +++ b/.github/workflows/template-publish-image/action.yaml @@ -28,6 +28,12 @@ runs: sudo rm -rf /opt/ghc sudo rm -rf "/usr/local/share/boost" sudo rm -rf "$AGENT_TOOLSDIRECTORY" + sudo rm -rf /usr/local/lib/android + sudo rm -rf /usr/local/share/powershell + sudo rm -rf /usr/share/swift + + echo "Disk usage after cleanup:" + df -h - name: Set up QEMU uses: docker/setup-qemu-action@v2 diff --git a/.github/workflows/template-setup-e2e-test/action.yaml b/.github/workflows/template-setup-e2e-test/action.yaml index 090ec71b1cf..e8f22ba4d11 100644 --- a/.github/workflows/template-setup-e2e-test/action.yaml +++ b/.github/workflows/template-setup-e2e-test/action.yaml @@ -15,14 +15,34 @@ inputs: runs: using: composite steps: + # This step is a Workaround to avoid the "No space left on device" error. + # ref: https://github.com/actions/runner-images/issues/2840 + - name: Remove unnecessary files + shell: bash + run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + sudo rm -rf /usr/local/lib/android + sudo rm -rf /usr/local/share/powershell + sudo rm -rf /usr/share/swift + + echo "Disk usage after cleanup:" + df -h + - name: Setup Minikube Cluster - uses: manusa/actions-setup-minikube@v2.7.2 + uses: medyagh/setup-minikube@v0.0.13 with: - minikube version: v1.28.0 - kubernetes version: ${{ inputs.kubernetes-version }} - start args: --wait-timeout=60s driver: none - github token: ${{ env.GITHUB_TOKEN }} + kubernetes-version: ${{ inputs.kubernetes-version }} + minikube-version: 1.31.1 + start-args: --wait-timeout=120s + + - name: Setup kubectl + uses: azure/setup-kubectl@v3 + with: + version: ${{ inputs.kubernetes-version }} - name: Setup Docker Buildx uses: docker/setup-buildx-action@v2