From 15d9fffb3e599baa4cf43106e25ab7b689d181e6 Mon Sep 17 00:00:00 2001 From: lyb Date: Tue, 17 Mar 2026 18:38:59 +0800 Subject: [PATCH 1/3] ci(tiflow): temporarily pin ghpr_verify go toolchain Force GOTOOLCHAIN=go1.25.8 and reset GOCACHE in ghpr_verify to avoid mixed go1.25.6/go1.25.8 compile errors in CI.\n\nThis is a temporary workaround and should be reverted once the ghpr_verify golang image/environment is consistently on go1.25.8. --- pipelines/pingcap/tiflow/latest/ghpr_verify.groovy | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pipelines/pingcap/tiflow/latest/ghpr_verify.groovy b/pipelines/pingcap/tiflow/latest/ghpr_verify.groovy index 9d95cd12af..956d8020da 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} + rm -rf "\$GOCACHE" + + go version + go env GOTOOLCHAIN GOROOT GOCACHE + + make ${TEST_CMD} + """ } } post { From c3384f111ccee3eaec96c5d630099522b0ba2606 Mon Sep 17 00:00:00 2001 From: lyb Date: Tue, 17 Mar 2026 18:44:11 +0800 Subject: [PATCH 2/3] ci(tiflow): use go clean for temp cache reset Address review feedback in ghpr_verify workaround:\nreplace manual rm -rf of GOCACHE with canonical go clean -cache. --- pipelines/pingcap/tiflow/latest/ghpr_verify.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelines/pingcap/tiflow/latest/ghpr_verify.groovy b/pipelines/pingcap/tiflow/latest/ghpr_verify.groovy index 956d8020da..d948a9b10b 100644 --- a/pipelines/pingcap/tiflow/latest/ghpr_verify.groovy +++ b/pipelines/pingcap/tiflow/latest/ghpr_verify.groovy @@ -52,7 +52,7 @@ pipeline { # 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} - rm -rf "\$GOCACHE" + go clean -cache go version go env GOTOOLCHAIN GOROOT GOCACHE From ad474cde8fed2f92cd86886b040043e37b7b250d Mon Sep 17 00:00:00 2001 From: lyb Date: Tue, 17 Mar 2026 18:54:30 +0800 Subject: [PATCH 3/3] ci(ticdc): temporary toolchain pin for unit-test jobs Add a temporary workaround for pull-unit-test and pull-unit-test-next-gen to avoid mixed go1.25.5/go1.25.8 artifacts in Prow.\n\n- export GOTOOLCHAIN=go1.25.8\n- set job-specific GOCACHE\n- run go clean -cache before make\n\nTODO: revert after ticdc unit-test image/environment is consistently on go1.25.8. --- prow-jobs/pingcap/ticdc/latest-presubmits-next-gen.yaml | 5 +++++ prow-jobs/pingcap/ticdc/latest-presubmits.yaml | 5 +++++ 2 files changed, 10 insertions(+) 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: