diff --git a/.github/workflows/canary-test-config/action.yaml b/.github/workflows/canary-test-config/action.yaml index 2f939978c..1feb8c266 100644 --- a/.github/workflows/canary-test-config/action.yaml +++ b/.github/workflows/canary-test-config/action.yaml @@ -8,18 +8,12 @@ inputs: runs: using: "composite" steps: - - name: manually remove gcloud - shell: bash --noprofile --norc -eo pipefail -x {0} - run: | - tests/scripts/github-action-helper.sh remove_gcloud_in_runner - - name: Free Disk Space (Ubuntu) uses: jlumbroso/free-disk-space@main with: # this might remove tools that are actually needed, # if set to "true" but frees about 6 GB tool-cache: true - large-packages: false - name: setup golang uses: actions/setup-go@v2 diff --git a/.github/workflows/integration-test-config-latest-k8s/action.yaml b/.github/workflows/integration-test-config-latest-k8s/action.yaml index 04769d4b4..45646b8d1 100644 --- a/.github/workflows/integration-test-config-latest-k8s/action.yaml +++ b/.github/workflows/integration-test-config-latest-k8s/action.yaml @@ -11,18 +11,12 @@ inputs: runs: using: "composite" steps: - - name: manually remove gcloud - shell: bash --noprofile --norc -eo pipefail -x {0} - run: | - tests/scripts/github-action-helper.sh remove_gcloud_in_runner - - name: Free Disk Space (Ubuntu) uses: jlumbroso/free-disk-space@main with: # this might remove tools that are actually needed, # if set to "true" but frees about 6 GB tool-cache: true - large-packages: false - name: setup golang uses: actions/setup-go@v2 diff --git a/tests/scripts/github-action-helper.sh b/tests/scripts/github-action-helper.sh index 95b142e2e..b5dbd1f45 100755 --- a/tests/scripts/github-action-helper.sh +++ b/tests/scripts/github-action-helper.sh @@ -679,26 +679,6 @@ function test_csi_nfs_workload { kubectl exec -t pod/csinfs-demo-pod -- ls -alh /var/lib/www/html/ } -function remove_gcloud_in_runner() { - gcloud_sdk_root=$(gcloud info --format='value(installation.sdk_root)') - gcloud_global_config=$(gcloud info --format='value(config.paths.global_config_dir)') - - echo "will remove directory : $gcloud_sdk_root" - echo "will remove directory : $gcloud_global_config" - - sudo rm -fr "$gcloud_sdk_root" - sudo rm -fr "$gcloud_global_config" - - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y '^llvm-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get remove -y '^mongodb-.*' - sudo apt-get remove -y '^mysql-.*' - sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri - sudo apt-get autoremove -y - sudo apt-get clean -} - function install_minikube_with_none_driver() { CRICTL_VERSION="v1.28.0" MINIKUBE_VERSION="v1.31.2"