Browse code

Revert "ci: run integration tests with firewalld enabled"

Temporarily remove firewallds jobs. These are actually not running
firewalld due to a typo in GHA definitions. Moreover, these new jobs
are putting too much load on the CI, causing GHA cache backend to return
429 for many jobs. This slows down build jobs (as they can't use
existing cache), and at least one buildkit test is now failing.

This reverts commit 4e567e1622a7cc574c5042f0e0e366a239dac292.

Signed-off-by: Albin Kerouanton <albinker@gmail.com>

Albin Kerouanton authored on 2024/10/29 02:24:14
Showing 2 changed files
... ...
@@ -36,12 +36,6 @@ jobs:
36 36
     runs-on: ubuntu-20.04
37 37
     timeout-minutes: 120 # guardrails timeout for the whole job
38 38
     continue-on-error: ${{ github.event_name != 'pull_request' }}
39
-    strategy:
40
-      fail-fast: false
41
-      matrix:
42
-        mode:
43
-          - ""
44
-          - firewalld
45 39
     steps:
46 40
       -
47 41
         name: Checkout
... ...
@@ -50,15 +44,6 @@ jobs:
50 50
         name: Set up runner
51 51
         uses: ./.github/actions/setup-runner
52 52
       -
53
-        name: Prepare
54
-        run: |
55
-          CACHE_DEV_SCOPE=dev
56
-          if [[ "${{ matrix.mod }}" == *"firewalld"* ]]; then
57
-            echo "DOCKER_FIREWALLD=true" >> $GITHUB_ENV
58
-            CACHE_DEV_SCOPE="${CACHE_DEV_SCOPE}firewalld"
59
-          fi
60
-          echo "CACHE_DEV_SCOPE=${CACHE_DEV_SCOPE}" >> $GITHUB_ENV
61
-      -
62 53
         name: Set up Docker Buildx
63 54
         uses: docker/setup-buildx-action@v3
64 55
         with:
... ...
@@ -80,18 +65,11 @@ jobs:
80 80
         name: Prepare reports
81 81
         if: always()
82 82
         run: |
83
-          reportsName=$(echo -n "${{ matrix.test }}" | sha256sum | cut -d " " -f 1)
84
-          if [ -n "${{ matrix.mode }}" ]; then
85
-            reportsName="$reportsName-${{ matrix.mode }}"
86
-          fi
87
-          reportsPath=/tmp/reports/$reportsName
88
-          echo "TESTREPORTS_NAME=$reportsName" >> $GITHUB_ENV
89
-
90
-          mkdir -p bundles $reportsPath
83
+          mkdir -p bundles /tmp/reports
91 84
           find bundles -path '*/root/*overlay2' -prune -o -type f \( -name '*-report.json' -o -name '*.log' -o -name '*.out' -o -name '*.prof' -o -name '*-report.xml' \) -print | xargs sudo tar -czf /tmp/reports.tar.gz
92
-          tar -xzf /tmp/reports.tar.gz -C $reportsPath
93
-          sudo chown -R $(id -u):$(id -g) $reportsPath
94
-          tree -nh $reportsPath
85
+          tar -xzf /tmp/reports.tar.gz -C /tmp/reports
86
+          sudo chown -R $(id -u):$(id -g) /tmp/reports
87
+          tree -nh /tmp/reports
95 88
       -
96 89
         name: Send to Codecov
97 90
         uses: codecov/codecov-action@v4
... ...
@@ -105,7 +83,7 @@ jobs:
105 105
         if: always()
106 106
         uses: actions/upload-artifact@v4
107 107
         with:
108
-          name: test-reports-unit-${{ inputs.storage }}-${{ env.TESTREPORTS_NAME }}
108
+          name: test-reports-unit-${{ inputs.storage }}
109 109
           path: /tmp/reports/*
110 110
           retention-days: 1
111 111
 
... ...
@@ -127,7 +105,7 @@ jobs:
127 127
         name: Download reports
128 128
         uses: actions/download-artifact@v4
129 129
         with:
130
-          pattern: test-reports-unit-${{ inputs.storage }}-*
130
+          name: test-reports-unit-${{ inputs.storage }}
131 131
           path: /tmp/reports
132 132
       -
133 133
         name: Install teststat
... ...
@@ -241,7 +219,6 @@ jobs:
241 241
           - ""
242 242
           - rootless
243 243
           - systemd
244
-          - firewalld
245 244
           #- rootless-systemd FIXME: https://github.com/moby/moby/issues/44084
246 245
     steps:
247 246
       -
... ...
@@ -264,10 +241,6 @@ jobs:
264 264
             echo "SYSTEMD=true" >> $GITHUB_ENV
265 265
             CACHE_DEV_SCOPE="${CACHE_DEV_SCOPE}systemd"
266 266
           fi
267
-          if [[ "${{ matrix.mod }}" == *"firewalld"* ]]; then
268
-            echo "DOCKER_FIREWALLD=true" >> $GITHUB_ENV
269
-            CACHE_DEV_SCOPE="${CACHE_DEV_SCOPE}firewalld"
270
-          fi
271 267
           echo "CACHE_DEV_SCOPE=${CACHE_DEV_SCOPE}" >> $GITHUB_ENV
272 268
       -
273 269
         name: Set up Docker Buildx
... ...
@@ -407,9 +380,6 @@ jobs:
407 407
       fail-fast: false
408 408
       matrix:
409 409
         test: ${{ fromJson(needs.integration-cli-prepare.outputs.matrix) }}
410
-        mode:
411
-          - ""
412
-          - firewalld
413 410
     steps:
414 411
       -
415 412
         name: Checkout
... ...
@@ -421,15 +391,6 @@ jobs:
421 421
         name: Set up tracing
422 422
         uses: ./.github/actions/setup-tracing
423 423
       -
424
-        name: Prepare
425
-        run: |
426
-          CACHE_DEV_SCOPE=dev
427
-          if [[ "${{ matrix.mod }}" == *"firewalld"* ]]; then
428
-            echo "DOCKER_FIREWALLD=true" >> $GITHUB_ENV
429
-            CACHE_DEV_SCOPE="${CACHE_DEV_SCOPE}firewalld"
430
-          fi
431
-          echo "CACHE_DEV_SCOPE=${CACHE_DEV_SCOPE}" >> $GITHUB_ENV
432
-      -
433 424
         name: Set up Docker Buildx
434 425
         uses: docker/setup-buildx-action@v3
435 426
         with:
... ...
@@ -456,9 +417,6 @@ jobs:
456 456
         if: always()
457 457
         run: |
458 458
           reportsName=$(echo -n "${{ matrix.test }}" | sha256sum | cut -d " " -f 1)
459
-          if [ -n "${{ matrix.mode }}" ]; then
460
-            reportsName="$reportsName-${{ matrix.mode }}"
461
-          fi
462 459
           reportsPath=/tmp/reports/$reportsName
463 460
           echo "TESTREPORTS_NAME=$reportsName" >> $GITHUB_ENV
464 461
           
... ...
@@ -59,7 +59,7 @@ fi
59 59
 # Allow connections coming from the host (through eth0). This is needed to
60 60
 # access the daemon port (independently of which port is used), or run a
61 61
 # 'remote' Delve session, etc...
62
-if [ "${DOCKER_FIREWALLD:-}" = "true" ]; then
62
+if [ ${DOCKER_FIREWALLD:-} = "true" ]; then
63 63
 	cat > /etc/firewalld/zones/trusted.xml << EOF
64 64
 <?xml version="1.0" encoding="utf-8"?>
65 65
 <zone target="ACCEPT">
... ...
@@ -76,7 +76,7 @@ env > /etc/docker-entrypoint-env
76 76
 cat > /etc/systemd/system/docker-entrypoint.target << EOF
77 77
 [Unit]
78 78
 Description=the target for docker-entrypoint.service
79
-Requires=docker-entrypoint.service systemd-logind.service systemd-user-sessions.service $([ "${DOCKER_FIREWALLD:-}" = "true" ] && echo firewalld.service)
79
+Requires=docker-entrypoint.service systemd-logind.service systemd-user-sessions.service $([ ${DOCKER_FIREWALLD:-} = "true" ] && echo firewalld.service)
80 80
 EOF
81 81
 
82 82
 quoted_args="$(printf " %q" "${@}")"