mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #13657 from serathius/grpcproxy-pararellize
tests: Parallelize grpcproxy tests
This commit is contained in:
commit
178bef917e
11
.github/workflows/grpcproxy.yaml
vendored
11
.github/workflows/grpcproxy.yaml
vendored
@ -7,7 +7,8 @@ jobs:
|
|||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
target:
|
target:
|
||||||
- linux-amd64-grpcproxy
|
- linux-amd64-grpcproxy-integration
|
||||||
|
- linux-amd64-grpcproxy-e2e
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
@ -19,8 +20,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "${TARGET}"
|
echo "${TARGET}"
|
||||||
case "${TARGET}" in
|
case "${TARGET}" in
|
||||||
linux-amd64-grpcproxy)
|
linux-amd64-grpcproxy-integration)
|
||||||
PASSES='build grpcproxy' CPU='4' COVER='false' RACE='true' ./test.sh 2>&1 | tee test.log
|
PASSES='build grpcproxy_integration' CPU='4' COVER='false' RACE='true' ./test.sh 2>&1 | tee test.log
|
||||||
|
! egrep "(--- FAIL:|FAIL:|DATA RACE|panic: test timed out|appears to have leaked)" -B50 -A10 test.log
|
||||||
|
;;
|
||||||
|
linux-amd64-grpcproxy-e2e)
|
||||||
|
PASSES='build grpcproxy_e2e' CPU='4' COVER='false' RACE='true' ./test.sh 2>&1 | tee test.log
|
||||||
! egrep "(--- FAIL:|FAIL:|DATA RACE|panic: test timed out|appears to have leaked)" -B50 -A10 test.log
|
! egrep "(--- FAIL:|FAIL:|DATA RACE|panic: test timed out|appears to have leaked)" -B50 -A10 test.log
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
12
test.sh
12
test.sh
@ -189,7 +189,17 @@ function functional_pass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function grpcproxy_pass {
|
function grpcproxy_pass {
|
||||||
run_for_module "tests" go_test "./integration/... ./e2e" "fail_fast" : \
|
run_pass "grpcproxy_integration" "${@}"
|
||||||
|
run_pass "grpcproxy_e2e" "${@}"
|
||||||
|
}
|
||||||
|
|
||||||
|
function grpcproxy_integration_pass {
|
||||||
|
run_for_module "tests" go_test "./integration/..." "fail_fast" : \
|
||||||
|
-timeout=30m -tags cluster_proxy "${COMMON_TEST_FLAGS[@]}" "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
function grpcproxy_e2e_pass {
|
||||||
|
run_for_module "tests" go_test "./e2e" "fail_fast" : \
|
||||||
-timeout=30m -tags cluster_proxy "${COMMON_TEST_FLAGS[@]}" "$@"
|
-timeout=30m -tags cluster_proxy "${COMMON_TEST_FLAGS[@]}" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user