Skip to content
StepArgumentsStatus
Start of Pipeline - (34 min in block)
readJSON - (0.13 sec in self)
readTrusted - (8.5 sec in self)pipelines/pingcap/tidb/latest/pod-ghpr_unit_test.yaml
podTemplate - (34 min in block)
podTemplate block - (34 min in block)
node - (34 min in block)pingcap_tidb_ghpr_unit_test_8647-dl0d5
node block - (34 min in block)
stage - (6.2 sec in block)Declarative: Checkout SCM
stage block (Declarative: Checkout SCM) - (6.1 sec in block)
checkout - (6.1 sec in self)
withEnv - (34 min in block)GIT_BRANCH, GIT_COMMIT, GIT_PREVIOUS_COMMIT, GIT_PREVIOUS_SUCCESSFUL_COMMIT, GIT_URL
withEnv block - (34 min in block)
container - (34 min in block)golang
container block - (34 min in block)
withEnv - (34 min in block)FILE_SERVER_URL
withEnv block - (34 min in block)
timeout - (34 min in block)
timeout block - (34 min in block)
stage - (1.5 sec in block)Debug info
stage block (Debug info) - (1.4 sec in block)
sh (Debug info) - (0.59 sec in self) printenv echo "-------------------------" go env echo "-------------------------" ls -l /dev/null echo "debug command: kubectl -n jenkins-tidb exec -ti pingcap-tidb-ghpr-unit-test-8647-dl0d5-kbbjs-31183 bash"
container - (0.78 sec in block)net-tool
container block - (0.74 sec in block)
sh - (0.55 sec in self)dig github.com
script - (0.14 sec in block)
script block - (66 ms in block)
stage - (17 sec in block)Checkout
stage block (Checkout) - (16 sec in block)
dir - (16 sec in block)tidb
dir block - (16 sec in block)
cache - (16 sec in block)
cache block - (11 sec in block)
script - (11 sec in block)
script block - (11 sec in block)
withCredentials - (2.7 sec in block)
withCredentials block - (2.6 sec in block)
sh (Set git ssh key) - (2.5 sec in self) [ -d ~/.ssh ] || mkdir ~/.ssh && chmod 0700 ~/.ssh cp "$SSH_KEY" ~/.ssh/id_rsa chmod 400 ~/.ssh/id_rsa ssh-keyscan -t rsa,dsa github.com >> ~/.ssh/known_hosts
retry - (8.4 sec in block)2
retry block - (8.4 sec in block)
sh (Checkout and merge pull request(s) to target if exist) - (8.3 sec in self)
stage - (34 min in block)Test
stage block (Test) - (34 min in block)
withCredentials - (34 min in block)
withCredentials block - (34 min in block)
dir - (33 min in block)tidb
dir block - (33 min in block)
sh - (0.56 sec in self) sed -i 's|repository_cache=/home/jenkins/.tidb/tmp|repository_cache=/share/.cache/bazel-repository-cache|g' Makefile.common git diff . git status
sh - (33 min in self)#! /usr/bin/env bash set -o pipefail ./build/jenkins_unit_test.sh 2>&1 | tee bazel-test.log
dir - (1.3 sec in block)tidb
dir block - (1.3 sec in block)
junit - (1.1 sec in self)
archiveArtifacts - (0.14 sec in self)
sh (Parse flaky test case results) - (0.86 sec in self)./scripts/plugins/analyze-go-test-from-bazel-output.sh tidb/bazel-test.log || true
sh (Send event to cloudevents server) - (10 sec in self)timeout 10 curl --verbose --request POST --url http://cloudevents-server.apps.svc/events --header "ce-id: $(uuidgen)" --header "ce-source: ${JENKINS_URL}" --header 'ce-type: test-case-run-report' --header 'ce-repo: pingcap/tidb' --header 'ce-branch: master' --header "ce-buildurl: ${BUILD_URL}" --header 'ce-specversion: 1.0' --header 'content-type: application/json; charset=UTF-8' --data @bazel-go-test-problem-cases.json || true
archiveArtifacts - (0.1 sec in self)
dir - (28 sec in block)tidb
dir block - (28 sec in block)
script - (28 sec in block)
script block - (28 sec in block)
sh (upload coverage to codecov) - (28 sec in self)
stage - (0.71 sec in block)Declarative: Post Actions
stage block (Declarative: Post Actions) - (0.67 sec in block)
catchError - (0.6 sec in block)
catchError block - (0.56 sec in block)
sh (Fail when long time cost test cases are found) - (0.53 sec in self)#! /usr/bin/env bash threshold=144 # unit is second, we should update it monthly. breakCaseListfile="break_longtime_case.txt" jq -r ".[] | select(.long_time != null) | .long_time | to_entries[] | select(.value > $threshold) | .key" bazel-go-test-problem-cases.json > $breakCaseListfile if (($(cat $breakCaseListfile | wc -l) > 0)); then echo "$(tput setaf 1)The execution time of these test cases exceeds the threshold($threshold):$(tput sgr0)" cat $breakCaseListfile echo "📌 ref: https://github.com/pingcap/tidb/issues/46820" exit 1 fi