-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add e2e-arm64.yaml and tests-arm64.yaml to release-3.5 scheduled at 1.30
Signed-off-by: Sameer Natu <[email protected]>
- Loading branch information
1 parent
306c60a
commit c31f282
Showing
2 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: E2E-arm64 | ||
on: | ||
schedule: | ||
- cron: '30 1 * * *' # runs daily at 1am. | ||
permissions: read-all | ||
jobs: | ||
test: | ||
if: github.repository == 'etcd-io/etcd' | ||
runs-on: [self-hosted, Linux, ARM64] | ||
container: golang:1.19-bullseye | ||
defaults: | ||
run: | ||
shell: bash | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
target: | ||
- linux-arm64-e2e | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: git config --system --add safe.directory '*' | ||
- id: goversion | ||
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT" | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ steps.goversion.outputs.goversion }} | ||
- run: date | ||
- env: | ||
TARGET: ${{ matrix.target }} | ||
run: | | ||
set -euo pipefail | ||
go clean -testcache | ||
echo "${TARGET}" | ||
case "${TARGET}" in | ||
linux-arm64-e2e) | ||
PASSES='build e2e' GOOS=linux GOARCH=arm64 CPU='4' EXPECT_DEBUG='true' COVER='false' RACE='true' ./test.sh | ||
;; | ||
*) | ||
echo "Failed to find target" | ||
exit 1 | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Tests-arm64 | ||
on: | ||
schedule: | ||
- cron: '30 1 * * *' # runs daily at 1am. | ||
permissions: read-all | ||
jobs: | ||
test: | ||
# this is to prevent the job to run at forked projects | ||
if: github.repository == 'etcd-io/etcd' | ||
runs-on: [self-hosted, Linux, ARM64] | ||
container: golang:1.19-bullseye | ||
defaults: | ||
run: | ||
shell: bash | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: | ||
- linux-arm64-integration-1-cpu | ||
- linux-arm64-integration-2-cpu | ||
- linux-arm64-integration-4-cpu | ||
- linux-arm64-unit-4-cpu-race | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: git config --system --add safe.directory '*' | ||
- id: goversion | ||
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT" | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ steps.goversion.outputs.goversion }} | ||
- env: | ||
TARGET: ${{ matrix.target }} | ||
run: | | ||
set -euo pipefail | ||
go clean -testcache | ||
mkdir "${TARGET}" | ||
export JUNIT_REPORT_DIR=$(realpath ${TARGET}) | ||
case "${TARGET}" in | ||
linux-arm64-integration-1-cpu) | ||
GOARCH=arm64 CPU=1 PASSES='integration' RACE='false' ./test.sh | ||
;; | ||
linux-arm64-integration-2-cpu) | ||
GOARCH=arm64 CPU=2 PASSES='integration' RACE='false' ./test.sh | ||
;; | ||
linux-arm64-integration-4-cpu) | ||
GOARCH=arm64 CPU=4 PASSES='integration' RACE='false' ./test.sh | ||
;; | ||
linux-arm64-unit-4-cpu-race) | ||
GOARCH=arm64 PASSES='unit' RACE='true' CPU='4' ./test.sh -p=2 | ||
;; | ||
*) | ||
echo "Failed to find target" | ||
exit 1 | ||
;; | ||
esac |