Skip to content

Commit a53ead8

Browse files
Merge pull request #1765 from Nordix/lentzi90/e2e-periodic-optional-gh-workflows
🌱 Add periodic jobs for optional tests and release branches
2 parents e2da57b + 9165d81 commit a53ead8

7 files changed

+132
-1
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Periodic E2E Test Optional release-0.5
2+
3+
on:
4+
schedule:
5+
# Run every day at 05:20 UTC (it is recommended to avoid running at the start of the hour)
6+
- cron: '20 5 * * *'
7+
8+
permissions: {}
9+
10+
jobs:
11+
periodic-e2e-test-optional:
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
bmc-protocol:
16+
- redfish
17+
- redfish-virtualmedia
18+
- ipmi
19+
uses: ./.github/workflows/e2e-test.yml
20+
with:
21+
bmc-protocol: ${{ matrix.bmc-protocol }}
22+
ginkgo-focus: upgrade
23+
ref: release-0.5
24+
permissions:
25+
contents: read
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Periodic E2E Test Optional release-0.6
2+
3+
on:
4+
schedule:
5+
# Run every day at 04:50 UTC (it is recommended to avoid running at the start of the hour)
6+
- cron: '50 4 * * *'
7+
8+
permissions: {}
9+
10+
jobs:
11+
periodic-e2e-test-optional:
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
bmc-protocol:
16+
- redfish
17+
- redfish-virtualmedia
18+
- ipmi
19+
uses: ./.github/workflows/e2e-test.yml
20+
with:
21+
bmc-protocol: ${{ matrix.bmc-protocol }}
22+
ginkgo-focus: upgrade
23+
ref: release-0.6
24+
permissions:
25+
contents: read
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Periodic E2E Test Optional
2+
3+
on:
4+
schedule:
5+
# Run every day at 04:20 UTC (it is recommended to avoid running at the start of the hour)
6+
- cron: '20 4 * * *'
7+
8+
permissions: {}
9+
10+
jobs:
11+
periodic-e2e-test-optional:
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
bmc-protocol:
16+
- redfish
17+
- redfish-virtualmedia
18+
- ipmi
19+
uses: ./.github/workflows/e2e-test.yml
20+
with:
21+
bmc-protocol: ${{ matrix.bmc-protocol }}
22+
ginkgo-focus: upgrade
23+
permissions:
24+
contents: read
File renamed without changes.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Periodic E2E Test release-0.5
2+
3+
on:
4+
schedule:
5+
# Run every day at 03:20 UTC (it is recommended to avoid running at the start of the hour)
6+
- cron: '20 3 * * *'
7+
8+
permissions: {}
9+
10+
jobs:
11+
periodic-e2e-test:
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
bmc-protocol:
16+
- redfish
17+
- redfish-virtualmedia
18+
- ipmi
19+
uses: ./.github/workflows/e2e-test.yml
20+
with:
21+
bmc-protocol: ${{ matrix.bmc-protocol }}
22+
ref: release-0.5
23+
permissions:
24+
contents: read
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Periodic E2E Test release-0.6
2+
3+
on:
4+
schedule:
5+
# Run every day at 02:50 UTC (it is recommended to avoid running at the start of the hour)
6+
- cron: '50 2 * * *'
7+
8+
permissions: {}
9+
10+
jobs:
11+
periodic-e2e-test:
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
bmc-protocol:
16+
- redfish
17+
- redfish-virtualmedia
18+
- ipmi
19+
uses: ./.github/workflows/e2e-test.yml
20+
with:
21+
bmc-protocol: ${{ matrix.bmc-protocol }}
22+
ref: release-0.6
23+
permissions:
24+
contents: read

.github/workflows/e2e-test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ on:
99
runner:
1010
type: string
1111
default: "ubuntu-latest-4-cores"
12+
ginkgo-focus:
13+
type: string
14+
default: ""
15+
ref:
16+
type: string
17+
default: ${{ github.ref }}
1218

1319
permissions: {}
1420

@@ -22,6 +28,8 @@ jobs:
2228

2329
steps:
2430
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
31+
with:
32+
ref: ${{ inputs.ref }}
2533

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

0 commit comments

Comments
 (0)