From 38a4cfaa13979ee49b36c3278518c85b329636c1 Mon Sep 17 00:00:00 2001 From: vprashar2929 Date: Thu, 10 Oct 2024 10:55:11 +0530 Subject: [PATCH] chore(ci): remove space reclamation steps for GH runners This commit removes the steps previously used to reclaim space on GH runners. Since we have moved to self-hosted runners with more resources available, these steps are no longer necessary Signed-off-by: vprashar2929 --- .github/workflows/pr-checks.yaml | 11 +---------- tests/run-e2e.sh | 20 -------------------- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/.github/workflows/pr-checks.yaml b/.github/workflows/pr-checks.yaml index 54c57205..630d5caa 100644 --- a/.github/workflows/pr-checks.yaml +++ b/.github/workflows/pr-checks.yaml @@ -134,7 +134,7 @@ jobs: KUBECONFIG: /tmp/.kube/config KIND_WORKER_NODES: 2 - runs-on: ubuntu-latest + runs-on: ubuntu-latest-8-cores steps: - uses: actions/checkout@v3 with: @@ -224,15 +224,6 @@ jobs: - uses: ./.github/compute-version id: version - - name: reclaim space before running tests - run: | - sudo apt-get clean - sudo rm -rf /var/lib/apt/lists/* - sudo rm -rf /tmp/* - sudo rm -rf /opt/hostedtoolcache/CodeQL - sudo rm -rf /opt/hostedtoolcache/Python - df -kh - - name: Run e2e tests run: | ./tests/run-e2e.sh --ci --no-upgrade diff --git a/tests/run-e2e.sh b/tests/run-e2e.sh index 33d9f0ce..a5b12b4b 100755 --- a/tests/run-e2e.sh +++ b/tests/run-e2e.sh @@ -97,7 +97,6 @@ gather_olm() { run_bundle_upgrade() { header "Running Bundle Upgrade" - prune_images_if_ci kind_load_images delete_olm_subscription || true build_bundle @@ -370,7 +369,6 @@ kind_load_image() { run docker pull "$img" run kind load docker-image "$img" - $CI_MODE && run docker image rm "$img" return 0 } @@ -379,34 +377,17 @@ kind_load_images() { while read -r img; do kind_load_image "$img" done < <(yq -r .spec.relatedImages[].image "$OPERATOR_CSV") - prune_images_if_ci info "loading additional images from $TEST_IMAGES_YAML" while read -r img; do kind_load_image "$img" done < <(yq -r .images[].image "$TEST_IMAGES_YAML") - prune_images_if_ci return 0 } -prune_images_if_ci() { - header "Prune Images" - $CI_MODE || { - info "skipping pruning of docker images when not in CI mode" - return 0 - } - # NOTE: ci runs out of disk space at times, hence run images - info "pruning docker images and volumes" - run df -h - run docker images - run docker system prune -a -f --volumes - run df -h -} - deploy_operator() { header "Build and Deploy Operator" - prune_images_if_ci ensure_imgpullpolicy_always_in_yaml kind_load_images delete_olm_subscription || true @@ -414,7 +395,6 @@ deploy_operator() { push_bundle run_bundle wait_for_operator "$OPERATORS_NS" - prune_images_if_ci } ensure_imgpullpolicy_always_in_yaml() {