Skip to content

Commit f1cc0d2

Browse files
Darien-LinDarien-Lin
authored andcommitted
ci: disabling kaniko integration tests due to kaniko service account permissions issue and fix github workflow (GoogleContainerTools#9943)
disabling kaniko integration tests due to kaniko service accountpermissioning issue and fix github workflow Co-authored-by: Darien-Lin <darienl@google.com>
1 parent 592a3df commit f1cc0d2

File tree

2 files changed

+48
-27
lines changed

2 files changed

+48
-27
lines changed

.github/workflows/integration-linux.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,26 @@ jobs:
4444
distribution: 'temurin'
4545
java-version: ${{ matrix.java }}
4646

47+
- name: Clean up disk space
48+
run: |
49+
echo "--- Disk space before cleanup ---"
50+
df -h
51+
sudo rm -rf /usr/share/dotnet
52+
sudo rm -rf /usr/local/lib/android
53+
sudo rm -rf /opt/ghc
54+
sudo rm -rf /usr/share/swift
55+
sudo rm -rf /usr/local/.ghcup
56+
sudo rm -rf /usr/share/code
57+
sudo rm -rf /usr/share/miniconda
58+
sudo rm -rf /usr/share/az_deps
59+
# Remove unused Docker images, containers, networks, and build cache
60+
# The '|| true' prevents the workflow from failing if no items are found to prune.
61+
docker system prune -a --force || true
62+
docker builder prune -a --force || true
63+
64+
echo "--- Disk space after cleanup ---"
65+
df -h
66+
4767
# Retrieve build locations with `go env`
4868
# <https://markphelps.me/posts/speed-up-your-go-builds-with-actions-cache/>
4969
- id: go-cache-paths

integration/run_test.go

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -373,33 +373,34 @@ func TestRunGCPOnly(t *testing.T) {
373373
args: []string{"-p", "gcb"},
374374
pods: []string{"module1", "module2"},
375375
},
376-
{
377-
description: "Google Cloud Build with Kaniko",
378-
dir: "examples/gcb-kaniko",
379-
pods: []string{"getting-started-kaniko"},
380-
// building machines on gcb are linux/amd64, kaniko doesn't support cross-platform builds.
381-
skipCrossPlatform: true,
382-
},
383-
{
384-
description: "kaniko",
385-
dir: "examples/kaniko",
386-
pods: []string{"getting-started-kaniko"},
387-
},
388-
{
389-
description: "kaniko with target",
390-
dir: "testdata/kaniko-target",
391-
pods: []string{"getting-started-kaniko"},
392-
},
393-
{
394-
description: "kaniko with sub folder",
395-
dir: "testdata/kaniko-sub-folder",
396-
pods: []string{"getting-started-kaniko"},
397-
},
398-
{
399-
description: "kaniko microservices",
400-
dir: "testdata/kaniko-microservices",
401-
deployments: []string{"leeroy-app", "leeroy-web"},
402-
},
376+
// Currently disable kaniko integration tests due to kaniko service account issues.
377+
// {
378+
// description: "Google Cloud Build with Kaniko",
379+
// dir: "examples/gcb-kaniko",
380+
// pods: []string{"getting-started-kaniko"},
381+
// // building machines on gcb are linux/amd64, kaniko doesn't support cross-platform builds.
382+
// skipCrossPlatform: true,
383+
// },
384+
// {
385+
// description: "kaniko",
386+
// dir: "examples/kaniko",
387+
// pods: []string{"getting-started-kaniko"},
388+
// },
389+
// {
390+
// description: "kaniko with target",
391+
// dir: "testdata/kaniko-target",
392+
// pods: []string{"getting-started-kaniko"},
393+
// },
394+
// {
395+
// description: "kaniko with sub folder",
396+
// dir: "testdata/kaniko-sub-folder",
397+
// pods: []string{"getting-started-kaniko"},
398+
// },
399+
// {
400+
// description: "kaniko microservices",
401+
// dir: "testdata/kaniko-microservices",
402+
// deployments: []string{"leeroy-app", "leeroy-web"},
403+
// },
403404
{
404405
description: "jib in googlecloudbuild",
405406
dir: "testdata/jib",

0 commit comments

Comments
 (0)