Skip to content

Commit 51eb29a

Browse files
committed
etcd-e2d-test:rename e2e-arm64 file and runs it on every pull request etcd-io#16912
KubeconNA 2023 Contribfest issue etcd-io#16893 . Recently in etcd-io#16801 we introduced on demand github actions runners for the arm64 platform. Having on demand runner infrastructure in place means we should now have enough capacity to begin running arm64 tests for every pull request. Currently we have: .github/workflows/e2e-arm64-template.yaml - Shared template .github/workflows/e2e-arm64-nightly.yaml - Runs template against both release-3.5 and main branches nightly. Moving forward we can just rename .github/workflows/e2e-arm64-template.yaml to .github/workflows/e2e-arm64.yaml and delete the other file. We can then just make the template file a standard workflow that will run on pull request. Signed-off-by: Ming Li <[email protected]>
1 parent 1bade2c commit 51eb29a

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/e2e-arm64.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: E2E-Arm64
3+
on: [push, pull_request]
4+
permissions: read-all
5+
jobs:
6+
test:
7+
# this is to prevent the job to run at forked projects
8+
if: github.repository == 'etcd-io/etcd'
9+
runs-on: actuated-arm64-8cpu-32gb
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
target:
14+
- linux-arm64-e2e
15+
steps:
16+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
17+
- id: goversion
18+
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
19+
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
20+
with:
21+
go-version: ${{ steps.goversion.outputs.goversion }}
22+
- env:
23+
TARGET: ${{ matrix.target }}
24+
run: |
25+
set -euo pipefail
26+
go clean -testcache
27+
28+
echo "${TARGET}"
29+
case "${TARGET}" in
30+
linux-arm64-e2e)
31+
GOOS=linux GOARCH=arm64 CPU=4 EXPECT_DEBUG=true make test-e2e-release
32+
;;
33+
*)
34+
echo "Failed to find target"
35+
exit 1
36+
;;
37+
esac

0 commit comments

Comments
 (0)