mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #18054 from siyuanfoundation/robust
workflow: change the target of make test-robustness to test-robustness-main
This commit is contained in:
commit
67743348dc
4
.github/workflows/robustness-template.yaml
vendored
4
.github/workflows/robustness-template.yaml
vendored
@ -72,9 +72,7 @@ jobs:
|
||||
EXPECT_DEBUG=true GO_TEST_FLAGS=${GO_TEST_FLAGS} RESULTS_DIR=/tmp/results make test-robustness-release-3.4
|
||||
;;
|
||||
main)
|
||||
make gofail-enable
|
||||
make build
|
||||
EXPECT_DEBUG=true GO_TEST_FLAGS=${GO_TEST_FLAGS} RESULTS_DIR=/tmp/results make test-robustness
|
||||
EXPECT_DEBUG=true GO_TEST_FLAGS=${GO_TEST_FLAGS} RESULTS_DIR=/tmp/results make test-robustness-main
|
||||
;;
|
||||
*)
|
||||
echo "Failed to find target ${ETCD_BRANCH}"
|
||||
|
@ -3,11 +3,11 @@ test-robustness-reports: export GOTOOLCHAIN := go$(shell cat .go-version)
|
||||
test-robustness-reports:
|
||||
cd ./tests && go test ./robustness/validate -v --count 1 --run TestDataReports
|
||||
|
||||
# Test previous release branches
|
||||
# Test main and previous release branches
|
||||
|
||||
.PHONY: test-robustness-release-3.6
|
||||
test-robustness-release-3.6: /tmp/etcd-release-3.6-failpoints/bin /tmp/etcd-release-3.5-failpoints/bin
|
||||
GO_TEST_FLAGS="$${GO_TEST_FLAGS} --bin-dir=/tmp/etcd-release-3.6-failpoints/bin --bin-last-release=/tmp/etcd-release-3.5-failpoints/bin/etcd" make test-robustness
|
||||
.PHONY: test-robustness-main
|
||||
test-robustness-main: /tmp/etcd-main-failpoints/bin /tmp/etcd-release-3.5-failpoints/bin
|
||||
GO_TEST_FLAGS="$${GO_TEST_FLAGS} --bin-dir=/tmp/etcd-main-failpoints/bin --bin-last-release=/tmp/etcd-release-3.5-failpoints/bin/etcd" make test-robustness
|
||||
|
||||
.PHONY: test-robustness-release-3.5
|
||||
test-robustness-release-3.5: /tmp/etcd-release-3.5-failpoints/bin /tmp/etcd-release-3.4-failpoints/bin
|
||||
@ -66,7 +66,15 @@ gofail-disable: $(GOPATH)/bin/gofail
|
||||
$(GOPATH)/bin/gofail: tools/mod/go.mod tools/mod/go.sum
|
||||
go install go.etcd.io/gofail@${GOFAIL_VERSION}
|
||||
|
||||
# Build previous releases for robustness tests
|
||||
# Build main and previous releases for robustness tests
|
||||
|
||||
/tmp/etcd-main-failpoints/bin: $(GOPATH)/bin/gofail
|
||||
rm -rf /tmp/etcd-main-failpoints/
|
||||
mkdir -p /tmp/etcd-main-failpoints/
|
||||
cd /tmp/etcd-main-failpoints/; \
|
||||
git clone --depth 1 --branch main https://github.com/etcd-io/etcd.git .; \
|
||||
make gofail-enable; \
|
||||
make build;
|
||||
|
||||
/tmp/etcd-v3.6.0-failpoints/bin: $(GOPATH)/bin/gofail
|
||||
rm -rf /tmp/etcd-v3.6.0-failpoints/
|
||||
@ -76,14 +84,6 @@ $(GOPATH)/bin/gofail: tools/mod/go.mod tools/mod/go.sum
|
||||
make gofail-enable; \
|
||||
make build;
|
||||
|
||||
/tmp/etcd-release-3.6-failpoints/bin: $(GOPATH)/bin/gofail
|
||||
rm -rf /tmp/etcd-release-3.6-failpoints/
|
||||
mkdir -p /tmp/etcd-release-3.6-failpoints/
|
||||
cd /tmp/etcd-release-3.6-failpoints/; \
|
||||
git clone --depth 1 --branch main https://github.com/etcd-io/etcd.git .; \
|
||||
make gofail-enable; \
|
||||
make build;
|
||||
|
||||
/tmp/etcd-v3.5.2-failpoints/bin:
|
||||
/tmp/etcd-v3.5.4-failpoints/bin:
|
||||
/tmp/etcd-v3.5.5-failpoints/bin:
|
||||
|
Loading…
x
Reference in New Issue
Block a user