Skip to content

Commit

Permalink
deploy should not fail if smokes fail
Browse files Browse the repository at this point in the history
  • Loading branch information
enekofb committed Nov 15, 2023
1 parent 4985fb0 commit 53b73a8
Show file tree
Hide file tree
Showing 5 changed files with 220 additions and 232 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/acceptance-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: ${{ inputs.timeout-minutes }}
continue-on-error: true
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down Expand Up @@ -296,6 +295,7 @@ jobs:
./test/utils/scripts/mgmt-cluster-setup.sh ${{ inputs.management-cluster-kind }} $(pwd) $CLUSTER_NAME $CLUSTER_REGION
- name: Run Acceptance tests
continue-on-error: true
run: |
export CLUSTER_REPOSITORY=gitops-capi-template-${{ github.run_id }}-$(openssl rand -hex 8)
Expand Down
209 changes: 0 additions & 209 deletions .github/workflows/deploy-old.yaml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/deploy-tolerant.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
on:
push:
branches:
- deploy-continue-smokes
workflow_dispatch:

name: deploy tolerant
jobs:
smoke-tests-github:
uses: ./.github/workflows/acceptance-test-always-fails.yaml
with:
os-name: linux
timeout-minutes: 60
label-filter: "--label-filter='smoke&&capd'"
kubectl-version: "v1.21.1"
login_user_type: "oidc"
git-provider: github
git-provider_hostname: github.com
cluster_resource_set: true
management-cluster-kind: kind
capi_provider: capd
gitops-bin-path: /usr/local/bin/gitops
test-artifact-name: smoke-tests-github
secrets:
WGE_CLUSTER_ADMIN_PASSWORD: "${{ secrets.WGE_CLUSTER_ADMIN_PASSWORD }}"
WGE_CLUSTER_ADMIN_PASSWORD_HASH: "${{ secrets.WGE_CLUSTER_ADMIN_PASSWORD_HASH }}"
WGE_DEX_CLIENT_SECRET: ${{ secrets.WGE_DEX_CLIENT_SECRET }}
WGE_GIT_PROVIDER_PRIVATE_KEY: ${{ secrets.WGE_GITHUB_PRIVATE_KEY }}
WGE_GITHUB_TOKEN: ${{ secrets.WGE_GITHUB_TOKEN }}
WGE_GITHUB_ORG: ${{ secrets.WGE_GITHUB_ORG }}
WGE_GITHUB_USER: ${{ secrets.WGE_GITHUB_USER }}
WGE_GITHUB_PASSWORD: ${{ secrets.WGE_GITHUB_PASSWORD }}
WGE_GITHUB_MFA_KEY: ${{ secrets.WGE_GITHUB_MFA_KEY }}


smoke-test-results:
if: ${{ always() }}
needs:
[smoke-tests-github]
uses: ./.github/workflows/publish-test-results.yaml
with:
runs-on: ubuntu-latest
junit-results-glob-pattern: "*smoke-tests*.xml"
slack-notification: true
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
Loading

0 comments on commit 53b73a8

Please sign in to comment.