From f237c374ad9d54ae96b5ccc952e15779751032ff Mon Sep 17 00:00:00 2001 From: Craig O'Donnell Date: Tue, 31 Oct 2023 15:51:28 -0400 Subject: [PATCH] remove yamlescape e2e test (#4114) --- .github/workflows/build-test.yaml | 99 ------------------------------- 1 file changed, 99 deletions(-) diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index 0c0e1d10ae..f0019bf8ad 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -1555,104 +1555,6 @@ jobs: cluster-id: ${{ steps.create-cluster.outputs.cluster-id }} - validate-yamlescape: - runs-on: ubuntu-20.04 - needs: [ enable-tests, can-run-ci, cmx-versions, build-push-kotsadm-image, build-e2e, build-kurl-proxy, build-migrations, push-minio, push-mc, push-rqlite ] - strategy: - fail-fast: false - matrix: - cluster: ${{ fromJson(needs.cmx-versions.outputs.versions-to-test) }} - continue-on-error: ${{ matrix.cluster.stage != 'stable' }} - env: - APP_SLUG: yamlescape - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Create Cluster - id: create-cluster - uses: replicatedhq/replicated-actions/create-cluster@v1 - with: - api-token: ${{ secrets.C11Y_MATRIX_TOKEN }} - kubernetes-distribution: ${{ matrix.cluster.distribution }} - kubernetes-version: ${{ matrix.cluster.version }} - cluster-name: automated-kots-${{ github.run_id }}-${{ matrix.cluster.distribution }}-${{ matrix.cluster.version }} - timeout-minutes: '120' - ttl: 2h - instance-type: ${{ matrix.cluster.distribution == 'gke' && 'n2-standard-4' || '' }} - export-kubeconfig: true - - - name: download kots binary - uses: actions/download-artifact@v3 - with: - name: kots - path: bin/ - - - run: chmod +x bin/kots - - - name: create namespace and dockerhub secret - run: | - kubectl create ns "$APP_SLUG" - kubectl create secret docker-registry kotsadm-dockerhub --docker-server index.docker.io --docker-username "${{ secrets.E2E_DOCKERHUB_USERNAME }}" --docker-password "${{ secrets.E2E_DOCKERHUB_PASSWORD }}" --namespace "$APP_SLUG" - - - name: run the test - run: | - set +e - echo ${{ secrets.YAMLESCAPE_LICENSE }} | base64 -d > license.yaml - ./bin/kots \ - install "$APP_SLUG/automated" \ - --license-file license.yaml \ - --no-port-forward \ - --namespace "$APP_SLUG" \ - --shared-password password \ - --kotsadm-registry ttl.sh \ - --kotsadm-namespace automated-${{ github.run_id }} \ - --skip-preflights \ - --kotsadm-tag 24h - - EXIT_CODE=$? - if [ $EXIT_CODE -ne 0 ]; then - echo "------pods:" - kubectl -n "$APP_SLUG" get pods - echo "------kotsadm logs" - kubectl logs -l app=kotsadm --tail=100 --namespace "$APP_SLUG" - exit $EXIT_CODE - fi - - COUNTER=1 - while [ "$(./bin/kots get apps --namespace "$APP_SLUG" | awk 'NR>1{print $2}')" != "ready" ]; do - ((COUNTER += 1)) - if [ $COUNTER -gt 120 ]; then - echo "Timed out waiting for app to be ready" - ./bin/kots get apps --namespace "$APP_SLUG" - echo "kotsadm logs:" - kubectl logs -l app=kotsadm --tail=100 --namespace "$APP_SLUG" - exit 1 - fi - sleep 1 - done - - printf "App is installed successfully and is ready\n\n" - ./bin/kots get apps --namespace "$APP_SLUG" - - - name: Generate support bundle on failure - if: failure() - uses: ./.github/actions/generate-support-bundle - with: - kots-namespace: "$APP_SLUG" - aws-access-key-id: '${{ secrets.E2E_SUPPORT_BUNDLE_AWS_ACCESS_KEY_ID }}' - aws-secret-access-key: '${{ secrets.E2E_SUPPORT_BUNDLE_AWS_SECRET_ACCESS_KEY }}' - - - name: Remove Cluster - id: remove-cluster - uses: replicatedhq/replicated-actions/remove-cluster@v1 - if: ${{ always() && steps.create-cluster.outputs.cluster-id != '' }} - continue-on-error: true - with: - api-token: ${{ secrets.C11Y_MATRIX_TOKEN }} - cluster-id: ${{ steps.create-cluster.outputs.cluster-id }} - - validate-no-redeploy-on-restart: runs-on: ubuntu-20.04 needs: [ enable-tests, can-run-ci, build-push-kotsadm-image, build-kurl-proxy, build-migrations, push-minio, push-mc, push-rqlite ] @@ -3518,7 +3420,6 @@ jobs: - validate-kots-pull - validate-app-version-label - validate-helm-install-order - - validate-yamlescape - validate-no-redeploy-on-restart - validate-kubernetes-installer-preflight - validate-kots-upgrade