Skip to content

Commit

Permalink
Replace action to setup minikube with medyagh/setup-minikube (#2178)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
  • Loading branch information
tenzen-y committed Jul 31, 2023
1 parent a20bc85 commit a693848
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 33 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/e2e-test-darts-cifar10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]
5 changes: 1 addition & 4 deletions .github/workflows/e2e-test-enas-cifar10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]
5 changes: 1 addition & 4 deletions .github/workflows/e2e-test-mxnet-mnist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/e2e-test-pytorch-mnist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/e2e-test-simple-pbt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]
5 changes: 1 addition & 4 deletions .github/workflows/e2e-test-tf-mnist-with-summaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]
5 changes: 1 addition & 4 deletions .github/workflows/e2e-test-ui-random-search-postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]
6 changes: 6 additions & 0 deletions .github/workflows/template-publish-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
32 changes: 27 additions & 5 deletions .github/workflows/template-setup-e2e-test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,36 @@ 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 kubectl
uses: azure/setup-kubectl@v3
with:
version: ${{ inputs.kubernetes-version }}

- name: Setup Minikube Cluster
uses: manusa/actions-setup-minikube@v2.7.2
uses: medyagh/setup-minikube@v0.0.14
with:
minikube version: v1.28.0
kubernetes version: ${{ inputs.kubernetes-version }}
start args: --wait-timeout=60s
network-plugin: cni
cni: flannel
driver: none
github token: ${{ env.GITHUB_TOKEN }}
kubernetes-version: ${{ inputs.kubernetes-version }}
minikube-version: 1.31.1
start-args: --wait-timeout=120s

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down

0 comments on commit a693848

Please sign in to comment.