Skip to content

Console Output

Started by user Jenkins Admin
Obtained pipelines/pingcap/tiproxy/latest/ghpr_unit_test.groovy from git https://github.com/PingCAP-QE/ci.git
Loading library tipipeline@main
Library tipipeline@main is cached. Copying from home.
[Pipeline] Start of Pipeline
[Pipeline] readJSON
[Pipeline] readTrusted
Obtained pipelines/pingcap/tiproxy/latest/pod-ghpr_unit_test.yaml from git https://github.com/PingCAP-QE/ci.git
[Pipeline] podTemplate
[Pipeline] {
[Pipeline] node
Created Pod: kubernetes jenkins-tidb/pingcap-tiproxy-ghpr-unit-test-116-9hms7-4lp1v-lgr3m
Agent pingcap-tiproxy-ghpr-unit-test-116-9hms7-4lp1v-lgr3m is provisioned from template pingcap_tiproxy_ghpr_unit_test_116-9hms7-4lp1v
---
apiVersion: "v1"
kind: "Pod"
metadata:
  annotations:
    buildUrl: "http://jenkins.apps.svc.cluster.local:8080/jenkins/job/pingcap/job/tiproxy/job/ghpr_unit_test/116/"
    runUrl: "job/pingcap/job/tiproxy/job/ghpr_unit_test/116/"
  labels:
    jenkins/jenkins-jenkins-agent: "true"
    jenkins/label-digest: "6309011c3adf93b69baba50362610ba15afbce02"
    jenkins/label: "pingcap_tiproxy_ghpr_unit_test_116-9hms7"
  name: "pingcap-tiproxy-ghpr-unit-test-116-9hms7-4lp1v-lgr3m"
  namespace: "jenkins-tidb"
spec:
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
        - matchExpressions:
          - key: "kubernetes.io/arch"
            operator: "In"
            values:
            - "amd64"
  containers:
  - image: "hub.pingcap.net/jenkins/centos7_golang-1.21:latest"
    name: "golang"
    resources:
      limits:
        memory: "8Gi"
        cpu: "4"
      requests:
        memory: "8Gi"
        cpu: "4"
    tty: true
    volumeMounts:
    - mountPath: "/home/jenkins/agent"
      name: "workspace-volume"
      readOnly: false
  - image: "hub.pingcap.net/jenkins/network-multitool"
    name: "net-tool"
    resources:
      limits:
        memory: "128Mi"
        cpu: "100m"
    tty: true
    volumeMounts:
    - mountPath: "/home/jenkins/agent"
      name: "workspace-volume"
      readOnly: false
  - image: "hub.pingcap.net/jenkins/python3-requests:latest"
    name: "report"
    resources:
      limits:
        memory: "256Mi"
        cpu: "100m"
    tty: true
    volumeMounts:
    - mountPath: "/home/jenkins/agent"
      name: "workspace-volume"
      readOnly: false
  - env:
    - name: "JENKINS_SECRET"
      value: "********"
    - name: "JENKINS_TUNNEL"
      value: "jenkins-agent.apps.svc.cluster.local:50000"
    - name: "JENKINS_AGENT_NAME"
      value: "pingcap-tiproxy-ghpr-unit-test-116-9hms7-4lp1v-lgr3m"
    - name: "JENKINS_NAME"
      value: "pingcap-tiproxy-ghpr-unit-test-116-9hms7-4lp1v-lgr3m"
    - name: "JENKINS_AGENT_WORKDIR"
      value: "/home/jenkins/agent"
    - name: "JENKINS_URL"
      value: "http://jenkins.apps.svc.cluster.local:8080/jenkins/"
    image: "jenkins/inbound-agent:3206.vb_15dcf73f6a_9-2"
    name: "jnlp"
    resources:
      requests:
        memory: "256Mi"
        cpu: "100m"
    volumeMounts:
    - mountPath: "/home/jenkins/agent"
      name: "workspace-volume"
      readOnly: false
  restartPolicy: "Never"
  securityContext:
    fsGroup: 1000
  volumes:
  - emptyDir:
      medium: ""
    name: "workspace-volume"

Running on pingcap-tiproxy-ghpr-unit-test-116-9hms7-4lp1v-lgr3m in /home/jenkins/agent/workspace/pingcap/tiproxy/ghpr_unit_test
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
The recommended git tool is: git
No credentials specified
Cloning the remote Git repository
Using shallow clone with depth 1
Cloning repository https://github.com/PingCAP-QE/ci.git
 > git init /home/jenkins/agent/workspace/pingcap/tiproxy/ghpr_unit_test # timeout=10
Fetching upstream changes from https://github.com/PingCAP-QE/ci.git
 > git --version # timeout=10
 > git --version # 'git version 2.39.2'
 > git fetch --tags --force --progress --depth=1 -- https://github.com/PingCAP-QE/ci.git +refs/heads/*:refs/remotes/origin/* # timeout=5
Avoid second fetch
Checking out Revision 03312178c534dce949face80c69812d989e55009 (origin/main)
Commit message: "fix(br): use failpoint tidb-server instead (#2951)"
 > git config remote.origin.url https://github.com/PingCAP-QE/ci.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git rev-parse origin/main^{commit} # timeout=10
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 03312178c534dce949face80c69812d989e55009 # timeout=10
 > git rev-list --no-walk 03312178c534dce949face80c69812d989e55009 # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] container
[Pipeline] {
[Pipeline] timeout
Timeout set to expire in 30 min
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Debug info)
[Pipeline] sh
+ printenv
PROW_JOB_ID=a1e653c9-8e50-4a05-ac33-af037a3069fa
JENKINS_NODE_COOKIE=8d168a92-4633-4c75-b901-dc1b140ce948
BUILD_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/ghpr_unit_test/116/
GOLANG_VERSION=1.21.6
HOSTNAME=pingcap-tiproxy-ghpr-unit-test-116-9hms7-4lp1v-lgr3m
HUDSON_SERVER_COOKIE=83ef27fe9acccc92
KUBERNETES_PORT_443_TCP_PORT=443
KUBERNETES_PORT=tcp://10.233.0.1:443
TERM=xterm
STAGE_NAME=Debug info
BUILD_TAG=jenkins-pingcap-tiproxy-ghpr_unit_test-116
KUBERNETES_SERVICE_PORT=443
GIT_PREVIOUS_COMMIT=03312178c534dce949face80c69812d989e55009
JOB_SPEC={"type":"presubmit","job":"pingcap/tiproxy/ghpr_unit_test","buildid":"1787455121542615042","prowjobid":"a1e653c9-8e50-4a05-ac33-af037a3069fa","refs":{"org":"pingcap","repo":"tiproxy","repo_link":"https://github.com/pingcap/tiproxy","base_ref":"main","base_sha":"a34431ad9d5ad96b50c03c0253347bff9355c77c","base_link":"https://github.com/pingcap/tiproxy/commit/a34431ad9d5ad96b50c03c0253347bff9355c77c","pulls":[{"number":525,"author":"djshow832","sha":"954d7a8e9f08e0592489b4c7bdf82ad8a2692b17","title":"proxy: reject connection after graceful wait","link":"https://github.com/pingcap/tiproxy/pull/525","commit_link":"https://github.com/pingcap/tiproxy/pull/525/commits/954d7a8e9f08e0592489b4c7bdf82ad8a2692b17","author_link":"https://github.com/djshow832"}]}}
KUBERNETES_SERVICE_HOST=10.233.0.1
WORKSPACE=/home/jenkins/agent/workspace/pingcap/tiproxy/ghpr_unit_test
JOB_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/ghpr_unit_test/
RUN_CHANGES_DISPLAY_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/ghpr_unit_test/116/display/redirect?page=changes
RUN_ARTIFACTS_DISPLAY_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/ghpr_unit_test/116/display/redirect?page=artifacts
JENKINS_HOME=/var/jenkins_home
GIT_COMMIT=03312178c534dce949face80c69812d989e55009
PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN_DISPLAY_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/ghpr_unit_test/116/display/redirect
GOPROXY=http://goproxy.apps.svc,https://proxy.golang.org,direct
_=/usr/bin/printenv
POD_CONTAINER=golang
PWD=/home/jenkins/agent/workspace/pingcap/tiproxy/ghpr_unit_test
HUDSON_URL=https://do.pingcap.net/jenkins/
JOB_NAME=pingcap/tiproxy/ghpr_unit_test
TZ=Asia/Shanghai
BUILD_DISPLAY_NAME=#116
JENKINS_URL=https://do.pingcap.net/jenkins/
BUILD_ID=1787455121542615042
GOLANG_DOWNLOAD_SHA256=3f934f40ac360b9c01f616a9aa1796d227d8b0328bf64cb045c7b8c4ee9caea4
JOB_BASE_NAME=ghpr_unit_test
GIT_PREVIOUS_SUCCESSFUL_COMMIT=03312178c534dce949face80c69812d989e55009
RUN_TESTS_DISPLAY_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/ghpr_unit_test/116/display/redirect?page=tests
SHLVL=3
HOME=/home/jenkins
POD_LABEL=pingcap_tiproxy_ghpr_unit_test_116-9hms7
GOROOT=/usr/local/go
GIT_BRANCH=origin/main
KUBERNETES_PORT_443_TCP_PROTO=tcp
CI=true
KUBERNETES_SERVICE_PORT_HTTPS=443
WORKSPACE_TMP=/home/jenkins/agent/workspace/pingcap/tiproxy/ghpr_unit_test@tmp
EXECUTOR_NUMBER=0
JENKINS_SERVER_COOKIE=durable-7d79bf38a1c99f69c570c8bd10dc3cd081d14284c7161a25b858506c668a46d1
NODE_LABELS=pingcap-tiproxy-ghpr-unit-test-116-9hms7-4lp1v-lgr3m pingcap_tiproxy_ghpr_unit_test_116-9hms7
GIT_URL=https://github.com/PingCAP-QE/ci.git
HUDSON_HOME=/var/jenkins_home
CLASSPATH=
NODE_NAME=pingcap-tiproxy-ghpr-unit-test-116-9hms7-4lp1v-lgr3m
GOPATH=/go
JOB_DISPLAY_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/ghpr_unit_test/display/redirect
BUILD_NUMBER=116
KUBERNETES_PORT_443_TCP_ADDR=10.233.0.1
KUBERNETES_PORT_443_TCP=tcp://10.233.0.1:443
GOLANG_DOWNLOAD_URL=https://dl.google.com/go/go1.21.6.linux-amd64.tar.gz
+ echo -------------------------
-------------------------
+ go env
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/jenkins/.cache/go-build'
GOENV='/home/jenkins/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/go'
GOPRIVATE=''
GOPROXY='http://goproxy.apps.svc,https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.6'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1916503597=/tmp/go-build -gno-record-gcc-switches'
+ echo -------------------------
-------------------------
+ ls -l /dev/null
crw-rw-rw-. 1 root root 1, 3 May  6 20:11 /dev/null
+ echo 'debug command: kubectl -n jenkins-tidb exec -ti pingcap-tiproxy-ghpr-unit-test-116-9hms7-4lp1v-lgr3m bash'
debug command: kubectl -n jenkins-tidb exec -ti pingcap-tiproxy-ghpr-unit-test-116-9hms7-4lp1v-lgr3m bash
[Pipeline] container
[Pipeline] {
[Pipeline] sh
+ dig github.com

; <<>> DiG 9.18.16 <<>> github.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20199
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: 5bc59e636166d774 (echoed)
;; QUESTION SECTION:
;github.com.			IN	A

;; ANSWER SECTION:
github.com.		21	IN	A	20.205.243.166

;; Query time: 0 msec
;; SERVER: 169.254.25.10#53(169.254.25.10) (UDP)
;; WHEN: Mon May 06 12:11:55 UTC 2024
;; MSG SIZE  rcvd: 77

[Pipeline] }
[Pipeline] // container
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] dir
Running in /home/jenkins/agent/workspace/pingcap/tiproxy/ghpr_unit_test/tiproxy
[Pipeline] {
[Pipeline] cache
Cache restored successfully (git/pingcap/tiproxy/rev-a34431a-954d7a8)
3603968 bytes in 0.24 secs (14717953 bytes/sec)
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] withCredentials
Masking supported pattern matches of $SSH_KEY
[Pipeline] {
[Pipeline] sh
+ '[' -d /home/jenkins/.ssh ']'
+ mkdir /home/jenkins/.ssh
+ chmod 0700 /home/jenkins/.ssh
+ cp **** /home/jenkins/.ssh/id_rsa
+ chmod 400 /home/jenkins/.ssh/id_rsa
+ ssh-keyscan -t rsa,dsa github.com
# github.com:22 SSH-2.0-babeld-9713928c
# github.com:22 SSH-2.0-babeld-9713928c
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] retry
[Pipeline] {
[Pipeline] sh
git version 2.36.6
Reinitialized existing Git repository in /home/jenkins/agent/workspace/pingcap/tiproxy/ghpr_unit_test/tiproxy/.git/
.git
HEAD is now at 954d7a8 Merge branch 'main' into graceful_wait
POST git-upload-pack (632 bytes)
From https://github.com/pingcap/tiproxy
 = [up to date]      main               -> origin/main
 = [up to date]      refs/pull/525/head -> origin/pr/525/head
Previous HEAD position was 954d7a8 Merge branch 'main' into graceful_wait
HEAD is now at a34431a balance: support cpu-based balance (#520)
๐Ÿšง Checkouting to base SHA:a34431ad9d5ad96b50c03c0253347bff9355c77c...
HEAD is now at a34431a balance: support cpu-based balance (#520)
โœ… Checked. ๐ŸŽ‰
๐Ÿงพ HEAD info:
a34431ad9d5ad96b50c03c0253347bff9355c77c
a34431a balance: support cpu-based balance (#520)
ab4bdeb router, factor: decouple factor with router (#518)
25937b6 metricsreader: fix the metrics_reader.getPromAPI fun panic when there is no prometheus info in pd (#516)
๐Ÿšง Pre-merge heads of pull requests to base SHA: a34431ad9d5ad96b50c03c0253347bff9355c77c ...
Updating a34431a..954d7a8
Fast-forward
 pkg/proxy/proxy.go      | 61 ++++++++++++++++++++++++-------------------------
 pkg/proxy/proxy_test.go | 41 +++++++++++++++++++++------------
 2 files changed, 57 insertions(+), 45 deletions(-)
๐Ÿงพ Pre-merged result:
954d7a8e9f08e0592489b4c7bdf82ad8a2692b17
954d7a8 Merge branch 'main' into graceful_wait
7104e79 reject connection after graceful wait
a34431a balance: support cpu-based balance (#520)
โœ… Pre merged ๐ŸŽ‰
๐Ÿ“ update submodules ...
โœ… update submodules done
โœ… ~~~~~All done.~~~~~~
[Pipeline] }
[Pipeline] // retry
[Pipeline] }
[Pipeline] // script
[Pipeline] }
Cache not saved (git/pingcap/tiproxy/rev-a34431a-954d7a8 already exists)
[Pipeline] // cache
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checks)
[Pipeline] withCredentials
Masking supported pattern matches of $CODECOV_TOKEN
[Pipeline] {
[Pipeline] dir
Running in /home/jenkins/agent/workspace/pingcap/tiproxy/ghpr_unit_test/tiproxy
[Pipeline] {
[Pipeline] sh
+ make test
GOBIN=/home/jenkins/agent/workspace/pingcap/tiproxy/ghpr_unit_test/tiproxy/bin go install github.com/wadey/gocovmerge@master
go: finding module for package golang.org/x/tools/cover
go: downloading golang.org/x/tools v0.20.0
go: found golang.org/x/tools/cover in golang.org/x/tools v0.20.0
rm -f .cover.*
go test -coverprofile=.cover.pkg ./...
go: downloading github.com/prometheus/client_golang v1.14.0
go: downloading github.com/tidwall/btree v1.5.2
go: downloading github.com/gin-gonic/gin v1.8.1
go: downloading github.com/stretchr/testify v1.8.4
go: downloading github.com/tiancaiamao/gp v0.0.0-20230126082955-4f9e4f1ed9b5
go: downloading github.com/BurntSushi/toml v1.2.1
go: downloading go.uber.org/zap v1.26.0
go: downloading github.com/pingcap/tidb v1.1.0-beta.0.20230103132820-3ccff46aa3bc
go: downloading github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
go: downloading github.com/go-sql-driver/mysql v1.7.0
go: downloading google.golang.org/grpc v1.54.0
go: downloading go.uber.org/ratelimit v0.2.0
go: downloading github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726
go: downloading github.com/pingcap/tidb/parser v0.0.0-20230103132820-3ccff46aa3bc
go: downloading go.uber.org/atomic v1.11.0
go: downloading github.com/bahlo/generic-list-go v0.2.0
go: downloading github.com/prometheus/client_model v0.3.0
go: downloading go.etcd.io/etcd/server/v3 v3.5.6
go: downloading go.etcd.io/etcd/client/v3 v3.5.6
go: downloading github.com/spf13/cobra v1.6.1
go: downloading github.com/prometheus/common v0.39.0
go: downloading github.com/pingcap/sysutil v1.0.0
go: downloading github.com/klauspost/compress v1.16.6
go: downloading github.com/go-mysql-org/go-mysql v1.6.0
go: downloading github.com/cenkalti/backoff/v4 v4.2.1
go: downloading go.etcd.io/etcd/client/pkg/v3 v3.5.6
go: downloading gopkg.in/natefinch/lumberjack.v2 v2.2.1
go: downloading github.com/pingcap/kvproto v0.0.0-20231018065736-c0689aded40c
go: downloading github.com/gin-contrib/pprof v1.4.0
go: downloading github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129
go: downloading github.com/golang/protobuf v1.5.3
go: downloading github.com/shirou/gopsutil/v3 v3.23.9
go: downloading github.com/pingcap/log v1.1.1-0.20221116035753-734d527bc87c
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/spf13/pflag v1.0.5
go: downloading golang.org/x/sys v0.13.0
go: downloading go.etcd.io/etcd/api/v3 v3.5.6
go: downloading github.com/coreos/go-systemd/v22 v22.5.0
go: downloading golang.org/x/net v0.17.0
go: downloading github.com/gin-contrib/sse v0.1.0
go: downloading github.com/mattn/go-isatty v0.0.16
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/go-playground/validator/v10 v10.10.0
go: downloading github.com/ugorji/go/codec v1.2.7
go: downloading google.golang.org/protobuf v1.31.0
go: downloading github.com/pelletier/go-toml/v2 v2.0.5
go: downloading github.com/pingcap/errors v0.11.5-0.20221009092201-b66cddb77c32
go: downloading github.com/google/uuid v1.3.1
go: downloading github.com/siddontang/go-log v0.0.0-20180807004314-8d05993dda07
go: downloading github.com/gogo/protobuf v1.3.2
go: downloading google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f
go: downloading github.com/coreos/go-semver v0.3.0
go: downloading go.uber.org/multierr v1.11.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.2.0
go: downloading github.com/prometheus/procfs v0.9.0
go: downloading github.com/json-iterator/go v1.1.12
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.4
go: downloading github.com/leodido/go-urn v1.2.1
go: downloading golang.org/x/crypto v0.14.0
go: downloading github.com/go-playground/universal-translator v0.18.0
go: downloading golang.org/x/text v0.13.0
go: downloading github.com/tklauser/go-sysconf v0.3.12
go: downloading github.com/go-playground/locales v0.14.0
go: downloading github.com/modern-go/reflect2 v1.0.2
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/tklauser/numcpus v0.6.1
go: downloading github.com/soheilhy/cmux v0.1.5
go: downloading github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
go: downloading github.com/grpc-ecosystem/grpc-gateway v1.16.0
go: downloading go.etcd.io/etcd/pkg/v3 v3.5.6
go: downloading go.etcd.io/bbolt v1.3.6
go: downloading github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75
go: downloading go.opentelemetry.io/otel/sdk v1.11.2
go: downloading go.opentelemetry.io/otel v1.11.2
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.11.2
go: downloading github.com/jonboulle/clockwork v0.3.0
go: downloading go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.37.0
go: downloading go.etcd.io/etcd/raft/v3 v3.5.6
go: downloading github.com/dustin/go-humanize v1.0.0
go: downloading github.com/google/btree v1.1.2
go: downloading sigs.k8s.io/yaml v1.3.0
go: downloading github.com/xiang90/probing v0.0.0-20221125231312-a49e3df8f510
go: downloading golang.org/x/time v0.3.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.11.2
go: downloading github.com/golang-jwt/jwt/v4 v4.4.3
go: downloading github.com/gorilla/websocket v1.5.0
go: downloading github.com/sirupsen/logrus v1.9.0
go: downloading go.etcd.io/etcd/client/v2 v2.305.6
go: downloading go.opentelemetry.io/otel/metric v0.34.0
go: downloading go.opentelemetry.io/otel/trace v1.11.2
go: downloading github.com/go-logr/logr v1.2.3
go: downloading go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.11.2
go: downloading go.opentelemetry.io/proto/otlp v0.19.0
go: downloading github.com/go-logr/stdr v1.2.2
go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.14.0
go: downloading github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548
go: downloading golang.org/x/exp v0.0.0-20221023144134-a1e5550cf13e
go: downloading github.com/tikv/pd/client v0.0.0-20221031025758-80f0d8ca4d07
go: downloading github.com/pingcap/failpoint v0.0.0-20220423142525-ae43b7f4e5c3
go: downloading github.com/gorilla/mux v1.8.0
go: downloading github.com/coocood/freecache v1.2.1
go: downloading github.com/tikv/client-go/v2 v2.0.4-0.20221226080148-018c59dbd837
go: downloading github.com/uber/jaeger-client-go v2.22.1+incompatible
go: downloading github.com/opentracing/opentracing-go v1.2.0
go: downloading github.com/pingcap/tipb v0.0.0-20221123081521-2fb828910813
go: downloading golang.org/x/sync v0.3.0
go: downloading github.com/danjacques/gofslock v0.0.0-20191023191349-0a45f885bc37
go: downloading github.com/ngaut/pools v0.0.0-20180318154953-b7bc8c42aac7
go: downloading github.com/twmb/murmur3 v1.1.3
go: downloading github.com/cockroachdb/errors v1.8.1
go: downloading github.com/opentracing/basictracer-go v1.0.0
go: downloading github.com/golang/snappy v0.0.4
go: downloading github.com/ngaut/sync2 v0.0.0-20141008032647-7a24ed77b2ef
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/uber/jaeger-lib v2.4.1+incompatible
go: downloading github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2
go: downloading github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f
go: downloading github.com/cockroachdb/redact v1.0.8
go: downloading github.com/kr/pretty v0.3.0
go: downloading github.com/kr/text v0.2.0
go: downloading github.com/rogpeppe/go-internal v1.8.1
go: downloading github.com/stathat/consistent v1.0.0
go: downloading github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13
?   	github.com/pingcap/tiproxy/cmd/tiproxy	[no test files]
?   	github.com/pingcap/tiproxy/cmd/tiproxyctl	[no test files]
ok  	github.com/pingcap/tiproxy/pkg/balance/factor	0.028s	coverage: 85.2% of statements
?   	github.com/pingcap/tiproxy/pkg/manager/namespace	[no test files]
?   	github.com/pingcap/tiproxy/pkg/proxy/client	[no test files]
?   	github.com/pingcap/tiproxy/pkg/proxy/keepalive	[no test files]
?   	github.com/pingcap/tiproxy/pkg/sctx	[no test files]
?   	github.com/pingcap/tiproxy/pkg/server	[no test files]
?   	github.com/pingcap/tiproxy/pkg/testkit	[no test files]
?   	github.com/pingcap/tiproxy/pkg/util/bufio	[no test files]
?   	github.com/pingcap/tiproxy/pkg/util/versioninfo	[no test files]
ok  	github.com/pingcap/tiproxy/pkg/balance/metricsreader	2.427s	coverage: 85.5% of statements
ok  	github.com/pingcap/tiproxy/pkg/balance/observer	3.099s	coverage: 85.4% of statements
ok  	github.com/pingcap/tiproxy/pkg/balance/policy	0.004s	coverage: 87.5% of statements
ok  	github.com/pingcap/tiproxy/pkg/balance/router	3.062s	coverage: 77.6% of statements
ok  	github.com/pingcap/tiproxy/pkg/manager/cert	2.143s	coverage: 91.2% of statements
ok  	github.com/pingcap/tiproxy/pkg/manager/config	3.587s	coverage: 66.7% of statements
ok  	github.com/pingcap/tiproxy/pkg/manager/infosync	16.136s	coverage: 88.5% of statements
ok  	github.com/pingcap/tiproxy/pkg/manager/logger	3.274s	coverage: 78.4% of statements
ok  	github.com/pingcap/tiproxy/pkg/metrics	0.005s	coverage: 75.0% of statements
ok  	github.com/pingcap/tiproxy/pkg/proxy	3.815s	coverage: 90.8% of statements
ok  	github.com/pingcap/tiproxy/pkg/proxy/backend	6.974s	coverage: 81.3% of statements
ok  	github.com/pingcap/tiproxy/pkg/proxy/net	8.941s	coverage: 74.6% of statements
ok  	github.com/pingcap/tiproxy/pkg/proxy/proxyprotocol	0.005s	coverage: 66.9% of statements
ok  	github.com/pingcap/tiproxy/pkg/server/api	0.282s	coverage: 72.0% of statements
ok  	github.com/pingcap/tiproxy/pkg/util/monotime	0.104s	coverage: 100.0% of statements
cd lib && go test -coverprofile=../.cover.lib ./...
go: downloading github.com/BurntSushi/toml v0.3.1
go: downloading go.uber.org/zap v1.23.0
go: downloading github.com/spf13/cobra v1.5.0
go: downloading github.com/stretchr/testify v1.8.1
go: downloading gopkg.in/natefinch/lumberjack.v2 v2.0.0
go: downloading go.uber.org/atomic v1.9.0
go: downloading go.uber.org/multierr v1.8.0
?   	github.com/pingcap/tiproxy/lib/cli	[no test files]
ok  	github.com/pingcap/tiproxy/lib/config	0.004s	coverage: 27.3% of statements
?   	github.com/pingcap/tiproxy/lib/util/logger	[no test files]
?   	github.com/pingcap/tiproxy/lib/util/retry	[no test files]
?   	github.com/pingcap/tiproxy/lib/util/sys	[no test files]
ok  	github.com/pingcap/tiproxy/lib/util/cmd	0.004s	coverage: 19.2% of statements
ok  	github.com/pingcap/tiproxy/lib/util/errors	0.004s	coverage: 67.9% of statements
ok  	github.com/pingcap/tiproxy/lib/util/security	0.428s	coverage: 65.6% of statements
ok  	github.com/pingcap/tiproxy/lib/util/systimemon	0.114s	coverage: 86.7% of statements
ok  	github.com/pingcap/tiproxy/lib/util/waitgroup	0.035s	coverage: 82.6% of statements
/home/jenkins/agent/workspace/pingcap/tiproxy/ghpr_unit_test/tiproxy/bin/gocovmerge .cover.* > coverage.dat
go tool cover -func=coverage.dat -o .cover.func
tail -1 .cover.func
total:										(statements)			72.7%
rm -f .cover.*
[Pipeline] }
[Pipeline] // dir
Post stage
[Pipeline] dir
Running in /home/jenkins/agent/workspace/pingcap/tiproxy/ghpr_unit_test/tiproxy
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] sh
[2024-05-06T12:13:59.086Z] ['info'] 
     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/

  Codecov report uploader 0.5.0
[2024-05-06T12:13:59.087Z] ['info'] => Project root located at: .
[2024-05-06T12:13:59.089Z] ['info'] ->  Token found by environment variables
[2024-05-06T12:13:59.097Z] ['info'] Searching for coverage files...
[2024-05-06T12:13:59.126Z] ['info'] => Found 1 possible coverage files:
  ./coverage.dat
[2024-05-06T12:13:59.127Z] ['info'] Processing ./coverage.dat...
[2024-05-06T12:13:59.136Z] ['info'] Using manual override from args.
[2024-05-06T12:13:59.136Z] ['info'] Detected Jenkins CI as the CI provider.
[2024-05-06T12:13:59.141Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.5.0&token=*******&branch=origin%2Fpr%2F525&build=116&build_url=https%3A%2F%2Fdo.pingcap.net%2Fjenkins%2Fjob%2Fpingcap%2Fjob%2Ftiproxy%2Fjob%2Fghpr_unit_test%2F116%2F&commit=954d7a8e9f08e0592489b4c7bdf82ad8a2692b17&job=&pr=525&service=jenkins&slug=pingcap%2Ftiproxy&name=&tag=&flags=unit&parent=
[2024-05-06T12:13:59.897Z] ['info'] https://app.codecov.io/github/pingcap/tiproxy/commit/954d7a8e9f08e0592489b4c7bdf82ad8a2692b17
https://storage.googleapis.com/codecov/v4/raw/2024-05-06/E39C29B9551CC79797941291801F19DD/954d7a8e9f08e0592489b4c7bdf82ad8a2692b17/2dbf9285-56c6-4e1e-9143-49ce58f39501.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20240506%2Fus-west2%2Fs3%2Faws4_request&X-Amz-Date=20240506T121359Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=e9023418f3c892cdc9f1af38a8a1cf49484af599237c1c628ba7354b83a1df5f
[2024-05-06T12:13:59.898Z] ['info'] Uploading...
[2024-05-06T12:14:00.623Z] ['info'] {"status":"success","resultURL":"https://app.codecov.io/github/pingcap/tiproxy/commit/954d7a8e9f08e0592489b4c7bdf82ad8a2692b17"}
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // container
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // podTemplate
[Pipeline] End of Pipeline
Finished: SUCCESS