forked from etcd-io/etcd
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #240 from Elbehery/rebase-etcd-3.5.11-openshift-4.12
OCPBUGS-27102: Rebase etcd 3.5.11 openshift 4.12
- Loading branch information
Showing
96 changed files
with
3,187 additions
and
1,307 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
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
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
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
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,70 @@ | ||
--- | ||
name: Reusable Tests Workflow | ||
on: | ||
workflow_call: | ||
inputs: | ||
arch: | ||
required: true | ||
type: string | ||
runs-on: | ||
required: true | ||
type: string | ||
targets: | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ inputs.runs-on }} | ||
# this is to prevent arm64 jobs from running at forked projects | ||
if: inputs.arch == 'amd64' || github.repository == 'etcd-io/etcd' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: ${{ fromJSON(inputs.targets) }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- 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 | ||
echo "${TARGET}" | ||
case "${TARGET}" in | ||
linux-integration-1-cpu) | ||
GOARCH=${{ inputs.arch }} CPU=1 RACE='false' make test-integration | ||
;; | ||
linux-integration-2-cpu) | ||
GOARCH=${{ inputs.arch }} CPU=2 RACE='false' make test-integration | ||
;; | ||
linux-integration-4-cpu) | ||
GOARCH=${{ inputs.arch }} CPU=4 RACE='false' make test-integration | ||
;; | ||
linux-unit-4-cpu-race) | ||
GOARCH=${{ inputs.arch }} RACE='true' CPU='4' GO_TEST_FLAGS='-p=2' make test-unit | ||
;; | ||
linux-386-unit-1-cpu) | ||
GOOS=linux GOARCH=386 CPU=1 GO_TEST_FLAGS='-p=4' make test-unit | ||
;; | ||
all-build) | ||
GOARCH=amd64 PASSES='build' ./test.sh | ||
GOARCH=386 PASSES='build' ./test.sh | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOOS=darwin GOARCH=amd64 ./build.sh | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOOS=darwin GOARCH=arm64 ./build.sh | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOOS=windows GOARCH=amd64 ./build.sh | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=arm ./build.sh | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=arm64 ./build.sh | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=ppc64le ./build.sh | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=s390x ./build.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 |
---|---|---|
@@ -1,66 +1,23 @@ | ||
name: Tests | ||
on: [push, pull_request] | ||
jobs: | ||
goversion: | ||
uses: ./.github/workflows/go-version.yaml | ||
test: | ||
runs-on: ubuntu-latest | ||
needs: goversion | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: | ||
- linux-amd64-fmt | ||
- linux-amd64-integration-1-cpu | ||
- linux-amd64-integration-2-cpu | ||
- linux-amd64-integration-4-cpu | ||
- linux-amd64-unit-4-cpu-race | ||
- all-build | ||
- linux-386-unit-1-cpu | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ needs.goversion.outputs.goversion }} | ||
- run: date | ||
- env: | ||
TARGET: ${{ matrix.target }} | ||
run: | | ||
set -euo pipefail | ||
echo "${TARGET}" | ||
case "${TARGET}" in | ||
linux-amd64-fmt) | ||
GOARCH=amd64 PASSES='fmt bom dep' ./test.sh | ||
;; | ||
linux-amd64-integration-1-cpu) | ||
GOARCH=amd64 CPU=1 PASSES='integration' RACE='false' ./test.sh | ||
;; | ||
linux-amd64-integration-2-cpu) | ||
GOARCH=amd64 CPU=2 PASSES='integration' RACE='false' ./test.sh | ||
;; | ||
linux-amd64-integration-4-cpu) | ||
GOARCH=amd64 CPU=4 PASSES='integration' RACE='false' ./test.sh | ||
;; | ||
linux-amd64-unit-4-cpu-race) | ||
GOARCH=amd64 PASSES='unit' RACE='true' CPU='4' ./test.sh -p=2 | ||
;; | ||
all-build) | ||
GOARCH=amd64 PASSES='build' ./test.sh | ||
GOARCH=386 PASSES='build' ./test.sh | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOOS=darwin GOARCH=amd64 ./build.sh | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOOS=darwin GOARCH=arm64 ./build.sh | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOOS=windows GOARCH=amd64 ./build.sh | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=arm ./build.sh | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=arm64 ./build.sh | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=ppc64le ./build.sh | ||
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=s390x ./build.sh | ||
;; | ||
linux-386-unit-1-cpu) | ||
GOARCH=386 PASSES='unit' RACE='false' CPU='1' ./test -p=4 | ||
;; | ||
*) | ||
echo "Failed to find target" | ||
exit 1 | ||
;; | ||
esac | ||
amd64: | ||
uses: ./.github/workflows/tests-template.yaml | ||
with: | ||
arch: amd64 | ||
runs-on: ubuntu-latest | ||
targets: "['linux-integration-1-cpu', | ||
'linux-integration-2-cpu', | ||
'linux-integration-4-cpu', | ||
'linux-unit-4-cpu-race', | ||
'linux-386-unit-1-cpu', | ||
'all-build']" | ||
arm64: | ||
uses: ./.github/workflows/tests-template.yaml | ||
with: | ||
arch: arm64 | ||
runs-on: actuated-arm64-8cpu-32gb | ||
targets: "['linux-integration-1-cpu', | ||
'linux-integration-2-cpu', | ||
'linux-integration-4-cpu', | ||
'linux-unit-4-cpu-race']" |
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.19.9 | ||
1.20.12 |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.