Skip to content

Console Output

Started by user Jenkins Admin
Obtained pipelines/pingcap/tiproxy/latest/ghpr_build.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_build.yaml from git https://github.com/PingCAP-QE/ci.git
[Pipeline] podTemplate
[Pipeline] {
[Pipeline] node
Created Pod: kubernetes jenkins-tidb/pingcap-tiproxy-ghpr-build-98-420t5-sxx0v-8ws2j
Agent pingcap-tiproxy-ghpr-build-98-420t5-sxx0v-8ws2j is provisioned from template pingcap_tiproxy_ghpr_build_98-420t5-sxx0v
---
apiVersion: "v1"
kind: "Pod"
metadata:
  annotations:
    buildUrl: "http://jenkins.apps.svc.cluster.local:8080/jenkins/job/pingcap/job/tiproxy/job/ghpr_build/98/"
    runUrl: "job/pingcap/job/tiproxy/job/ghpr_build/98/"
  labels:
    jenkins/jenkins-jenkins-agent: "true"
    jenkins/label-digest: "8a7f88fcbd18b6afebcefdd35195da61eb8f2d65"
    jenkins/label: "pingcap_tiproxy_ghpr_build_98-420t5"
  name: "pingcap-tiproxy-ghpr-build-98-420t5-sxx0v-8ws2j"
  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-build-98-420t5-sxx0v-8ws2j"
    - name: "JENKINS_NAME"
      value: "pingcap-tiproxy-ghpr-build-98-420t5-sxx0v-8ws2j"
    - 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-build-98-420t5-sxx0v-8ws2j in /home/jenkins/agent/workspace/pingcap/tiproxy/ghpr_build
[Pipeline] {
[Pipeline] container
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] timeout
Timeout set to expire in 15 min
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Debug info)
[Pipeline] sh
+ printenv
PROW_JOB_ID=66362452-0125-4c27-8474-ca4532391e13
JENKINS_NODE_COOKIE=70200f70-d3a9-4ddf-b9f3-d77daad7ff91
BUILD_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/ghpr_build/98/
GOLANG_VERSION=1.21.6
HOSTNAME=pingcap-tiproxy-ghpr-build-98-420t5-sxx0v-8ws2j
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_build-98
KUBERNETES_SERVICE_PORT=443
JOB_SPEC={"type":"presubmit","job":"pingcap/tiproxy/ghpr_build","buildid":"1787472221732605953","prowjobid":"66362452-0125-4c27-8474-ca4532391e13","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":"aec86817c833feb51f6f5edbde83b7710cd7dc56","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/aec86817c833feb51f6f5edbde83b7710cd7dc56","author_link":"https://github.com/djshow832"}]}}
KUBERNETES_SERVICE_HOST=10.233.0.1
WORKSPACE=/home/jenkins/agent/workspace/pingcap/tiproxy/ghpr_build
JOB_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/ghpr_build/
RUN_CHANGES_DISPLAY_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/ghpr_build/98/display/redirect?page=changes
RUN_ARTIFACTS_DISPLAY_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/ghpr_build/98/display/redirect?page=artifacts
FILE_SERVER_URL=http://fileserver.pingcap.net
JENKINS_HOME=/var/jenkins_home
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_build/98/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_build
HUDSON_URL=https://do.pingcap.net/jenkins/
JOB_NAME=pingcap/tiproxy/ghpr_build
TZ=Asia/Shanghai
BUILD_DISPLAY_NAME=#98
JENKINS_URL=https://do.pingcap.net/jenkins/
BUILD_ID=1787472221732605953
GOLANG_DOWNLOAD_SHA256=3f934f40ac360b9c01f616a9aa1796d227d8b0328bf64cb045c7b8c4ee9caea4
JOB_BASE_NAME=ghpr_build
RUN_TESTS_DISPLAY_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/ghpr_build/98/display/redirect?page=tests
SHLVL=3
HOME=/home/jenkins
POD_LABEL=pingcap_tiproxy_ghpr_build_98-420t5
GOROOT=/usr/local/go
KUBERNETES_PORT_443_TCP_PROTO=tcp
CI=true
KUBERNETES_SERVICE_PORT_HTTPS=443
WORKSPACE_TMP=/home/jenkins/agent/workspace/pingcap/tiproxy/ghpr_build@tmp
EXECUTOR_NUMBER=0
JENKINS_SERVER_COOKIE=durable-e0a29a1e39be118becfab089f5113b68501ae98a6c52409ce506d1fb27d680ff
NODE_LABELS=pingcap-tiproxy-ghpr-build-98-420t5-sxx0v-8ws2j pingcap_tiproxy_ghpr_build_98-420t5
HUDSON_HOME=/var/jenkins_home
CLASSPATH=
NODE_NAME=pingcap-tiproxy-ghpr-build-98-420t5-sxx0v-8ws2j
GOPATH=/go
JOB_DISPLAY_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/ghpr_build/display/redirect
BUILD_NUMBER=98
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-build1628732332=/tmp/go-build -gno-record-gcc-switches'
+ echo -------------------------
-------------------------
+ echo 'debug command: kubectl -n jenkins-tidb exec -ti pingcap-tiproxy-ghpr-build-98-420t5-sxx0v-8ws2j bash'
debug command: kubectl -n jenkins-tidb exec -ti pingcap-tiproxy-ghpr-build-98-420t5-sxx0v-8ws2j 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: 52185
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;github.com.			IN	A

;; ANSWER SECTION:
github.com.		30	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 13:19:43 UTC 2024
;; MSG SIZE  rcvd: 65

[Pipeline] }
[Pipeline] // container
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] timeout
Timeout set to expire in 5 min 0 sec
[Pipeline] {
[Pipeline] dir
Running in /home/jenkins/agent/workspace/pingcap/tiproxy/ghpr_build/tiproxy
[Pipeline] {
[Pipeline] cache
Cache restored successfully (git/pingcap/tiproxy/rev-a34431a)
3585024 bytes in 0.32 secs (11079158 bytes/sec)
[Pipeline] {
[Pipeline] retry
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] sh
git version 2.36.6
Reinitialized existing Git repository in /home/jenkins/agent/workspace/pingcap/tiproxy/ghpr_build/tiproxy/.git/
.git
HEAD is now at a34431a balance: support cpu-based balance (#520)
POST git-upload-pack (632 bytes)
POST git-upload-pack (473 bytes)
From https://github.com/pingcap/tiproxy
 = [up to date]      main               -> origin/main
 * [new ref]         refs/pull/525/head -> origin/pr/525/head
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..aec8681
Fast-forward
 pkg/proxy/proxy.go      | 58 ++++++++++++++++++++++++-------------------------
 pkg/proxy/proxy_test.go | 41 ++++++++++++++++++++++------------
 2 files changed, 55 insertions(+), 44 deletions(-)
๐Ÿงพ Pre-merged result:
aec86817c833feb51f6f5edbde83b7710cd7dc56
aec8681 fix clientConn not set
954d7a8 Merge branch 'main' into graceful_wait
7104e79 reject connection after graceful wait
โœ… Pre merged ๐ŸŽ‰
โœ… ~~~~~All done.~~~~~~
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // retry
[Pipeline] }
Cache saved successfully (git/pingcap/tiproxy/rev-a34431a-aec8681)
3612160 bytes in 0.43 secs (8443724 bytes/sec)
[Pipeline] // cache
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] dir
Running in /home/jenkins/agent/workspace/pingcap/tiproxy/ghpr_build/tiproxy
[Pipeline] {
[Pipeline] sh
+ make
go build -gcflags '' -ldflags ' -X "github.com/pingcap/tiproxy/pkg/util/versioninfo.TiProxyVersion=v1.0.0-20-gaec8681" -X "github.com/pingcap/tiproxy/pkg/util/versioninfo.TiProxyGitBranch=HEAD" -X "github.com/pingcap/tiproxy/pkg/util/versioninfo.TiProxyGitHash=aec86817c833feb51f6f5edbde83b7710cd7dc56" -X "github.com/pingcap/tiproxy/pkg/util/versioninfo.TiProxyBuildTS=2024-05-06 13:19:50"' -tags '' -o ./bin/tiproxy ./cmd/tiproxy
go: downloading go.uber.org/atomic v1.11.0
go: downloading github.com/prometheus/client_golang v1.14.0
go: downloading go.uber.org/zap v1.26.0
go: downloading github.com/prometheus/client_model v0.3.0
go: downloading google.golang.org/grpc v1.54.0
go: downloading github.com/spf13/cobra v1.6.1
go: downloading github.com/pingcap/tidb v1.1.0-beta.0.20230103132820-3ccff46aa3bc
go: downloading go.etcd.io/etcd/client/v3 v3.5.6
go: downloading github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726
go: downloading github.com/go-mysql-org/go-mysql v1.6.0
go: downloading github.com/cenkalti/backoff/v4 v4.2.1
go: downloading github.com/prometheus/common v0.39.0
go: downloading github.com/tidwall/btree v1.5.2
go: downloading github.com/pingcap/tidb/parser v0.0.0-20230103132820-3ccff46aa3bc
go: downloading github.com/tiancaiamao/gp v0.0.0-20230126082955-4f9e4f1ed9b5
go: downloading github.com/gin-gonic/gin v1.8.1
go: downloading gopkg.in/natefinch/lumberjack.v2 v2.2.1
go: downloading github.com/bahlo/generic-list-go v0.2.0
go: downloading github.com/BurntSushi/toml v1.2.1
go: downloading github.com/klauspost/compress v1.16.6
go: downloading github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
go: downloading github.com/gin-contrib/pprof v1.4.0
go: downloading go.uber.org/ratelimit v0.2.0
go: downloading github.com/pingcap/kvproto v0.0.0-20231018065736-c0689aded40c
go: downloading github.com/pingcap/sysutil v1.0.0
go: downloading github.com/golang/protobuf v1.5.3
go: downloading github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129
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/spf13/pflag v1.0.5
go: downloading go.etcd.io/etcd/api/v3 v3.5.6
go: downloading go.etcd.io/etcd/client/pkg/v3 v3.5.6
go: downloading google.golang.org/protobuf v1.31.0
go: downloading github.com/gin-contrib/sse v0.1.0
go: downloading github.com/mattn/go-isatty v0.0.16
go: downloading golang.org/x/net v0.17.0
go: downloading github.com/ugorji/go/codec v1.2.7
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/go-playground/validator/v10 v10.10.0
go: downloading github.com/pelletier/go-toml/v2 v2.0.5
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/pingcap/errors v0.11.5-0.20221009092201-b66cddb77c32
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 golang.org/x/sys v0.13.0
go: downloading github.com/json-iterator/go v1.1.12
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/matttproud/golang_protobuf_extensions v1.0.4
go: downloading github.com/coreos/go-systemd/v22 v22.5.0
go: downloading github.com/tklauser/go-sysconf v0.3.12
go: downloading github.com/leodido/go-urn v1.2.1
go: downloading github.com/go-playground/universal-translator v0.18.0
go: downloading golang.org/x/crypto v0.14.0
go: downloading golang.org/x/text v0.13.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/go-playground/locales v0.14.0
go: downloading github.com/tklauser/numcpus v0.6.1
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/client-go/v2 v2.0.4-0.20221226080148-018c59dbd837
go: downloading github.com/gorilla/mux v1.8.0
go: downloading github.com/pingcap/failpoint v0.0.0-20220423142525-ae43b7f4e5c3
go: downloading github.com/opentracing/opentracing-go v1.2.0
go: downloading github.com/pingcap/tipb v0.0.0-20221123081521-2fb828910813
go: downloading github.com/tikv/pd/client v0.0.0-20221031025758-80f0d8ca4d07
go: downloading github.com/coocood/freecache v1.2.1
go: downloading golang.org/x/sync v0.3.0
go: downloading github.com/danjacques/gofslock v0.0.0-20191023191349-0a45f885bc37
go: downloading github.com/cockroachdb/errors v1.8.1
go: downloading github.com/ngaut/pools v0.0.0-20180318154953-b7bc8c42aac7
go: downloading github.com/twmb/murmur3 v1.1.3
go: downloading github.com/opentracing/basictracer-go v1.0.0
go: downloading github.com/golang/snappy v0.0.4
go: downloading github.com/uber/jaeger-client-go v2.22.1+incompatible
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/uber/jaeger-lib v2.4.1+incompatible
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/cockroachdb/redact v1.0.8
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/kr/pretty v0.3.0
go: downloading github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13
go: downloading github.com/stathat/consistent v1.0.0
go: downloading github.com/google/btree v1.1.2
go: downloading github.com/rogpeppe/go-internal v1.8.1
go: downloading github.com/kr/text v0.2.0
go build -gcflags '' -ldflags ' -X "github.com/pingcap/tiproxy/pkg/util/versioninfo.TiProxyVersion=v1.0.0-20-gaec8681" -X "github.com/pingcap/tiproxy/pkg/util/versioninfo.TiProxyGitBranch=HEAD" -X "github.com/pingcap/tiproxy/pkg/util/versioninfo.TiProxyGitHash=aec86817c833feb51f6f5edbde83b7710cd7dc56" -X "github.com/pingcap/tiproxy/pkg/util/versioninfo.TiProxyBuildTS=2024-05-06 13:20:53"' -tags '' -o ./bin/tiproxyctl ./cmd/tiproxyctl
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // container
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // podTemplate
[Pipeline] End of Pipeline
Finished: SUCCESS