Jelajahi Sumber

ci: Always run snapshotter tests on Linux

Now that we have a green CI on linux we can enable this for all PRs.

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
Djordje Lukic 1 tahun lalu
induk
melakukan
bd481592ff
2 mengubah file dengan 13 tambahan dan 16 penghapusan
  1. 9 9
      .github/workflows/.test.yml
  2. 4 7
      .github/workflows/test.yml

+ 9 - 9
.github/workflows/.test.yml

@@ -23,7 +23,7 @@ env:
 jobs:
 jobs:
   unit:
   unit:
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04
-    continue-on-error: ${{ inputs.storage == 'snapshotter' && github.event_name != 'pull_request' }}
+    continue-on-error: ${{ github.event_name != 'pull_request' }}
     timeout-minutes: 120
     timeout-minutes: 120
     steps:
     steps:
       -
       -
@@ -72,7 +72,7 @@ jobs:
 
 
   unit-report:
   unit-report:
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04
-    continue-on-error: ${{ inputs.storage == 'snapshotter' && github.event_name != 'pull_request' }}
+    continue-on-error: ${{ github.event_name != 'pull_request' }}
     timeout-minutes: 10
     timeout-minutes: 10
     if: always()
     if: always()
     needs:
     needs:
@@ -100,7 +100,7 @@ jobs:
 
 
   docker-py:
   docker-py:
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04
-    continue-on-error: ${{ inputs.storage == 'snapshotter' && github.event_name != 'pull_request' }}
+    continue-on-error: ${{ github.event_name != 'pull_request' }}
     timeout-minutes: 120
     timeout-minutes: 120
     steps:
     steps:
       -
       -
@@ -152,7 +152,7 @@ jobs:
 
 
   integration-flaky:
   integration-flaky:
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04
-    continue-on-error: ${{ inputs.storage == 'snapshotter' && github.event_name != 'pull_request' }}
+    continue-on-error: ${{ github.event_name != 'pull_request' }}
     timeout-minutes: 120
     timeout-minutes: 120
     steps:
     steps:
       -
       -
@@ -180,7 +180,7 @@ jobs:
 
 
   integration:
   integration:
     runs-on: ${{ matrix.os }}
     runs-on: ${{ matrix.os }}
-    continue-on-error: ${{ inputs.storage == 'snapshotter' && github.event_name != 'pull_request' }}
+    continue-on-error: ${{ github.event_name != 'pull_request' }}
     timeout-minutes: 120
     timeout-minutes: 120
     strategy:
     strategy:
       fail-fast: false
       fail-fast: false
@@ -269,7 +269,7 @@ jobs:
 
 
   integration-report:
   integration-report:
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04
-    continue-on-error: ${{ inputs.storage == 'snapshotter' && github.event_name != 'pull_request' }}
+    continue-on-error: ${{ github.event_name != 'pull_request' }}
     timeout-minutes: 10
     timeout-minutes: 10
     if: always()
     if: always()
     needs:
     needs:
@@ -297,7 +297,7 @@ jobs:
 
 
   integration-cli-prepare:
   integration-cli-prepare:
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04
-    continue-on-error: ${{ inputs.storage == 'snapshotter' && github.event_name != 'pull_request' }}
+    continue-on-error: ${{ github.event_name != 'pull_request' }}
     outputs:
     outputs:
       matrix: ${{ steps.tests.outputs.matrix }}
       matrix: ${{ steps.tests.outputs.matrix }}
     steps:
     steps:
@@ -332,7 +332,7 @@ jobs:
 
 
   integration-cli:
   integration-cli:
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04
-    continue-on-error: ${{ inputs.storage == 'snapshotter' && github.event_name != 'pull_request' }}
+    continue-on-error: ${{ github.event_name != 'pull_request' }}
     timeout-minutes: 120
     timeout-minutes: 120
     needs:
     needs:
       - integration-cli-prepare
       - integration-cli-prepare
@@ -403,7 +403,7 @@ jobs:
 
 
   integration-cli-report:
   integration-cli-report:
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04
-    continue-on-error: ${{ inputs.storage == 'snapshotter' && github.event_name != 'pull_request' }}
+    continue-on-error: ${{ github.event_name != 'pull_request' }}
     timeout-minutes: 10
     timeout-minutes: 10
     if: always()
     if: always()
     needs:
     needs:

+ 4 - 7
.github/workflows/test.yml

@@ -52,20 +52,17 @@ jobs:
             *.cache-to=type=gha,scope=dev${{ matrix.mode }},mode=max
             *.cache-to=type=gha,scope=dev${{ matrix.mode }},mode=max
             *.output=type=cacheonly
             *.output=type=cacheonly
 
 
-  test-prepare:
-    uses: ./.github/workflows/.test-prepare.yml
-    needs:
-      - validate-dco
-
   test:
   test:
     needs:
     needs:
-      - test-prepare
       - build-dev
       - build-dev
+      - validate-dco
     uses: ./.github/workflows/.test.yml
     uses: ./.github/workflows/.test.yml
     strategy:
     strategy:
       fail-fast: false
       fail-fast: false
       matrix:
       matrix:
-        storage: ${{ fromJson(needs.test-prepare.outputs.matrix) }}
+        storage:
+          - graphdriver
+          - snapshotter
     with:
     with:
       storage: ${{ matrix.storage }}
       storage: ${{ matrix.storage }}