Skip to content

Commit

Permalink
chore(ci): run TestFiveNodesAirgapUpgrade on main only (#1656)
Browse files Browse the repository at this point in the history
* chore(ci): run TestFiveNodesAirgapUpgrade on main only

* test

* Revert "test"

This reverts commit b9f54cf.

* skipped

* skip

* remove incorrect comment

---------

Co-authored-by: Andrew Lavery <laverya@umich.edu>
  • Loading branch information
emosbaugh and laverya authored Jan 2, 2025
1 parent 11b8112 commit 736ecc9
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,48 @@ jobs:
runner: embedded-cluster
- test: TestMultiNodeAirgapHADisasterRecovery
runner: embedded-cluster
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download current binary
uses: actions/download-artifact@v4
with:
name: current-release
path: output/bin

- uses: ./.github/actions/e2e
with:
test-name: '${{ matrix.test }}'
is-large-runner: ${{ matrix.runner == 'embedded-cluster' }}
airgap-license-id: ${{ secrets.STAGING_EMBEDDED_CLUSTER_AIRGAP_LICENSE_ID }}
snapshot-license-id: ${{ secrets.STAGING_EMBEDDED_CLUSTER_SNAPSHOT_LICENSE_ID }}
snapshot-license: ${{ secrets.STAGING_EMBEDDED_CLUSTER_SNAPSHOT_LICENSE }}
airgap-snapshot-license-id: ${{ secrets.STAGING_EMBEDDED_CLUSTER_AIRGAP_SNAPSHOT_LICENSE_ID }}
license-id: ${{ secrets.STAGING_EMBEDDED_CLUSTER_LICENSE_ID }}
license: ${{ secrets.STAGING_EMBEDDED_CLUSTER_LICENSE }}
dr-aws-access-key-id: ${{ secrets.TESTIM_AWS_ACCESS_KEY_ID }}
dr-aws-secret-access-key: ${{ secrets.TESTIM_AWS_SECRET_ACCESS_KEY }}
k0s-version: ${{ needs.build-current.outputs.k0s_version }}
k0s-version-previous: ${{ needs.build-previous-k0s.outputs.k0s_version }}
k0s-version-previous-stable: ${{ needs.find-previous-stable.outputs.k0s_version }}
version-specifier: ${{ needs.export-version-specifier.outputs.version_specifier }}

e2e-main:
name: E2E (on merge)
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ${{ matrix.runner || 'ubuntu-22.04' }}
needs:
- build-current
- build-legacydr
- build-previous-k0s
- build-upgrade
- find-previous-stable
- release-app
- export-version-specifier
strategy:
fail-fast: false
matrix:
include:
- test: TestFiveNodesAirgapUpgrade
runner: embedded-cluster
steps:
Expand Down Expand Up @@ -825,6 +867,7 @@ jobs:
runs-on: ubuntu-20.04
needs:
- e2e
- e2e-main
- e2e-docker
- sanitize
- test
Expand All @@ -838,6 +881,9 @@ jobs:
- name: fail if e2e job was not successful
if: needs.e2e.result != 'success'
run: exit 1
- name: fail if e2e-main job was not successful
if: needs.e2e-main.result != 'success' && needs.e2e-main.result != 'skipped'
run: exit 1
- name: fail if e2e-docker job was not successful
if: needs.e2e-docker.result != 'success'
run: exit 1
Expand Down

0 comments on commit 736ecc9

Please sign in to comment.