From ca169d02c39b78bebc01aded1478189d1e98d75f Mon Sep 17 00:00:00 2001 From: kumailf Date: Wed, 29 Jul 2026 14:01:54 +0800 Subject: [PATCH] fix(pipelines/tiflash): use tiflash-base+mysql for release-6.5 IT runtime Builder image v20231106 has no mysql client, so fullstack run-test.sh fails with "mysql: command not found" after rewriting tiflash-ci-base. Rebuild the historical runtime from ghcr.io/pingcap-qe/bases/tiflash-base:v1.9.1 with yum install mysql (same as jenkins tiflash_ci_base Dockerfile). --- .../release-6.5/pull_integration_test.groovy | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pipelines/pingcap/tiflash/release-6.5/pull_integration_test.groovy b/pipelines/pingcap/tiflash/release-6.5/pull_integration_test.groovy index ba1734bd58..9176922c66 100644 --- a/pipelines/pingcap/tiflash/release-6.5/pull_integration_test.groovy +++ b/pipelines/pingcap/tiflash/release-6.5/pull_integration_test.groovy @@ -7,7 +7,7 @@ final K8S_NAMESPACE = "jenkins-tiflash" final POD_TEMPLATE_FILE = 'pipelines/pingcap/tiflash/release-6.5/pod-pull_build.yaml' final POD_INTEGRATIONTEST_TEMPLATE_FILE = 'pipelines/pingcap/tiflash/release-6.5/pod-pull_integration_test.yaml' final REFS = readJSON(text: params.JOB_SPEC).refs -final TIFLASH_TEST_IMAGE = 'ghcr.io/pingcap-qe/cd/builders/tiflash:v20231106' +final TIFLASH_IT_BASE_IMAGE = 'ghcr.io/pingcap-qe/bases/tiflash-base:v1.9.1' final WORKSPACE_STASH_NAME = 'tiflash-release-6.5-it-workspace' final PARALLELISM = 16 String tiflash_commit_hash = null @@ -249,7 +249,7 @@ pipeline { "TIKV_IMAGE=${OCI_ARTIFACT_HOST}/tikv/tikv/image:${tikvBranch}", "TIDB_IMAGE=${OCI_ARTIFACT_HOST}/pingcap/tidb/images/tidb-server:${tidbBranch}", "TIDB_FAILPOINT_IMAGE=${OCI_ARTIFACT_HOST}/pingcap/tidb/images/tidb-server:${tidbBranch}-failpoint", - "TIFLASH_IMAGE=${TIFLASH_TEST_IMAGE}", + "TIFLASH_IT_BASE_IMAGE=${TIFLASH_IT_BASE_IMAGE}", ]) { withCredentials([file(credentialsId: 'tidbx-docker-config', variable: 'DOCKER_CONFIG_JSON')]) { sh label: "prepare docker images", script: ''' @@ -278,7 +278,14 @@ pipeline { sed -i -e 's#./run-test.sh tidb-ci/fail-point-tests && ##g' ./run.sh fi fi - timeout 600 docker pull "${TIFLASH_IMAGE}" + # Old hub.pingcap.net/tiflash/tiflash-ci-base included mysql client for run-test.sh. + # Builder images do not; rebuild the historical runtime locally (see tiflash_ci_base Dockerfile). + timeout 600 docker pull "${TIFLASH_IT_BASE_IMAGE}" + docker build -t tiflash-ci-base-local:with-mysql - <