From ab3245e1c7eb37a1219591a32d1b3aba1ef73b82 Mon Sep 17 00:00:00 2001 From: Ivan Milchev Date: Tue, 26 Mar 2024 19:41:49 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20disable=20helm=20tests:=20(#1073?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ivan Milchev --- .github/workflows/publish.yaml | 154 ++++++++++++++++----------------- 1 file changed, 77 insertions(+), 77 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 2ac092df..86e0c80a 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -367,88 +367,88 @@ jobs: - release-helm # publish helm chart after the release of container images is complete - run-helm-tests: - name: Run helm integration tests - if: startsWith(github.ref, 'refs/tags/v') - needs: - - push-virtual-tag - runs-on: ubuntu-latest - - permissions: - contents: read - checks: write - statuses: write - - strategy: - fail-fast: false - matrix: - k8s-version: [v1.26.12, v1.27.9, v1.28.5, v1.29.0] - - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Import environment variables from file - run: cat ".github/env" >> $GITHUB_ENV - - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "${{ env.golang-version }}" - - - name: Start minikube - uses: medyagh/setup-minikube@master - with: - memory: 4000m - kubernetes-version: ${{ matrix.k8s-version }} - - - name: Install Helm - uses: azure/setup-helm@v4 - with: - token: ${{ secrets.GITHUB_TOKEN }} - id: install - - - name: Extract Docker metadata - id: meta - uses: docker/metadata-action@v5 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - - name: Install Mondoo Operator Helm chart - run: helm install mondoo-operator charts/mondoo-operator -n mondoo-operator --create-namespace --wait - - # Now that dependencies are cached the tests start almost immediately after minikube has started - # this makes tests fail occasionally. This sleep gives the runner some time to become more stable - # before the test execution starts. - - name: Wait a bit for the runner to become more stable - run: kubectl -n kube-system wait --for=condition=Ready pods --all --timeout=60s - - - name: Run integration tests - env: - MONDOO_API_TOKEN: ${{ secrets.MONDOO_TEST_ORG_TOKEN }} - run: EXTERNAL_INSTALLATION=1 VERSION=${{ steps.meta.outputs.version }} make test/integration/ci - - - uses: actions/upload-artifact@v4 # upload test results - if: success() || failure() # run this step even if previous step failed - with: # upload a combined archive with unit and integration test results - name: test-results-helm-${{ matrix.k8s-version }} - path: integration-tests-helm-${{ matrix.k8s-version }}.xml - - - name: Upload test logs artifact - uses: actions/upload-artifact@v4 - if: failure() - with: - name: helm-test-logs-${{ matrix.k8s-version }} - path: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/ + # run-helm-tests: + # name: Run helm integration tests + # if: startsWith(github.ref, 'refs/tags/v') + # needs: + # - push-virtual-tag + # runs-on: ubuntu-latest + + # permissions: + # contents: read + # checks: write + # statuses: write + + # strategy: + # fail-fast: false + # matrix: + # k8s-version: [v1.26.12, v1.27.9, v1.28.5, v1.29.0] + + # steps: + # - name: Checkout + # uses: actions/checkout@v4 + # with: + # fetch-depth: 0 + + # - name: Import environment variables from file + # run: cat ".github/env" >> $GITHUB_ENV + + # - name: Install Go + # uses: actions/setup-go@v5 + # with: + # go-version: "${{ env.golang-version }}" + + # - name: Start minikube + # uses: medyagh/setup-minikube@master + # with: + # memory: 4000m + # kubernetes-version: ${{ matrix.k8s-version }} + + # - name: Install Helm + # uses: azure/setup-helm@v4 + # with: + # token: ${{ secrets.GITHUB_TOKEN }} + # id: install + + # - name: Extract Docker metadata + # id: meta + # uses: docker/metadata-action@v5 + # with: + # images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + + # - name: Install Mondoo Operator Helm chart + # run: helm install mondoo-operator charts/mondoo-operator -n mondoo-operator --create-namespace --wait + + # # Now that dependencies are cached the tests start almost immediately after minikube has started + # # this makes tests fail occasionally. This sleep gives the runner some time to become more stable + # # before the test execution starts. + # - name: Wait a bit for the runner to become more stable + # run: kubectl -n kube-system wait --for=condition=Ready pods --all --timeout=60s + + # - name: Run integration tests + # env: + # MONDOO_API_TOKEN: ${{ secrets.MONDOO_TEST_ORG_TOKEN }} + # run: EXTERNAL_INSTALLATION=1 VERSION=${{ steps.meta.outputs.version }} make test/integration/ci + + # - uses: actions/upload-artifact@v4 # upload test results + # if: success() || failure() # run this step even if previous step failed + # with: # upload a combined archive with unit and integration test results + # name: test-results-helm-${{ matrix.k8s-version }} + # path: integration-tests-helm-${{ matrix.k8s-version }}.xml + + # - name: Upload test logs artifact + # uses: actions/upload-artifact@v4 + # if: failure() + # with: + # name: helm-test-logs-${{ matrix.k8s-version }} + # path: /home/runner/work/mondoo-operator/mondoo-operator/tests/integration/_output/ report-tests: name: Report test results runs-on: ubuntu-latest needs: - run-olm-e2e - - run-helm-tests + #- run-helm-tests permissions: actions: read # Required to read the artifact contents: read # Required to read the source @@ -472,7 +472,7 @@ jobs: release-helm: name: Release helm chart needs: - - run-helm-tests + - push-virtual-tag runs-on: ubuntu-latest permissions: