Skip to content

Commit

Permalink
Add periodic jobs for optional tests and release branches
Browse files Browse the repository at this point in the history
This adds more github workflows, namely periodic jobs for the release
branches with the required e2e tests and periodic jobs for the optional
e2e tests for main and release branches.

Signed-off-by: Lennart Jern <[email protected]>
  • Loading branch information
lentzi90 authored and babugeet committed Jun 7, 2024
1 parent a8608ea commit 1a2b66a
Show file tree
Hide file tree
Showing 7 changed files with 132 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/e2e-test-optional-periodic-release-0.5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Periodic E2E Test Optional release-0.5

on:
schedule:
# Run every day at 05:20 UTC (it is recommended to avoid running at the start of the hour)
- cron: '20 5 * * *'

permissions: {}

jobs:
periodic-e2e-test-optional:
strategy:
fail-fast: false
matrix:
bmc-protocol:
- redfish
- redfish-virtualmedia
- ipmi
uses: ./.github/workflows/e2e-test.yml
with:
bmc-protocol: ${{ matrix.bmc-protocol }}
ginkgo-focus: upgrade
ref: release-0.5
permissions:
contents: read
25 changes: 25 additions & 0 deletions .github/workflows/e2e-test-optional-periodic-release-0.6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Periodic E2E Test Optional release-0.6

on:
schedule:
# Run every day at 04:50 UTC (it is recommended to avoid running at the start of the hour)
- cron: '50 4 * * *'

permissions: {}

jobs:
periodic-e2e-test-optional:
strategy:
fail-fast: false
matrix:
bmc-protocol:
- redfish
- redfish-virtualmedia
- ipmi
uses: ./.github/workflows/e2e-test.yml
with:
bmc-protocol: ${{ matrix.bmc-protocol }}
ginkgo-focus: upgrade
ref: release-0.6
permissions:
contents: read
24 changes: 24 additions & 0 deletions .github/workflows/e2e-test-optional-periodic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Periodic E2E Test Optional

on:
schedule:
# Run every day at 04:20 UTC (it is recommended to avoid running at the start of the hour)
- cron: '20 4 * * *'

permissions: {}

jobs:
periodic-e2e-test-optional:
strategy:
fail-fast: false
matrix:
bmc-protocol:
- redfish
- redfish-virtualmedia
- ipmi
uses: ./.github/workflows/e2e-test.yml
with:
bmc-protocol: ${{ matrix.bmc-protocol }}
ginkgo-focus: upgrade
permissions:
contents: read
File renamed without changes.
24 changes: 24 additions & 0 deletions .github/workflows/e2e-test-periodic-release-0.5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Periodic E2E Test release-0.5

on:
schedule:
# Run every day at 03:20 UTC (it is recommended to avoid running at the start of the hour)
- cron: '20 3 * * *'

permissions: {}

jobs:
periodic-e2e-test:
strategy:
fail-fast: false
matrix:
bmc-protocol:
- redfish
- redfish-virtualmedia
- ipmi
uses: ./.github/workflows/e2e-test.yml
with:
bmc-protocol: ${{ matrix.bmc-protocol }}
ref: release-0.5
permissions:
contents: read
24 changes: 24 additions & 0 deletions .github/workflows/e2e-test-periodic-release-0.6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Periodic E2E Test release-0.6

on:
schedule:
# Run every day at 02:50 UTC (it is recommended to avoid running at the start of the hour)
- cron: '50 2 * * *'

permissions: {}

jobs:
periodic-e2e-test:
strategy:
fail-fast: false
matrix:
bmc-protocol:
- redfish
- redfish-virtualmedia
- ipmi
uses: ./.github/workflows/e2e-test.yml
with:
bmc-protocol: ${{ matrix.bmc-protocol }}
ref: release-0.6
permissions:
contents: read
11 changes: 10 additions & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ on:
runner:
type: string
default: "ubuntu-latest-4-cores"
ginkgo-focus:
type: string
default: ""
ref:
type: string
default: ${{ github.ref }}

permissions: {}

Expand All @@ -22,6 +28,8 @@ jobs:

steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
ref: ${{ inputs.ref }}

- name: Install libvirt
run: |
Expand All @@ -31,12 +39,13 @@ jobs:
- name: Run BMO e2e Tests
env:
BMC_PROTOCOL: ${{ inputs.bmc-protocol }}
GINKGO_FOCUS: "${{ inputs.ginkgo-focus }}"
# We need a new shell to pick up the new group. That is why we do the sudo -s -u $USER ...
# Remove the pre-installed go version. We install the exact version we need.
run: |
sudo usermod -a -G libvirt $USER
sudo rm /usr/bin/go
sudo -s -u $USER bash ${{ github.workspace }}/hack/ci-e2e.sh
sudo -s -u $USER --preserve-env bash ${{ github.workspace }}/hack/ci-e2e.sh
- name: Upload artifacts
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
Expand Down

0 comments on commit 1a2b66a

Please sign in to comment.