diff --git a/.github/workflows/kind.yml b/.github/workflows/kind.yml index 5376ae1df..f280434a9 100644 --- a/.github/workflows/kind.yml +++ b/.github/workflows/kind.yml @@ -177,8 +177,10 @@ jobs: test-upgrade-from-N-1: name: Upgrade from Theia version N-1 needs: + - build-spark-jobs-image - build-clickhouse-monitor-image - - build-clickhouse-server-image + - build-clickhouse-server-image + - build-theia-manager-image runs-on: [ubuntu-latest] steps: - name: Free disk space @@ -195,22 +197,32 @@ jobs: - uses: actions/setup-go@v4 with: go-version-file: 'go.mod' + - name: Download Spark jobs images from previous jobs + uses: actions/download-artifact@v3 + with: + name: spark-jobs - name: Download ClickHouse monitor images from previous jobs uses: actions/download-artifact@v3 with: name: clickhouse-monitor - - name: Load Theia image - run: | - docker load -i clickhouse-monitor.tar - docker tag antrea/theia-clickhouse-monitor:latest projects.registry.vmware.com/antrea/theia-clickhouse-monitor:latest - name: Download ClickHouse server images from previous jobs uses: actions/download-artifact@v3 with: name: clickhouse-server + - name: Download Theia Manager images from previous jobs + uses: actions/download-artifact@v3 + with: + name: theia-manager - name: Load Theia image run: | + docker load -i spark-jobs.tar + docker tag antrea/theia-spark-jobs:latest projects.registry.vmware.com/antrea/theia-spark-jobs:latest + docker load -i clickhouse-monitor.tar + docker tag antrea/theia-clickhouse-monitor:latest projects.registry.vmware.com/antrea/theia-clickhouse-monitor:latest docker load -i clickhouse-server.tar docker tag antrea/theia-clickhouse-server:latest projects.registry.vmware.com/antrea/theia-clickhouse-server:latest + docker load -i theia-manager.tar + docker tag antrea/theia-manager:latest projects.registry.vmware.com/antrea/theia-manager:latest - name: Install Kind run: | curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-$(uname)-amd64 @@ -256,7 +268,7 @@ jobs: uses: actions/download-artifact@v3 with: name: clickhouse-monitor - - name: Load Theia image + - name: Load Theia clickhouse-monitor image run: | docker load -i clickhouse-monitor.tar docker tag antrea/theia-clickhouse-monitor:latest projects.registry.vmware.com/antrea/theia-clickhouse-monitor:latest @@ -264,7 +276,7 @@ jobs: uses: actions/download-artifact@v3 with: name: clickhouse-server - - name: Load Theia image + - name: Load Theia clickhouse-server image run: | docker load -i clickhouse-server.tar docker tag antrea/theia-clickhouse-server:latest projects.registry.vmware.com/antrea/theia-clickhouse-server:latest diff --git a/ci/kind/kind-setup.sh b/ci/kind/kind-setup.sh index 1bd32e081..2387cf901 100755 --- a/ci/kind/kind-setup.sh +++ b/ci/kind/kind-setup.sh @@ -206,6 +206,7 @@ function load_images { continue fi echo "loaded image $img" + df -h done set -e } diff --git a/ci/kind/test-upgrade-theia.sh b/ci/kind/test-upgrade-theia.sh index 46e10a6cf..9fea118f1 100755 --- a/ci/kind/test-upgrade-theia.sh +++ b/ci/kind/test-upgrade-theia.sh @@ -189,20 +189,27 @@ DOCKER_IMAGES=("registry.k8s.io/e2e-test-images/agnhost:2.29" \ "projects.registry.vmware.com/antrea/antrea-ubuntu:$ANTREA_FROM_TAG" \ "projects.registry.vmware.com/antrea/theia-clickhouse-monitor:$THEIA_FROM_TAG" \ "projects.registry.vmware.com/antrea/theia-clickhouse-server:$CLICKHOUSE_FROM_TAG" \ + "projects.registry.vmware.com/antrea/theia-manager:$THEIA_FROM_TAG" \ "antrea/antrea-ubuntu:latest") +# delete old images first +docker image prune -f --filter "until=1h" || true > /dev/null + for img in "${DOCKER_IMAGES[@]}"; do echo "Pulling $img" for i in `seq 3`; do docker pull $img > /dev/null && break + df -h sleep 1 done done DOCKER_IMAGES+=("projects.registry.vmware.com/antrea/theia-clickhouse-monitor:latest\ - projects.registry.vmware.com/antrea/theia-clickhouse-server:latest") + projects.registry.vmware.com/antrea/theia-clickhouse-server:latest\ + projects.registry.vmware.com/antrea/theia-manager:latest\ + projects.registry.vmware.com/antrea/theia-spark-jobs:latest") -echo "Creating Kind cluster" +echo "Creating Kind cluster " IMAGES="${DOCKER_IMAGES[@]}" $THIS_DIR/kind-setup.sh create kind --images "$IMAGES"