diff --git a/pipelines/pingcap/tiflow/latest/ghpr_verify.groovy b/pipelines/pingcap/tiflow/latest/ghpr_verify.groovy index 9d95cd12af..d948a9b10b 100644 --- a/pipelines/pingcap/tiflow/latest/ghpr_verify.groovy +++ b/pipelines/pingcap/tiflow/latest/ghpr_verify.groovy @@ -46,7 +46,19 @@ pipeline { } } } - sh label: "${TEST_CMD}", script: "make ${TEST_CMD}" + sh label: "${TEST_CMD}", script: """ + set -euo pipefail + # TEMP: hard-code toolchain to avoid mixed go1.25.6/go1.25.8 compile errors in CI. + # TODO: remove after ghpr_verify golang image/env is fully upgraded to go1.25.8. + export GOTOOLCHAIN=go1.25.8 + export GOCACHE=/tmp/go-build-${TEST_CMD} + go clean -cache + + go version + go env GOTOOLCHAIN GOROOT GOCACHE + + make ${TEST_CMD} + """ } } post { diff --git a/prow-jobs/pingcap/ticdc/latest-presubmits-next-gen.yaml b/prow-jobs/pingcap/ticdc/latest-presubmits-next-gen.yaml index 8ae86e12d3..c92753b57b 100644 --- a/prow-jobs/pingcap/ticdc/latest-presubmits-next-gen.yaml +++ b/prow-jobs/pingcap/ticdc/latest-presubmits-next-gen.yaml @@ -107,6 +107,11 @@ presubmits: command: [bash, -ce] args: - | + # TEMP: force Go patch toolchain to avoid mixed go1.25.5/go1.25.8 artifacts. + # TODO: remove after ticdc next-gen unit-test image/env is consistently on go1.25.8. + export GOTOOLCHAIN=go1.25.8 + export GOCACHE=/tmp/go-build-pull-unit-test-next-gen + go clean -cache make unit_test_in_verify_ci_next_gen resources: requests: diff --git a/prow-jobs/pingcap/ticdc/latest-presubmits.yaml b/prow-jobs/pingcap/ticdc/latest-presubmits.yaml index 1bdb9e47b1..918787e1a5 100644 --- a/prow-jobs/pingcap/ticdc/latest-presubmits.yaml +++ b/prow-jobs/pingcap/ticdc/latest-presubmits.yaml @@ -154,6 +154,11 @@ presubmits: command: [bash, -ce] args: - | + # TEMP: force Go patch toolchain to avoid mixed go1.25.5/go1.25.8 artifacts. + # TODO: remove after ticdc unit-test image/env is consistently on go1.25.8. + export GOTOOLCHAIN=go1.25.8 + export GOCACHE=/tmp/go-build-pull-unit-test + go clean -cache make unit_test_in_verify_ci resources: requests: