Skip to content
Jenkins
log in
Dashboard
pingcap
tidb
ghpr_unit_test
#8643
Pipeline Steps
Status
Changes
Console Output
View as plain text
View Build Information
Parameters
Timings
Git Build Data
Test Result
Open Blue Ocean
Pipeline Steps
Workspaces
Previous Build
Next Build
Step
Arguments
Status
Start of Pipeline - (1 hr 15 min in block)
readJSON - (0.26 sec in self)
readTrusted - (9 sec in self)
pipelines/pingcap/tidb/latest/pod-ghpr_unit_test.yaml
podTemplate - (1 hr 14 min in block)
podTemplate block - (1 hr 14 min in block)
node - (1 hr 14 min in block)
pingcap_tidb_ghpr_unit_test_8643-wv9zq
node block - (29 min in block)
stage - (28 sec in block)
Declarative: Checkout SCM
stage block (Declarative: Checkout SCM) - (28 sec in block)
checkout - (28 sec in self)
withEnv - (28 min in block)
GIT_BRANCH, GIT_COMMIT, GIT_PREVIOUS_COMMIT, GIT_PREVIOUS_SUCCESSFUL_COMMIT, GIT_URL
withEnv block - (28 min in block)
container - (28 min in block)
golang
container block - (28 min in block)
withEnv - (28 min in block)
FILE_SERVER_URL
withEnv block - (28 min in block)
timeout - (28 min in block)
timeout block - (28 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-8643-wv9zq-frb76-m08bh bash"
container - (0.76 sec in block)
net-tool
container block - (0.72 sec in block)
sh - (0.56 sec in self)
dig github.com
script - (0.11 sec in block)
script block - (67 ms in block)
stage - (16 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 - (7.5 sec in block)
script - (7.5 sec in block)
script block - (7.4 sec in block)
withCredentials - (2.7 sec in block)
withCredentials block - (2.6 sec in block)
sh (Set git ssh key) - (2.6 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 - (4.7 sec in block)
2
retry block - (4.6 sec in block)
sh (Checkout and merge pull request(s) to target if exist) - (4.6 sec in self)
stage - (28 min in block)
Test
stage block (Test) - (28 min in block)
withCredentials - (28 min in block)
withCredentials block - (28 min in block)
dir - (28 min in block)
tidb
dir block - (28 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 - (28 min in self)
#! /usr/bin/env bash set -o pipefail ./build/jenkins_unit_test.sh 2>&1 | tee bazel-test.log
dir - (1 sec in block)
tidb
dir block - (0.91 sec in block)
junit - (0.76 sec in self)
archiveArtifacts - (0.11 sec in self)
sh (Parse flaky test case results) - (0.56 sec in self)
./scripts/plugins/analyze-go-test-from-bazel-output.sh tidb/bazel-test.log || true
sh (Send event to cloudevents server) - (0.8 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 - (71 ms in self)
dir - (13 sec in block)
tidb
dir block - (13 sec in block)
script - (13 sec in block)
script block - (13 sec in block)
sh (upload coverage to codecov) - (13 sec in self)
stage - (0.73 sec in block)
Declarative: Post Actions
stage block (Declarative: Post Actions) - (0.69 sec in block)
catchError - (0.63 sec in block)
catchError block - (0.59 sec in block)
sh (Fail when long time cost test cases are found) - (0.56 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