From f21f9039655c7d077c39bcfc88240d2f83b2b94a Mon Sep 17 00:00:00 2001 From: XuPeng-SH Date: Thu, 24 Sep 2026 10:29:26 -0400 Subject: [PATCH] ci(coverage): set explicit per-package Go test deadline --- .github/workflows/coverage-ut.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/coverage-ut.yaml b/.github/workflows/coverage-ut.yaml index 679fab9..f2bb72f 100644 --- a/.github/workflows/coverage-ut.yaml +++ b/.github/workflows/coverage-ut.yaml @@ -218,6 +218,8 @@ jobs: env: GOPROXY: http://goproxy.goproxy.svc.cluster.local,https://goproxy.cn,https://proxy.golang.org COVERAGE_UT_TEST_TIMEOUT_SECONDS: "3600" + # The go test package deadline below is 20m; it must leave time for + # the runner's 60m whole-suite deadline and diagnostics. COVERAGE_UT_HEARTBEAT_SECONDS: "15" COVERAGE_UT_CONSOLE_HEARTBEAT_SECONDS: "60" # Parent-shell fallback if the Python runner itself stops making @@ -413,6 +415,7 @@ jobs: --console-heartbeat-seconds "${COVERAGE_UT_CONSOLE_HEARTBEAT_SECONDS}" \ -- env CGO_CFLAGS="${cgo_cflags}" CGO_LDFLAGS="${cgo_ldflags}" \ go test -mod=readonly -count=1 -json -short -v -tags matrixone_test \ + -timeout=20m \ -p "${COVERAGE_UT_PACKAGE_PARALLELISM}" \ -covermode=set -coverprofile="${coverage_profile}" -coverpkg="${cover_pkgs}" \ ${test_scope} &