Skip to content
StepArgumentsStatus
Start of Pipeline - (32 min in block)
readJSON - (0.24 sec in self)
readTrusted - (1 sec in self)pipelines/pingcap/tidb/latest/pod-ghpr_unit_test.yaml
podTemplate - (32 min in block)
podTemplate block - (32 min in block)
node - (32 min in block)pingcap_tidb_ghpr_unit_test_8906-0k7dk
node block - (32 min in block)
stage - (4.6 sec in block)Declarative: Checkout SCM
stage block (Declarative: Checkout SCM) - (4.5 sec in block)
checkout - (4.5 sec in self)
withEnv - (32 min in block)GIT_BRANCH, GIT_COMMIT, GIT_PREVIOUS_COMMIT, GIT_PREVIOUS_SUCCESSFUL_COMMIT, GIT_URL
withEnv block - (32 min in block)
container - (32 min in block)golang
container block - (32 min in block)
withEnv - (32 min in block)FILE_SERVER_URL
withEnv block - (32 min in block)
timeout - (32 min in block)
timeout block - (32 min in block)
stage - (1.4 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-8906-0k7dk-rrh5f-pkvk4 bash"
container - (0.77 sec in block)net-tool
container block - (0.73 sec in block)
sh - (0.55 sec in self)dig github.com
script - (0.1 sec in block)
script block - (62 ms in block)
stage - (25 sec in block)Checkout
stage block (Checkout) - (25 sec in block)
dir - (24 sec in block)tidb
dir block - (24 sec in block)
cache - (24 sec in block)
cache block - (9.5 sec in block)
script - (9.4 sec in block)
script block - (9.4 sec in block)
withCredentials - (3.6 sec in block)
withCredentials block - (2.7 sec in block)
sh (Set git ssh key) - (2.7 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 - (5.6 sec in block)2
retry block - (5.5 sec in block)
sh (Checkout and merge pull request(s) to target if exist) - (5.5 sec in self)
stage - (31 min in block)Test
stage block (Test) - (31 min in block)
withCredentials - (31 min in block)
withCredentials block - (31 min in block)
dir - (31 min in block)tidb
dir block - (31 min in block)
sh - (0.54 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 - (31 min in self)#! /usr/bin/env bash set -o pipefail ./build/jenkins_unit_test.sh 2>&1 | tee bazel-test.log
dir - (1.5 sec in block)tidb
dir block - (1.4 sec in block)
junit - (1.1 sec in self)
archiveArtifacts - (0.31 sec in self)
sh (Parse flaky test case results) - (0.85 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.2 sec in self)
dir - (12 sec in block)tidb
dir block - (12 sec in block)
script - (12 sec in block)
script block - (12 sec in block)
sh (upload coverage to codecov) - (12 sec in self)
stage - (0.74 sec in block)Declarative: Post Actions
stage block (Declarative: Post Actions) - (0.69 sec in block)
catchError - (0.62 sec in block)
catchError block - (0.58 sec in block)
sh (Fail when long time cost test cases are found) - (0.55 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