Started by user Jenkins Admin Obtained pipelines/pingcap/tiproxy/latest/merged_integration_nodejs_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-merged_integration_nodejs_test.yaml from git https://github.com/PingCAP-QE/ci.git [Pipeline] podTemplate [Pipeline] { [Pipeline] node Created Pod: kubernetes jenkins-tidb/pingcap-tiproxy-merged-integration-nodejs-test-35-k2cdp-b-z23wq Agent pingcap-tiproxy-merged-integration-nodejs-test-35-k2cdp-b-z23wq is provisioned from template pingcap_tiproxy_merged_integration_nodejs_test_35-k2cdp-bhr0w --- apiVersion: "v1" kind: "Pod" metadata: annotations: buildUrl: "http://jenkins.apps.svc.cluster.local:8080/jenkins/job/pingcap/job/tiproxy/job/merged_integration_nodejs_test/35/" runUrl: "job/pingcap/job/tiproxy/job/merged_integration_nodejs_test/35/" labels: jenkins/jenkins-jenkins-agent: "true" jenkins/label-digest: "58d623b5d31f536e1bb42386daa7c0d9d896c491" jenkins/label: "pingcap_tiproxy_merged_integration_nodejs_test_35-k2cdp" name: "pingcap-tiproxy-merged-integration-nodejs-test-35-k2cdp-b-z23wq" namespace: "jenkins-tidb" spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: "kubernetes.io/arch" operator: "In" values: - "amd64" containers: - image: "hub.pingcap.net/ee/ci/base:v20230810-go1.21.0" name: "nodejs" resources: limits: memory: "16Gi" cpu: "6" requests: memory: "12Gi" 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-merged-integration-nodejs-test-35-k2cdp-b-z23wq" - name: "JENKINS_NAME" value: "pingcap-tiproxy-merged-integration-nodejs-test-35-k2cdp-b-z23wq" - 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: runAsUser: 0 volumes: - emptyDir: medium: "" name: "workspace-volume" Running on pingcap-tiproxy-merged-integration-nodejs-test-35-k2cdp-b-z23wq in /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_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/merged_integration_nodejs_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 > 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 Avoid second fetch Checking out Revision 03312178c534dce949face80c69812d989e55009 (origin/main) Commit message: "fix(br): use failpoint tidb-server instead (#2951)" First time build. Skipping changelog. > 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 b270b7a65b76382c424f5a34c3d8c229dd4d4880 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] container [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] timeout Timeout set to expire in 1 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Debug info) [Pipeline] sh + printenv JENKINS_HOME=/var/jenkins_home KUBERNETES_SERVICE_PORT=443 KUBERNETES_PORT=tcp://10.233.0.1:443 GIT_PREVIOUS_SUCCESSFUL_COMMIT=44f39a0346d132af7dfc72341815ee27c19fa2d9 CI=true JOB_SPEC={"type":"postsubmit","job":"pingcap/tiproxy/merged_integration_nodejs_test","buildid":"1787416736505532420","prowjobid":"f1f502ca-a174-4910-8fe0-f3a3a3ab1c58","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/compare/ab4bdeb0fc42...a34431ad9d5a"}} HOSTNAME=pingcap-tiproxy-merged-integration-nodejs-test-35-k2cdp-b-z23wq POD_LABEL=pingcap_tiproxy_merged_integration_nodejs_test_35-k2cdp RUN_CHANGES_DISPLAY_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/merged_integration_nodejs_test/35/display/redirect?page=changes GIT_COMMIT=03312178c534dce949face80c69812d989e55009 HUDSON_URL=https://do.pingcap.net/jenkins/ NODE_LABELS=pingcap-tiproxy-merged-integration-nodejs-test-35-k2cdp-b-z23wq pingcap_tiproxy_merged_integration_nodejs_test_35-k2cdp HOME=/root OLDPWD=/go BUILD_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/merged_integration_nodejs_test/35/ JENKINS_SERVER_COOKIE=durable-01197c416c4d1902e9c62d7603459b1ea3fe52956c678f485a7104fa5806bdd0 FILE_SERVER_URL=http://fileserver.pingcap.net WORKSPACE=/home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test PROW_JOB_ID=f1f502ca-a174-4910-8fe0-f3a3a3ab1c58 NODE_NAME=pingcap-tiproxy-merged-integration-nodejs-test-35-k2cdp-b-z23wq POD_CONTAINER=nodejs RUN_ARTIFACTS_DISPLAY_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/merged_integration_nodejs_test/35/display/redirect?page=artifacts EXECUTOR_NUMBER=0 GIT_BRANCH=origin/main STAGE_NAME=Debug info TERM=xterm KUBERNETES_PORT_443_TCP_ADDR=10.233.0.1 BUILD_DISPLAY_NAME=#35 RUN_TESTS_DISPLAY_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/merged_integration_nodejs_test/35/display/redirect?page=tests HUDSON_HOME=/var/jenkins_home JOB_BASE_NAME=merged_integration_nodejs_test PATH=/root/.cargo/bin:/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-17-openjdk-amd64/bin:/opt/gradle-7.4.2/bin:/opt/apache-maven-3.8.8/bin KUBERNETES_PORT_443_TCP_PORT=443 BUILD_ID=1787416736505532420 KUBERNETES_PORT_443_TCP_PROTO=tcp BUILD_TAG=jenkins-pingcap-tiproxy-merged_integration_nodejs_test-35 JENKINS_URL=https://do.pingcap.net/jenkins/ GIT_URL=https://github.com/PingCAP-QE/ci.git JOB_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/merged_integration_nodejs_test/ BUILD_NUMBER=35 GOPATH=/go GOPROXY=http://goproxy.apps.svc,https://proxy.golang.org,direct JENKINS_NODE_COOKIE=b215e183-1365-4378-bad4-ac52e7ebce43 RUN_DISPLAY_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/merged_integration_nodejs_test/35/display/redirect HUDSON_SERVER_COOKIE=83ef27fe9acccc92 JOB_DISPLAY_URL=https://do.pingcap.net/jenkins/job/pingcap/job/tiproxy/job/merged_integration_nodejs_test/display/redirect KUBERNETES_SERVICE_PORT_HTTPS=443 KUBERNETES_PORT_443_TCP=tcp://10.233.0.1:443 CLASSPATH= JOB_NAME=pingcap/tiproxy/merged_integration_nodejs_test JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 KUBERNETES_SERVICE_HOST=10.233.0.1 PWD=/home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test GIT_PREVIOUS_COMMIT=b270b7a65b76382c424f5a34c3d8c229dd4d4880 WORKSPACE_TMP=/home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test@tmp GOLANG_VERSION=1.21.0 + echo ------------------------- ------------------------- + go env GO111MODULE='' GOARCH='amd64' GOBIN='' GOCACHE='/root/.cache/go-build' GOENV='/root/.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.0' 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 -ffile-prefix-map=/tmp/go-build1996708779=/tmp/go-build -gno-record-gcc-switches' + echo ------------------------- ------------------------- + ls -l /dev/null crw-rw-rw-. 1 root root 1, 3 May 6 09:39 /dev/null + echo debug command: kubectl -n jenkins-tidb exec -ti pingcap-tiproxy-merged-integration-nodejs-test-35-k2cdp-b-z23wq bash debug command: kubectl -n jenkins-tidb exec -ti pingcap-tiproxy-merged-integration-nodejs-test-35-k2cdp-b-z23wq 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: 1348 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1232 ; COOKIE: 53338821ee4c112e (echoed) ;; QUESTION SECTION: ;github.com. IN A ;; ANSWER SECTION: github.com. 25 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 09:39:22 UTC 2024 ;; MSG SIZE rcvd: 77 [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/merged_integration_nodejs_test/tiproxy [Pipeline] { [Pipeline] cache Cache not restored (no such key found) [Pipeline] { [Pipeline] retry [Pipeline] { [Pipeline] script [Pipeline] { [Pipeline] sh git version 2.39.2 hint: Using 'master' as the name for the initial branch. This default branch name hint: is subject to change. To configure the initial branch name to use in all hint: of your new repositories, which will suppress this warning, call: hint: hint: git config --global init.defaultBranch hint: hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and hint: 'development'. The just-created branch can be renamed via this command: hint: hint: git branch -m Initialized empty Git repository in /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test/tiproxy/.git/ .git POST git-upload-pack (371 bytes) POST git-upload-pack (182 bytes) From https://github.com/pingcap/tiproxy * [new branch] main -> origin/main * [new tag] v0.1.1 -> v0.1.1 * [new tag] v0.1.2 -> v0.1.2 * [new tag] v0.1.2-alpha.1 -> v0.1.2-alpha.1 * [new tag] v0.1.2-alpha.2 -> v0.1.2-alpha.2 * [new tag] v0.2.0 -> v0.2.0 * [new tag] v1.0.0 -> v1.0.0 Note: switching to 'origin/main'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false 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) βœ… ~~~~~All done.~~~~~~ [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // retry [Pipeline] } Cache saved successfully (git/pingcap/tiproxy/rev-a34431a) 3585024 bytes in 0.47 secs (7596858 bytes/sec) [Pipeline] // cache [Pipeline] } [Pipeline] // dir [Pipeline] dir Running in /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test/tidb-test [Pipeline] { [Pipeline] cache Cache restored successfully (git/PingCAP-QE/tidb-test/rev-fc03c75573ac7e47ba43f134698085f4398110ac) 609238016 bytes in 5.50 secs (110793328 bytes/sec) [Pipeline] { [Pipeline] retry [Pipeline] { [Pipeline] script [Pipeline] { [Pipeline] echo git@github.com:PingCAP-QE/tidb-test.git [Pipeline] echo +refs/heads/master:refs/remotes/origin/master [Pipeline] checkout The recommended git tool is: NONE using credential github-sre-bot-ssh Warning: JENKINS-30600: special launcher org.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecDecorator$1@426a9b50; decorates RemoteLauncher[hudson.remoting.Channel@7e11331:JNLP4-connect connection from 10.233.109.43/10.233.109.43:45524] will be ignored (a typical symptom is the Git executable not being run inside a designated container) Fetching changes from the remote Git repository Pruning obsolete local branches Cleaning workspace > git rev-parse --resolve-git-dir /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test/tidb-test/.git # timeout=10 > git config remote.origin.url git@github.com:PingCAP-QE/tidb-test.git # timeout=10 > git rev-parse --verify HEAD # timeout=10 Resetting working tree > git reset --hard # timeout=10 > git clean -fdx # timeout=10 Fetching upstream changes from git@github.com:PingCAP-QE/tidb-test.git > git --version # timeout=10 > git --version # 'git version 2.39.2' using GIT_SSH to set credentials [INFO] Currently running in a labeled security context > /usr/bin/chcon --type=ssh_home_t /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test/tidb-test@tmp/jenkins-gitclient-ssh7352277164244803557.key > git fetch --tags --force --progress --prune -- git@github.com:PingCAP-QE/tidb-test.git +refs/heads/master:refs/remotes/origin/master # timeout=5 Checking out Revision dae424f5f68bb55818c1e169b732f8889b04a31b (origin/master) Commit message: "update alter table test result | tidb=pr/52967 (#2320)" [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // retry [Pipeline] } > git rev-parse origin/master^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f dae424f5f68bb55818c1e169b732f8889b04a31b # timeout=10 Cache saved successfully (git/PingCAP-QE/tidb-test/rev-a34431ad9d5ad96b50c03c0253347bff9355c77c) 609229312 bytes in 24.06 secs (25324362 bytes/sec) [Pipeline] // cache [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // timeout [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] dir Running in /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test/tiproxy [Pipeline] { [Pipeline] sh + [ -f bin/tiproxy ] + make go build -gcflags '' -ldflags '-X "github.com/pingcap/tiproxy/pkg/util/versioninfo.TiProxyVersion=v1.0.0-17-ga34431a" -X "github.com/pingcap/tiproxy/pkg/util/versioninfo.TiProxyGitBranch=HEAD" -X "github.com/pingcap/tiproxy/pkg/util/versioninfo.TiProxyGitHash=a34431ad9d5ad96b50c03c0253347bff9355c77c" -X "github.com/pingcap/tiproxy/pkg/util/versioninfo.TiProxyBuildTS=2024-05-06 09:40:09"' -tags '' -o ./bin/tiproxy ./cmd/tiproxy go: downloading github.com/spf13/cobra v1.6.1 go: downloading github.com/prometheus/client_golang v1.14.0 go: downloading go.etcd.io/etcd/client/v3 v3.5.6 go: downloading github.com/prometheus/common v0.39.0 go: downloading go.uber.org/atomic v1.11.0 go: downloading google.golang.org/grpc v1.54.0 go: downloading github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726 go: downloading go.uber.org/zap v1.26.0 go: downloading gopkg.in/natefinch/lumberjack.v2 v2.2.1 go: downloading github.com/tiancaiamao/gp v0.0.0-20230126082955-4f9e4f1ed9b5 go: downloading github.com/cenkalti/backoff/v4 v4.2.1 go: downloading github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 go: downloading github.com/BurntSushi/toml v1.2.1 go: downloading go.uber.org/ratelimit v0.2.0 go: downloading github.com/go-mysql-org/go-mysql v1.6.0 go: downloading github.com/prometheus/client_model v0.3.0 go: downloading github.com/pingcap/tidb v1.1.0-beta.0.20230103132820-3ccff46aa3bc go: downloading github.com/pingcap/kvproto v0.0.0-20231018065736-c0689aded40c go: downloading github.com/pingcap/tidb/parser v0.0.0-20230103132820-3ccff46aa3bc go: downloading github.com/gin-gonic/gin v1.8.1 go: downloading github.com/tidwall/btree v1.5.2 go: downloading github.com/gin-contrib/pprof v1.4.0 go: downloading github.com/bahlo/generic-list-go v0.2.0 go: downloading github.com/klauspost/compress v1.16.6 go: downloading github.com/pingcap/sysutil v1.0.0 go: downloading github.com/pingcap/log v1.1.1-0.20221116035753-734d527bc87c go: downloading github.com/shirou/gopsutil/v3 v3.23.9 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/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 github.com/pingcap/errors v0.11.5-0.20221009092201-b66cddb77c32 go: downloading github.com/siddontang/go-log v0.0.0-20180807004314-8d05993dda07 go: downloading github.com/google/uuid v1.3.1 go: downloading google.golang.org/protobuf v1.31.0 go: downloading github.com/beorn7/perks v1.0.1 go: downloading github.com/cespare/xxhash/v2 v2.2.0 go: downloading github.com/json-iterator/go v1.1.12 go: downloading github.com/prometheus/procfs v0.9.0 go: downloading github.com/gin-contrib/sse v0.1.0 go: downloading golang.org/x/net v0.17.0 go: downloading github.com/mattn/go-isatty v0.0.16 go: downloading gopkg.in/yaml.v2 v2.4.0 go: downloading github.com/pelletier/go-toml/v2 v2.0.5 go: downloading github.com/ugorji/go/codec v1.2.7 go: downloading github.com/go-playground/validator/v10 v10.10.0 go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.4 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 golang.org/x/sys v0.13.0 go: downloading go.uber.org/multierr v1.11.0 go: downloading github.com/coreos/go-systemd/v22 v22.5.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/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/tklauser/go-sysconf v0.3.12 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/gorilla/mux v1.8.0 go: downloading github.com/pingcap/failpoint v0.0.0-20220423142525-ae43b7f4e5c3 go: downloading github.com/tikv/client-go/v2 v2.0.4-0.20221226080148-018c59dbd837 go: downloading github.com/tikv/pd/client v0.0.0-20221031025758-80f0d8ca4d07 go: downloading github.com/coocood/freecache v1.2.1 go: downloading github.com/pingcap/tipb v0.0.0-20221123081521-2fb828910813 go: downloading github.com/uber/jaeger-client-go v2.22.1+incompatible go: downloading github.com/ngaut/pools v0.0.0-20180318154953-b7bc8c42aac7 go: downloading github.com/opentracing/opentracing-go v1.2.0 go: downloading github.com/cockroachdb/errors v1.8.1 go: downloading github.com/danjacques/gofslock v0.0.0-20191023191349-0a45f885bc37 go: downloading github.com/opentracing/basictracer-go v1.0.0 go: downloading golang.org/x/sync v0.3.0 go: downloading github.com/twmb/murmur3 v1.1.3 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/uber/jaeger-lib v2.4.1+incompatible go: downloading github.com/pkg/errors v0.9.1 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/cockroachdb/redact v1.0.8 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-17-ga34431a" -X "github.com/pingcap/tiproxy/pkg/util/versioninfo.TiProxyGitBranch=HEAD" -X "github.com/pingcap/tiproxy/pkg/util/versioninfo.TiProxyGitHash=a34431ad9d5ad96b50c03c0253347bff9355c77c" -X "github.com/pingcap/tiproxy/pkg/util/versioninfo.TiProxyBuildTS=2024-05-06 09:40:56"' -tags '' -o ./bin/tiproxyctl ./cmd/tiproxyctl [Pipeline] } [Pipeline] // dir [Pipeline] dir Running in /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test/tidb-test [Pipeline] { [Pipeline] cache Cache not restored (no such key found) [Pipeline] { [Pipeline] sh + touch ws-jenkins-pingcap-tiproxy-merged_integration_nodejs_test-35 [Pipeline] sh + chmod +x download_binary.sh + ./download_binary.sh --tidb=master --pd=master --tikv=master TIDB = master TIKV = master PD = master TIFLASH = >>> start download tidb tidb master sha1 is 17d3f7fd4599c86fed367db1051156abc0b3cd5b TIDB: http://fileserver.pingcap.net/download/builds/pingcap/tidb/17d3f7fd4599c86fed367db1051156abc0b3cd5b/centos7/tidb-server.tar.gz download tidb-server.tar.gz from http://fileserver.pingcap.net/download/builds/pingcap/tidb/17d3f7fd4599c86fed367db1051156abc0b3cd5b/centos7/tidb-server.tar.gz >>> start download tikv tikv master sha1 is 88099c95a3c0c13a827c0795c3d45070264665e4 TIKV: http://fileserver.pingcap.net/download/builds/pingcap/tikv/88099c95a3c0c13a827c0795c3d45070264665e4/centos7/tikv-server.tar.gz download tikv-server.tar.gz from http://fileserver.pingcap.net/download/builds/pingcap/tikv/88099c95a3c0c13a827c0795c3d45070264665e4/centos7/tikv-server.tar.gz >>> start download pd pd master sha1 is f83febabecb98b95b098fd31a3664178f8a6b437 PD: http://fileserver.pingcap.net/download/builds/pingcap/pd/f83febabecb98b95b098fd31a3664178f8a6b437/centos7/pd-server.tar.gz download pd-server.tar.gz from http://fileserver.pingcap.net/download/builds/pingcap/pd/f83febabecb98b95b098fd31a3664178f8a6b437/centos7/pd-server.tar.gz total 731M drwxr-xr-x. 2 root root 4.0K May 6 09:41 . drwxr-xr-x. 49 root root 4.0K May 6 09:41 .. -rwxr-xr-x. 1 1000 1000 106M May 6 08:49 pd-server -rwxr-xr-x. 1 1000 1000 208M May 6 09:18 tidb-server -rwxr-xr-x. 1 1000 1000 418M May 6 07:33 tikv-server + cp ../tiproxy/bin/tiproxy ./bin/ + ls -alh bin/ total 787M drwxr-xr-x. 2 root root 4.0K May 6 09:41 . drwxr-xr-x. 49 root root 4.0K May 6 09:41 .. -rwxr-xr-x. 1 1000 1000 106M May 6 08:49 pd-server -rwxr-xr-x. 1 1000 1000 208M May 6 09:18 tidb-server -rwxr-xr-x. 1 1000 1000 418M May 6 07:33 tikv-server -rwxr-xr-x. 1 root root 56M May 6 09:41 tiproxy + ./bin/tidb-server -V Release Version: v8.2.0-alpha-83-g17d3f7fd45 Edition: Community Git Commit Hash: 17d3f7fd4599c86fed367db1051156abc0b3cd5b Git Branch: master UTC Build Time: 2024-05-06 09:18:07 GoVersion: go1.21.6 Race Enabled: false Check Table Before Drop: false Store: unistore + ./bin/pd-server -V Release Version: v8.2.0-alpha-15-gf83febabe Edition: Community Git Commit Hash: f83febabecb98b95b098fd31a3664178f8a6b437 Git Branch: master UTC Build Time: 2024-05-06 08:48:58 + ./bin/tikv-server -V TiKV Release Version: 8.2.0-alpha Edition: Community Git Commit Hash: 88099c95a3c0c13a827c0795c3d45070264665e4 Git Commit Branch: master UTC Build Time: 2024-05-06 06:37:19 Rust Version: rustc 1.77.0-nightly (89e2160c4 2023-12-27) Enable Features: memory-engine pprof-fp jemalloc mem-profiling portable sse test-engine-kv-rocksdb test-engine-raft-raft-engine trace-async-tasks openssl-vendored Profile: dist_release + ./bin/tiproxy --version ./bin/tiproxy version v1.0.0-17-ga34431a, commit a34431ad9d5ad96b50c03c0253347bff9355c77c [Pipeline] } Cache saved successfully (ws/jenkins-pingcap-tiproxy-merged_integration_nodejs_test-35) 1433478656 bytes in 34.42 secs (41649840 bytes/sec) [Pipeline] // cache [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Tests) [Pipeline] parallel [Pipeline] { (Branch: Matrix - TEST_CMDS = 'make deploy-prismatest ARGS="-x"') [Pipeline] { (Branch: Matrix - TEST_CMDS = 'make deploy-typeormtest ARGS="-x"') [Pipeline] { (Branch: Matrix - TEST_CMDS = 'make deploy-sequelizetest ARGS="-x"') [Pipeline] stage [Pipeline] { (Matrix - TEST_CMDS = 'make deploy-prismatest ARGS="-x"') [Pipeline] stage [Pipeline] { (Matrix - TEST_CMDS = 'make deploy-typeormtest ARGS="-x"') [Pipeline] stage [Pipeline] { (Matrix - TEST_CMDS = 'make deploy-sequelizetest ARGS="-x"') [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] readTrusted [Pipeline] readTrusted [Pipeline] readTrusted Obtained pipelines/pingcap/tiproxy/latest/pod-merged_integration_nodejs_test.yaml from git https://github.com/PingCAP-QE/ci.git [Pipeline] podTemplate [Pipeline] { [Pipeline] node Created Pod: kubernetes jenkins-tidb/pingcap-tiproxy-merged-integration-nodejs-test-35-k4nbq-5-gnz0q Obtained pipelines/pingcap/tiproxy/latest/pod-merged_integration_nodejs_test.yaml from git https://github.com/PingCAP-QE/ci.git Obtained pipelines/pingcap/tiproxy/latest/pod-merged_integration_nodejs_test.yaml from git https://github.com/PingCAP-QE/ci.git [Pipeline] podTemplate [Pipeline] { [Pipeline] podTemplate [Pipeline] { [Pipeline] node [Pipeline] node Created Pod: kubernetes jenkins-tidb/pingcap-tiproxy-merged-integration-nodejs-test-35-6h0f4-z-c169f Created Pod: kubernetes jenkins-tidb/pingcap-tiproxy-merged-integration-nodejs-test-35-lpvhz-g-b4ntq Agent pingcap-tiproxy-merged-integration-nodejs-test-35-k4nbq-5-gnz0q is provisioned from template pingcap_tiproxy_merged_integration_nodejs_test_35-k4nbq-5whzv --- apiVersion: "v1" kind: "Pod" metadata: annotations: buildUrl: "http://jenkins.apps.svc.cluster.local:8080/jenkins/job/pingcap/job/tiproxy/job/merged_integration_nodejs_test/35/" runUrl: "job/pingcap/job/tiproxy/job/merged_integration_nodejs_test/35/" labels: jenkins/jenkins-jenkins-agent: "true" jenkins/label-digest: "4e9912bf46814fc447c6a1ca53272ad159a75854" jenkins/label: "pingcap_tiproxy_merged_integration_nodejs_test_35-k4nbq" name: "pingcap-tiproxy-merged-integration-nodejs-test-35-k4nbq-5-gnz0q" namespace: "jenkins-tidb" spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: "kubernetes.io/arch" operator: "In" values: - "amd64" containers: - image: "hub.pingcap.net/ee/ci/base:v20230810-go1.21.0" name: "nodejs" resources: limits: memory: "16Gi" cpu: "6" requests: memory: "12Gi" 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-merged-integration-nodejs-test-35-k4nbq-5-gnz0q" - name: "JENKINS_NAME" value: "pingcap-tiproxy-merged-integration-nodejs-test-35-k4nbq-5-gnz0q" - 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: runAsUser: 0 volumes: - emptyDir: medium: "" name: "workspace-volume" Running on pingcap-tiproxy-merged-integration-nodejs-test-35-k4nbq-5-gnz0q in /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test [Pipeline] { [Pipeline] checkout The recommended git tool is: git No credentials specified Warning: JENKINS-30600: special launcher org.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecDecorator$1@1afdf3a8; decorates RemoteLauncher[hudson.remoting.Channel@707f61be:JNLP4-connect connection from 10.233.81.154/10.233.81.154:54874] will be ignored (a typical symptom is the Git executable not being run inside a designated container) 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/merged_integration_nodejs_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 Agent pingcap-tiproxy-merged-integration-nodejs-test-35-lpvhz-g-b4ntq is provisioned from template pingcap_tiproxy_merged_integration_nodejs_test_35-lpvhz-g75kr --- apiVersion: "v1" kind: "Pod" metadata: annotations: buildUrl: "http://jenkins.apps.svc.cluster.local:8080/jenkins/job/pingcap/job/tiproxy/job/merged_integration_nodejs_test/35/" runUrl: "job/pingcap/job/tiproxy/job/merged_integration_nodejs_test/35/" labels: jenkins/jenkins-jenkins-agent: "true" jenkins/label-digest: "5a2d28829381520745507b76b52deda598c6e29f" jenkins/label: "pingcap_tiproxy_merged_integration_nodejs_test_35-lpvhz" name: "pingcap-tiproxy-merged-integration-nodejs-test-35-lpvhz-g-b4ntq" namespace: "jenkins-tidb" spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: "kubernetes.io/arch" operator: "In" values: - "amd64" containers: - image: "hub.pingcap.net/ee/ci/base:v20230810-go1.21.0" name: "nodejs" resources: limits: memory: "16Gi" cpu: "6" requests: memory: "12Gi" 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-merged-integration-nodejs-test-35-lpvhz-g-b4ntq" - name: "JENKINS_NAME" value: "pingcap-tiproxy-merged-integration-nodejs-test-35-lpvhz-g-b4ntq" - 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: runAsUser: 0 volumes: - emptyDir: medium: "" name: "workspace-volume" Running on pingcap-tiproxy-merged-integration-nodejs-test-35-lpvhz-g-b4ntq in /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test [Pipeline] { [Pipeline] checkout The recommended git tool is: git No credentials specified Warning: JENKINS-30600: special launcher org.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecDecorator$1@6c59f91b; decorates RemoteLauncher[hudson.remoting.Channel@79ae8b62:JNLP4-connect connection from 10.233.109.168/10.233.109.168:43446] will be ignored (a typical symptom is the Git executable not being run inside a designated container) 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/merged_integration_nodejs_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 > 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 Avoid second fetch Checking out Revision 03312178c534dce949face80c69812d989e55009 (origin/main) Commit message: "fix(br): use failpoint tidb-server instead (#2951)" [Pipeline] withEnv [Pipeline] { [Pipeline] container [Pipeline] { [Pipeline] stage [Pipeline] { (Test) [Pipeline] timeout Timeout set to expire in 40 min [Pipeline] { [Pipeline] dir Running in /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test/tidb-test [Pipeline] { [Pipeline] cache > git rev-parse origin/main^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 03312178c534dce949face80c69812d989e55009 # timeout=10 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 Still waiting to schedule task β€˜pingcap-tiproxy-merged-integration-nodejs-test-35-6h0f4-z-c169f’ is offline Cache restored successfully (ws/jenkins-pingcap-tiproxy-merged_integration_nodejs_test-35) 1433478656 bytes in 8.64 secs (165943759 bytes/sec) [Pipeline] { [Pipeline] sh [Pipeline] withEnv [Pipeline] { [Pipeline] container [Pipeline] { [Pipeline] stage [Pipeline] { (Test) [Pipeline] timeout Timeout set to expire in 40 min [Pipeline] { [Pipeline] dir Running in /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test/tidb-test [Pipeline] { [Pipeline] cache + make deploy-prismatest ARGS=-x ./deploy-run.sh -x prisma-4.16.x start pd started (PID: 33) Cache restored successfully (ws/jenkins-pingcap-tiproxy-merged_integration_nodejs_test-35) 1433478656 bytes in 6.17 secs (232362456 bytes/sec) [Pipeline] { [Pipeline] sh + make deploy-typeormtest ARGS=-x ./deploy-run.sh -x typeorm-0.3.17 start pd started (PID: 33) tikv started (PID: 79) tikv started (PID: 80) Agent pingcap-tiproxy-merged-integration-nodejs-test-35-6h0f4-z-c169f is provisioned from template pingcap_tiproxy_merged_integration_nodejs_test_35-6h0f4-z3bms --- apiVersion: "v1" kind: "Pod" metadata: annotations: buildUrl: "http://jenkins.apps.svc.cluster.local:8080/jenkins/job/pingcap/job/tiproxy/job/merged_integration_nodejs_test/35/" runUrl: "job/pingcap/job/tiproxy/job/merged_integration_nodejs_test/35/" labels: jenkins/jenkins-jenkins-agent: "true" jenkins/label-digest: "8eb5ea9743350e05d23b0d0415860ea09101cbc8" jenkins/label: "pingcap_tiproxy_merged_integration_nodejs_test_35-6h0f4" name: "pingcap-tiproxy-merged-integration-nodejs-test-35-6h0f4-z-c169f" namespace: "jenkins-tidb" spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: "kubernetes.io/arch" operator: "In" values: - "amd64" containers: - image: "hub.pingcap.net/ee/ci/base:v20230810-go1.21.0" name: "nodejs" resources: limits: memory: "16Gi" cpu: "6" requests: memory: "12Gi" 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-merged-integration-nodejs-test-35-6h0f4-z-c169f" - name: "JENKINS_NAME" value: "pingcap-tiproxy-merged-integration-nodejs-test-35-6h0f4-z-c169f" - 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: runAsUser: 0 volumes: - emptyDir: medium: "" name: "workspace-volume" Running on pingcap-tiproxy-merged-integration-nodejs-test-35-6h0f4-z-c169f in /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test [Pipeline] { [Pipeline] checkout The recommended git tool is: git tidb started (PID: 249) tiproxy started (PID: 250) No credentials specified Warning: JENKINS-30600: special launcher org.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecDecorator$1@6b906bf8; decorates RemoteLauncher[hudson.remoting.Channel@2560bfd3:JNLP4-connect connection from 10.233.92.52/10.233.92.52:52142] will be ignored (a typical symptom is the Git executable not being run inside a designated container) 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/merged_integration_nodejs_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)" [Pipeline] withEnv [Pipeline] { [Pipeline] container [Pipeline] { Scope: all 14 workspace projects Lockfile is up to date, resolution step is skipped Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +1648 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [Pipeline] stage [Pipeline] { (Test) > 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 [Pipeline] timeout Timeout set to expire in 40 min [Pipeline] { [Pipeline] dir Running in /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test/tidb-test [Pipeline] { [Pipeline] cache Progress: resolved 1648, reused 0, downloaded 5, added 0 Packages are hard linked from the content-addressable store to the virtual store. Content-addressable store is at: /home/jenkins/agent/.pnpm-store/v3 Virtual store is at: node_modules/.pnpm Progress: resolved 1648, reused 0, downloaded 40, added 39 Progress: resolved 1648, reused 0, downloaded 102, added 101 Progress: resolved 1648, reused 0, downloaded 148, added 145 tidb started (PID: 247) tiproxy started (PID: 248) Progress: resolved 1648, reused 0, downloaded 219, added 230 Progress: resolved 1648, reused 0, downloaded 249, added 263 Progress: resolved 1648, reused 0, downloaded 279, added 293 Progress: resolved 1648, reused 0, downloaded 330, added 343 Progress: resolved 1648, reused 0, downloaded 419, added 437 Progress: resolved 1648, reused 0, downloaded 486, added 504 Progress: resolved 1648, reused 0, downloaded 588, added 606 Progress: resolved 1648, reused 0, downloaded 693, added 712 Progress: resolved 1648, reused 0, downloaded 744, added 763 npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated Progress: resolved 1648, reused 0, downloaded 789, added 808 Progress: resolved 1648, reused 0, downloaded 900, added 919 npm WARN deprecated istanbul@0.4.5: This module is no longer maintained, try this instead: npm WARN deprecated npm i nyc npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives. Progress: resolved 1648, reused 0, downloaded 1008, added 1025 npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies Progress: resolved 1648, reused 0, downloaded 1071, added 1089 Progress: resolved 1648, reused 0, downloaded 1166, added 1185 npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs Progress: resolved 1648, reused 0, downloaded 1243, added 1262 npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated Progress: resolved 1648, reused 0, downloaded 1261, added 1278 Progress: resolved 1648, reused 0, downloaded 1274, added 1293 Progress: resolved 1648, reused 0, downloaded 1291, added 1310 Progress: resolved 1648, reused 0, downloaded 1310, added 1329 Progress: resolved 1648, reused 0, downloaded 1359, added 1377 Progress: resolved 1648, reused 0, downloaded 1401, added 1420 Progress: resolved 1648, reused 0, downloaded 1420, added 1439 Progress: resolved 1648, reused 0, downloaded 1479, added 1498 Progress: resolved 1648, reused 0, downloaded 1544, added 1560 Progress: resolved 1648, reused 0, downloaded 1618, added 1638 Progress: resolved 1648, reused 0, downloaded 1625, added 1645 Progress: resolved 1648, reused 0, downloaded 1627, added 1647 Progress: resolved 1648, reused 0, downloaded 1628, added 1648, done .../node_modules/@prisma/engines postinstall$ node scripts/postinstall.js .../core-js@3.26.0/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}" .../node_modules/spawn-sync postinstall$ node postinstall .../sqlite3@5.1.2/node_modules/sqlite3 install$ node-pre-gyp install --fallback-to-build .../.pnpm/yarn@1.22.19/node_modules/yarn preinstall$ :; (node ./preinstall.js > /dev/null 2>&1 || true) .../core-js@3.26.0/node_modules/core-js postinstall: Done .../node_modules/spawn-sync postinstall: Done .../.pnpm/yarn@1.22.19/node_modules/yarn preinstall: Done .../sqlite3@5.1.2/node_modules/sqlite3 install: node-pre-gyp info it worked if it ends with ok .../sqlite3@5.1.2/node_modules/sqlite3 install: node-pre-gyp info using node-pre-gyp@1.0.10 .../sqlite3@5.1.2/node_modules/sqlite3 install: node-pre-gyp info using node@18.13.0 | linux | x64 .../sqlite3@5.1.2/node_modules/sqlite3 install: node-pre-gyp info check checked for "/home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test/tidb-test/prisma_test/prisma-4.16.x/node_modules/.pnpm/sqlite3@5.1.2/node_modules/sqlite3/lib/binding/napi-v6-linux-glibc-x64/node_sqlite3.node" (not found) .../sqlite3@5.1.2/node_modules/sqlite3 install: node-pre-gyp http GET https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.2/napi-v6-linux-glibc-x64.tar.gz .../node_modules/@prisma/engines postinstall: Done added 1144 packages, and audited 1145 packages in 25s 111 packages are looking for funding run `npm fund` for details 26 vulnerabilities (1 low, 9 moderate, 15 high, 1 critical) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. > typeorm@0.3.17 test > rimraf ./build && tsc && mocha --file ./build/compiled/test/utils/test-setup.js --bail --recursive --timeout 90000 ./build/compiled/test .../sqlite3@5.1.2/node_modules/sqlite3 install: node-pre-gyp info install unpacking napi-v6-linux-glibc-x64/node_sqlite3.node .../sqlite3@5.1.2/node_modules/sqlite3 install: node-pre-gyp info extracted file count: 1 .../sqlite3@5.1.2/node_modules/sqlite3 install: node-pre-gyp info ok .../sqlite3@5.1.2/node_modules/sqlite3 install: [sqlite3] Success: "/home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test/tidb-test/prisma_test/prisma-4.16.x/node_modules/.pnpm/sqlite3@5.1.2/node_modules/sqlite3/lib/binding/napi-v6-linux-glibc-x64/node_sqlite3.node" is installed via remote .../sqlite3@5.1.2/node_modules/sqlite3 install: Done .../node_modules/@swc/core postinstall$ node postinstall.js .../node_modules/@swc/core postinstall$ node postinstall.js .../esbuild@0.15.13/node_modules/esbuild postinstall$ node install.js .../esbuild@0.18.2/node_modules/esbuild postinstall$ node install.js .../prisma@5.4.2/node_modules/prisma preinstall$ node scripts/preinstall-entry.js .../node_modules/@swc/core postinstall: Done .../node_modules/@swc/core postinstall: Done .../esbuild@0.15.13/node_modules/esbuild postinstall: Done .../esbuild@0.18.2/node_modules/esbuild postinstall: Done .../prisma@5.4.2/node_modules/prisma preinstall: Done .../node_modules/yo postinstall$ yodoctor .../node_modules/yo postinstall: Yeoman Doctor .../node_modules/yo postinstall: Running sanity checks on your system .../node_modules/yo postinstall: βœ” No .bowerrc file in home directory .../node_modules/yo postinstall: βœ” Global configuration file is valid .../node_modules/yo postinstall: βœ” NODE_PATH matches the npm root .../node_modules/yo postinstall: βœ” No .yo-rc.json file in home directory .../node_modules/yo postinstall: βœ” Node.js version .../node_modules/yo postinstall: βœ” npm version Cache restored successfully (ws/jenkins-pingcap-tiproxy-merged_integration_nodejs_test-35) 1433478656 bytes in 14.83 secs (96655900 bytes/sec) [Pipeline] { [Pipeline] sh .../node_modules/yo postinstall: βœ– yo version .../node_modules/yo postinstall: Your yo version is outdated. .../node_modules/yo postinstall: Upgrade to the latest version by running: .../node_modules/yo postinstall: npm install -g yo@latest .../node_modules/yo postinstall: Found potential issues on your machine :( .../node_modules/yo postinstall: Done devDependencies: + @microsoft/api-extractor 7.35.3 + @sindresorhus/slugify 1.1.2 + @slack/webhook 6.1.0 + @types/benchmark 2.1.2 + @types/fs-extra 9.0.13 + @types/graphviz 0.0.35 + @types/node 18.16.16 + @types/node-fetch 2.6.4 + @types/redis 2.8.32 + @types/resolve 1.20.2 + @typescript-eslint/eslint-plugin 5.59.11 + @typescript-eslint/parser 5.59.11 + arg 5.0.2 + batching-toposort 1.2.0 + buffer 6.0.3 + chokidar 3.5.3 + esbuild 0.15.13 + esbuild-register 3.3.3 + eslint 8.43.0 + eslint-config-prettier 8.8.0 + eslint-plugin-eslint-comments 3.2.0 + eslint-plugin-import 2.27.5 + eslint-plugin-jest 27.2.1 + eslint-plugin-prettier 4.2.1 + eslint-plugin-simple-import-sort 10.0.0 + eventemitter3 5.0.1 + execa 5.1.1 + fs-extra 11.1.1 + globby 11.1.0 + graphviz-mit 0.0.9 + husky 8.0.3 + is-ci 3.0.1 + jest-junit 16.0.0 + kleur 4.1.5 + lint-staged 13.2.2 + node-fetch 2.6.11 + p-map 4.0.0 + p-reduce 2.1.0 + p-retry 4.6.2 + path-browserify 1.0.1 + prettier 2.8.8 + redis 3.1.2 + redis-lock 0.1.4 + regenerator-runtime 0.13.11 + resolve 1.22.2 + safe-buffer 5.2.1 + semver 7.5.1 + spdx-exceptions 2.3.0 + spdx-license-ids 3.0.13 + staged-git-files 1.3.0 + ts-node 10.9.1 + ts-toolbelt 9.6.0 + tty-browserify 0.0.1 + typescript 4.9.5 + util 0.12.5 + zx 7.2.2 . preinstall$ node ./scripts/only-allow-pnpm.js pnpm . preinstall: Done . prepare$ is-ci || husky install . prepare: Done packages/engines postinstall$ node scripts/postinstall.js packages/engines postinstall: Done packages/client postinstall$ node scripts/postinstall.js packages/client postinstall: prisma:warn We could not find your Prisma schema at `prisma/schema.prisma`. packages/client postinstall: If you have a Prisma schema file in a custom path, you will need to run packages/client postinstall: `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client. packages/client postinstall: If you do not have a Prisma schema file yet, you can ignore this message. packages/client postinstall: Done packages/cli preinstall$ node scripts/preinstall-entry.js packages/cli preinstall: Done Done in 47.5s > dev-env@ build /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test/tidb-test/prisma_test/prisma-4.16.x > ts-node scripts/setup.ts --build + make deploy-sequelizetest ARGS=-x ./deploy-run.sh -x sequelize orm v6 test start pd started (PID: 33) ./. git config --global user.email "prismabots@gmail.com" ./. git config --global user.name "prisma-bot" Building packages ./. pnpm -r build Scope: 13 of 14 workspace projects packages/debug build$ node -r esbuild-register helpers/build.ts packages/debug build: Done packages/generator-helper build$ node -r esbuild-register helpers/build.ts packages/get-platform build$ node -r esbuild-register helpers/build.ts packages/generator-helper build: Done packages/get-platform build: Done packages/fetch-engine build$ node -r esbuild-register helpers/build.ts packages/fetch-engine build: Done packages/engines build$ node -r esbuild-register helpers/build.ts tikv started (PID: 82) packages/engines build: Analysis will use the bundled TypeScript version 5.0.4 packages/engines build: Writing package typings: /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test/tidb-test/prisma_test/prisma-4.16.x/packages/engines/dist/index.d.ts packages/engines build: Done packages/internals build$ node -r esbuild-register helpers/build.ts benchmark > bulk-save > case1 βœ” testing bulk save of 10.000 objects benchmark > bulk-save > case2 βœ” testing bulk save of 10000 objects benchmark > bulk-save > case-querybuilder βœ” testing bulk save of 10000 objects benchmark > bulk-sql-build βœ” testing bulk create of 10.000 sql with joins (884ms) benchmark > QueryBuilder > wide join βœ” testing query builder with join to 10 relations with 10 columns each column kinds > create date column βœ” create date column should automatically be set by a database βœ” create date column can also be manually set by user βœ” create date column should not be updated automatically on every change (1019ms) βœ” create date column should set a custom date when specified column kinds > geometry column βœ” geometry column with SRID defined should be saved without error for valid WKT input βœ” geometry column with SRID defined should be updated without error for valid WKT input βœ” geometry column with no SRID should be saved without error for valid WKT input βœ” geometry column with no SRID should be updated without error for valid WKT input column kinds > update date column βœ” update date column should automatically be set by a database βœ” update column should not update if no changes were detected βœ” update date column can also be manually set by user tidb started (PID: 241) tiproxy started (PID: 242) βœ” update date column should be updated automatically on every change (2017ms) βœ” update date column should set a custom date when specified column kinds > version column βœ” version column should automatically be set by a database βœ” version column should not update version if no changes were detected βœ” version column can also be manually set by user βœ” version column should be updated automatically on every change (1014ms) βœ” version column should set a custom value when specified xfail it βœ” chai βœ” standard mocha βœ” async chai base entity βœ” test if DataSource calls `useDataSource` of the provided entities βœ” test if DataSource calls `useDataSource` of the provided entities in the entities directory custom cache provider loading test data to db ... packages/internals build: Done packages/instrumentation build$ node -r esbuild-register helpers/build.ts packages/migrate build$ node -r esbuild-register helpers/build.ts βœ” should be used instead of built-ins βœ” should cache results properly (1028ms) packages/instrumentation build: Done packages/migrate build: Done packages/client build$ node -r esbuild-register helpers/build.ts packages/integration-tests build$ node -r esbuild-register helpers/build.ts βœ” should cache results with pagination enabled properly (1029ms) packages/integration-tests build: Done βœ” should cache results with custom id and duration supplied (2029ms) βœ” should cache results with pagination enabled properly and custom id and loaded relations βœ” should cache results with custom id and duration supplied (1031ms) cascades > should insert by cascades from both sides (#57) βœ” should insert by cascades from owner side columns > comments βœ” should persist comments of different types to the database columns > embedded columns packages/client build: Analysis will use the bundled TypeScript version 5.0.4 βœ” should insert / update / remove entity with embedded correctly βœ” should properly generate column names columns > getters and setters βœ” should not update columns marked with readonly property columns > no-selection functionality βœ” should not select columns marked with select: false option βœ” should not select columns with QueryBuilder marked with select: false option βœ” should select columns with select: false even columns were implicitly selected columns > readonly functionality βœ” should not update columns marked with readonly property columns > update and insert control βœ” should respect column update and insert properties columns > value-transformer functionality βœ” should marshal data using the provided value-transformer βœ” should apply three transformers in the right order βœ” should apply all the transformers βœ” should apply no transformer βœ” should marshal data using a complex value-transformer commands - migration create - should write regular empty migration file when no option is passed - should write Javascript empty migration file when option is passed - should use custom timestamp when option is passed commands - migration generate - writes regular migration file when no option is passed - writes Javascript printed file when option is passed - writes migration file with custom timestamp when option is passed Connection before connection is established βœ” connection.isConnected should be false - entity manager and reactive entity manager should not be accessible βœ” should not be able to close βœ” should not be able to sync a schema - should not be able to use repositories βœ” should be able to connect establishing connection - should throw DriverOptionNotSetError when extra.socketPath and host is missing after connection is established successfully packages/client build: Writing package typings: /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test/tidb-test/prisma_test/prisma-4.16.x/packages/client/runtime/index.d.ts βœ” connection.isConnected should be true βœ” entity manager and reactive entity manager should be accessible βœ” should not be able to connect again βœ” should be able to close a connection working with repositories after connection is established successfully βœ” should be able to get simple entity repository βœ” should be able to get tree entity repository generate a schema when connection.synchronize is called βœ” database should be empty after schema is synced with dropDatabase flag (76ms) log a schema when connection.logSyncSchema is called βœ” should return sql log properly after connection is closed successfully βœ” should not be able to close already closed connection βœ” connection.isConnected should be false skip schema generation when synchronize option is set to false βœ” database should be empty after schema sync different names of the same content of the schema βœ” should not interfere with each other can change postgres default schema name βœ” schema name can be set ConnectionManager create βœ” should create a mysql connection when mysql driver is specified get βœ” should give connection with a requested name βœ” should throw an error if connection with the given name was not found create connection options βœ” should not drop the database if dropSchema was not specified (54ms) βœ” should drop the database if dropSchema was set to true (mysql) (170ms) ConnectionOptionsReader βœ” properly loads config with entities specified βœ” properly loads sqlite in-memory/path config βœ” properly loads config with specified file path βœ” properly loads asynchronous config with specified file path βœ” properly loads config with specified file path from esm in js βœ” properly loads config from .env file βœ” properly loads config from ormconfig.env file βœ” properly loads config ormconfig.env when given multiple choices cube-postgres βœ” should create correct schema with Postgres' cube type βœ” should persist cube correctly βœ” should update cube correctly βœ” should re-save cube correctly βœ” should persist cube of arity 0 correctly βœ” should be able to order cube by euclidean distance βœ” should persist cube array correctly custom repository βœ” withRepository must work properly in transactions database schema > column collation > cockroach βœ” should correctly create column with collation option database schema > column collation > mssql βœ” should correctly create column with collation option database schema > column collation > mysql - should correctly create column with collation option database schema > column collation > postgres βœ” should correctly create column with collation option database schema > column collation > sqlite - should correctly create column with collation option database schema > column length > mssql βœ” all types should create with correct size βœ” all types should update their size βœ” all relevant types should update their size to max database schema > column length > mysql βœ” all types should be created with correct length βœ” all types should update their length (251ms) database schema > column length > postgres βœ” all types should create with correct size βœ” all types should update their size database schema > column length > sap βœ” all types should create with correct size βœ” all types should update their size database schema > column length > sqlite βœ” all types should create with correct size βœ” all types should update their size database schema > column types > cockroachdb βœ” all types should work correctly - persist and hydrate βœ” all types should work correctly - persist and hydrate when options are specified on columns βœ” all types should work correctly - persist and hydrate when types are not specified on columns database schema > column types > cockroachdb-enum βœ” should create table with ENUM column and save data to it βœ” should create ENUM column and revert creation βœ” should drop ENUM column and revert drop βœ” should create table with ENUM column and revert creation βœ” should drop table with ENUM column and revert drop βœ” should change non-enum column in to ENUM and revert change βœ” should change ENUM column in to non-enum and revert change βœ” should change ENUM array column in to non-array and revert change βœ” should change ENUM value and revert change βœ” should change `enumName` and revert change βœ” should not create new type if same `enumName` is used more than once βœ” should change both ENUM value and ENUM name and revert change βœ” should rename ENUM when column renamed and revert rename βœ” should rename ENUM when table renamed and revert rename database schema > column types > mssql βœ” all types should work correctly - persist and hydrate βœ” all types should work correctly - persist and hydrate when options are specified on columns βœ” all types should work correctly - persist and hydrate when types are not specified on columns database schema > column types > mysql βœ” all types should work correctly - persist and hydrate βœ” all types should work correctly - persist and hydrate when options are specified on columns βœ” all types should work correctly - persist and hydrate when types are not specified on columns database schema > column types > oracle βœ” all types should work correctly - persist and hydrate βœ” all types should work correctly - persist and hydrate when options are specified on columns βœ” all types should work correctly - persist and hydrate when types are not specified on columns database schema > column types > postgres βœ” all types should work correctly - persist and hydrate βœ” all types should work correctly - persist and hydrate when options are specified on columns βœ” all types should work correctly - persist and hydrate when types are not specified on columns database schema > column types > postgres-enum βœ” should create table with ENUM column and save data to it βœ” should create ENUM column and revert creation βœ” should drop ENUM column and revert drop βœ” should create table with ENUM column and revert creation βœ” should drop table with ENUM column and revert drop βœ” should change non-enum column in to ENUM and revert change βœ” should change ENUM column in to non-enum and revert change βœ” should change ENUM array column in to non-array and revert change βœ” should change ENUM value and revert change βœ” should change `enumName` and revert change βœ” should not create new type if same `enumName` is used more than once βœ” should change both ENUM value and ENUM name and revert change βœ” should rename ENUM when column renamed and revert rename βœ” should rename ENUM when table renamed and revert rename database schema > column types > sap βœ” all types should work correctly - persist and hydrate βœ” all types should work correctly - persist and hydrate when options are specified on columns βœ” all types should work correctly - persist and hydrate when types are not specified on columns database schema > column types > spanner βœ” all types should work correctly - persist and hydrate βœ” all types should work correctly - persist and hydrate when options are specified on columns βœ” all types should work correctly - persist and hydrate when types are not specified on columns database schema > column types > sqlite βœ” all types should work correctly - persist and hydrate βœ” all types should work correctly - persist and hydrate when types are not specified on columns database schema > column width βœ” all types should be created with correct width packages/client build: Analysis will use the bundled TypeScript version 5.0.4 βœ” should update data type display width (141ms) database schema > custom constraint names > foreign key βœ” should set custom constraint names packages/client build: Writing package typings: /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test/tidb-test/prisma_test/prisma-4.16.x/packages/client/runtime/index-browser.d.ts packages/client build: Done packages/cli build$ node -r esbuild-register helpers/build.ts packages/react-prisma build$ node -r esbuild-register helpers/build.ts βœ” should load constraints with custom names - should not change constraint names when table renamed - should not change constraint names when column renamed database schema > custom constraint names > index βœ” should set custom constraint names βœ” should load constraints with custom names βœ” should not change constraint names when table renamed (53ms) βœ” should not change constraint names when column renamed (45ms) database schema > custom constraint names > primary key βœ” should set custom constraint names βœ” should load constraints with custom names βœ” should not change constraint names when table renamed βœ” should not change constraint names when column renamed database schema > custom constraint names > unique βœ” should set custom constraint names βœ” should load constraints with custom names βœ” should not change constraint names when table renamed (64ms) βœ” should not change constraint names when column renamed (38ms) database schema > enums βœ” should correctly use default values βœ” should correctly save and retrieve βœ” should not generate queries when no model changes database schema > enum arrays βœ” should correctly create default values βœ” should correctly save and retrieve database schema > generated columns > cockroachdb βœ” should not generate queries when no model changes βœ” should create table with generated columns βœ” should add generated column and revert add βœ” should drop generated column and revert drop βœ” should change generated column and revert change βœ” should remove data from 'typeorm_metadata' when table dropped database schema > generated columns > mssql βœ” should not generate queries when no model changes βœ” should create table with generated columns βœ” should add generated column and revert add βœ” should drop generated column and revert drop βœ” should change generated column and revert change βœ” should remove data from 'typeorm_metadata' when table dropped database schema > generated columns > mysql βœ” should not generate queries when no model changes βœ” should create table with generated columns - should add generated column and revert add - should drop generated column and revert drop - should change generated column and revert change βœ” should remove data from 'typeorm_metadata' when table dropped (107ms) database schema > generated columns > oracle βœ” should not generate queries when no model changes βœ” should create table with generated columns βœ” should add generated column and revert add βœ” should drop generated column and revert drop βœ” should change generated column and revert change βœ” should remove data from 'typeorm_metadata' when table dropped database schema > generated columns > postgres βœ” should not generate queries when no model changes βœ” should create table with generated columns βœ” should add generated column and revert add βœ” should drop generated column and revert drop βœ” should change generated column and revert change βœ” should remove data from 'typeorm_metadata' when table dropped database schema > generated columns > spanner βœ” should not generate queries when no model changes βœ” should create table with generated columns βœ” should add generated column and revert add βœ” should drop generated column and revert drop βœ” should change generated column and revert change βœ” should remove data from 'typeorm_metadata' when table dropped database schema > generated columns > sqlite βœ” should not generate queries when no model changes βœ” should create table with generated columns βœ” should add generated column and revert add βœ” should drop generated column and revert drop βœ” should change generated column and revert change βœ” should remove data from 'typeorm_metadata' when table dropped database schema > indices > reading index from entity and updating database βœ” should create a non unique index with 2 columns packages/cli build: Done packages/react-prisma build: Done > @prisma/integration-tests@0.0.0 test:tidb /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test/tidb-test/prisma_test/prisma-4.16.x/packages/integration-tests > jest integration.tidb --maxWorkers=1 --silent βœ” should update the index to be unique (1442ms) βœ” should update the index swapping the 2 columns (1390ms) database schema > mssql-parameters βœ” should correctly insert/update/delete entities on SqlServer driver database-schema > rowid-column βœ” should create `rowid` generated column sequences > creating a sequence and marking the column as generated create table and check that primary key column is marked as generated βœ” should check that the primary key column is generated automatically database schema > simple-enums βœ” should correctly use default values βœ” should correctly save and retrieve database schema > simple enum arrays βœ” should correctly create default values βœ” should correctly save and retrieve decorators > embedded basic functionality βœ” should persist and load entities with embeddeds properly βœ” should be used with prop query builder > relation-count-decorator-many-to-many > many-to-many βœ” should load relation count on owner side (58ms) βœ” should load relation count on owner side with limitation (42ms) βœ” should load relation count on owner side with additional conditions (64ms) βœ” should load relation count on both sides of relation (52ms) βœ” should load relation count on inverse side (52ms) βœ” should load relation count on inverse side with limitation (50ms) βœ” should load relation count on inverse side with additional conditions (56ms) decorators > relation-count-decorator > one-to-many βœ” should load relation count (62ms) decorators > relation-id-decorator > many-to-many βœ” should load ids when RelationId decorator used on owner side βœ” should load ids when RelationId decorator used on owner side with additional condition βœ” should load ids when RelationId decorator used on owner side without inverse side βœ” should load ids when RelationId decorator used on owner side without inverse side and with additional condition βœ” should load ids when RelationId decorator used on inverse side βœ” should load ids when RelationId decorator used on inverse side with additional condition βœ” should load ids when RelationId decorator used on nested relation (62ms) βœ” should not load ids of nested relations when RelationId decorator used on inherit relation and parent relation was not found βœ” should load ids when RelationId decorator used on nested relation with additional conditions (73ms) decorators > relation-id-decorator > many-to-one PASS src/__tests__/integration/tidb/introspection.test.ts (17.393 s) βœ” should load ids when RelationId decorator used decorators > relation-id > one-to-many βœ” should load id when RelationId decorator used (106ms) βœ” should load id when RelationId decorator used with additional condition (38ms) decorators > relation-id > one-to-one βœ” should load ids when loadRelationIdAndMap used on owner side βœ” should load id when loadRelationIdAndMap used on inverse side deferrable uq constraints should be check at the end of transaction βœ” use initially deferred deferrable uq constraints βœ” use initially immediated deferrable uq constraints deferrable fk constraints should be check at the end of transaction (#2191) βœ” use initially deferred deferrable fk constraints βœ” use initially immediated deferrable fk constraints MongoDriver connection string βœ” should create a connection string for replica sets (153ms) βœ” should create a connection string for non replica sets escape sqlite query parameters βœ” should transform boolean parameters with value `true` into `1` βœ” should transform boolean parameters with value `false` into `0` βœ” should transform boolean nativeParameters with value `true` into `1` βœ” should transform boolean nativeParameters with value `false` into 0 option nativeBinding for better-sqlite3 βœ” should use a the path set in nativeBindings to the node file driver > convert raw results to entity βœ” should return null value in entity property when record column is null βœ” should return true in entity property when record column is true βœ” should return false in entity property when record column is false DriverUtils parse mongo url βœ” should return a mongo url with a replica set βœ” should return a mongo url without a replica set postgres specific options βœ” should set application_name embedded > basic functionality βœ” should insert, load, update and remove entities with embeddeds properly other issues > entity listeners must work in embeddeds as well βœ” getters and setters should work correctly embedded > embedded-many-to-many-case1 owner side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToMany relation (44ms) inverse side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToMany relation (56ms) embedded > embedded-many-to-many-case2 owner side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToMany relation (58ms) inverse side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToMany relation (53ms) embedded > embedded-many-to-many-case3 owner side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToMany relation with multiple primary keys (one PK in each embed) (60ms) inverse side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToMany relation with multiple primary keys (one PK in each embed) (62ms) embedded > embedded-many-to-many-case4 owner side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToMany relation with multiple primary keys (multiple keys in related entity) (41ms) inverse side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToMany relation with multiple primary keys (multiple keys in related entity) (44ms) embedded > embedded-many-to-many-case5 owner side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToMany relation with multiple primary keys (multiple keys in both sides) (44ms) inverse side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToMany relation with multiple primary keys (multiple keys in both sides) (61ms) embedded > embedded-many-to-one-case1 owner side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToOne relation (43ms) inverse side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToOne relation embedded > embedded-many-to-one-case2 owner side PASS src/__tests__/integration/tidb/runtime.test.ts (15.944 s) Test Suites: 2 passed, 2 total Tests: 130 passed, 130 total Snapshots: 130 passed, 130 total Time: 33.822 s prisma-4.16.x end [Pipeline] } Cache not saved (ws/jenkins-pingcap-tiproxy-merged_integration_nodejs_test-35 already exists) [Pipeline] // cache [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // timeout [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // container [Pipeline] } βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToOne relation (44ms) inverse side [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // podTemplate [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToOne relation embedded > embedded-many-to-one-case3 owner side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToOne relation with multiple primary keys (one PK in each embed) inverse side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToOne relation with multiple primary keys (one PK in each embed) (47ms) embedded > embedded-many-to-one-case4 owner side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToOne relation with multiple primary keys (multiple keys in related entity) inverse side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToOne relation with multiple primary keys (multiple keys in related entity) embedded > embedded-many-to-one-case5 owner side npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'eslint-plugin-jsdoc@37.9.7', npm WARN EBADENGINE required: { node: '^12 || ^14 || ^16 || ^17' }, npm WARN EBADENGINE current: { node: 'v18.13.0', npm: '9.2.0' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@es-joy/jsdoccomment@0.20.1', npm WARN EBADENGINE required: { node: '^12 || ^14 || ^16 || ^17' }, npm WARN EBADENGINE current: { node: 'v18.13.0', npm: '9.2.0' } npm WARN EBADENGINE } βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToOne relation with multiple primary keys (multiple keys in both sides) (74ms) inverse side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having ManyToOne relation with multiple primary keys (multiple keys in both sides) embedded > embedded-one-to-one owner side βœ” should insert, load, update and remove entities with embeddeds when embedded entity having OneToOne relation (53ms) inverse side - should insert, load, update and remove entities with embeddeds when embedded entity having OneToOne relation embedded > embedded-with-special-columns βœ” should insert, load, update and remove entities with embeddeds when embeds contains special columns (e.g. CreateDateColumn, UpdateDateColumn, DeleteDateColumn, VersionColumn (1031ms) embedded > multiple-primary-column βœ” should insert, load, update and remove entities with embeddeds when primary column defined in main and in embedded entities embedded > multiple-primary-columns-with-nested-embed βœ” should insert, load, update and remove entities with embeddeds when primary column defined in main and in embedded entities other issues > entity listeners must work in optional embeddeds as well βœ” getters and setters should work correctly embedded > outer-primary-column βœ” should insert, load, update and remove entities with embeddeds when primary column defined only in embedded entity embedded > prefix functionality βœ” should insert, load, update and remove entities with embeddeds properly entity-listeners βœ” beforeUpdate entity-metadata > create without entitySkipConstructor βœ” should call the constructor when creating an object βœ” should set the default property values βœ” should call the constructor when retrieving an object with entitySkipConstructor βœ” should call the constructor when creating an object βœ” should set the default property values when creating an object βœ” should not call the constructor when retrieving an object entity-metadata > property-map βœ” should create correct property map object entity-metadata-validator βœ” should throw error if relation count decorator used with ManyToOne or OneToOne relations entity-metadata-validator > initialized relations βœ” should throw error if relation with initialized array was found on many-to-many relation βœ” should throw error if relation with initialized array was found on one-to-many relation βœ” should not throw error if relation with initialized array was not found βœ” should not throw error if relation with initialized array was found, but persistence for this relation was disabled entity-model βœ” should save successfully and use static methods successfully npm WARN deprecated abab@1.0.4: Use your platform's native atob() and btoa() methods instead npm WARN deprecated vm2@3.9.19: The library contains critical security issues and should not be used for production! The maintenance of the project has been discontinued. Consider migrating your code to isolated-vm. βœ” should reload given entity successfully (376ms) npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated adal-node@0.1.28: This package is no longer supported. Please migrate to @azure/msal-node. npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs βœ” should reload exactly the same entity (541ms) upsert npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. npm WARN deprecated string-similarity@4.0.4: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm WARN deprecated better-eval@1.3.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. βœ” should upsert successfully entity schemas > basic functionality βœ” should perform basic operations with entity using repository βœ” should perform basic operations with entity using manager entity-schema > checks entity-schema > checks > postgres, cockroachdb, oracle, mssql βœ” should create a check constraints entity-schema > checks > spanner βœ” should create a check constraints entity-schema > columns > mysql βœ” should create columns with different options entity schema > custom constraint names > foreign key npm WARN deprecated loupe@2.3.6: Please upgrade to 2.3.7 which fixes GHSA-4q6p-r6v2-jvc5 βœ” should set custom constraint names βœ” should load constraints with custom names - should not change constraint names when table renamed - should not change constraint names when column renamed entity schema > custom constraint names > index βœ” should set custom constraint names βœ” should load constraints with custom names βœ” should not change constraint names when table renamed (232ms) βœ” should not change constraint names when column renamed (44ms) database schema > custom constraint names > primary key βœ” should set custom constraint names βœ” should load constraints with custom names βœ” should not change constraint names when table renamed βœ” should not change constraint names when column renamed database schema > custom constraint names > unique npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated @sinonjs/fake-timers@10.2.0: Use version 10.1.0. Version 10.2.0 has potential breaking issues βœ” should set custom constraint names βœ” should load constraints with custom names npm WARN deprecated sinon@12.0.1: 16.1.1 βœ” should not change constraint names when table renamed (56ms) βœ” should not change constraint names when column renamed (48ms) entity-schema > embedded - class-instance βœ” should create an table βœ” should not create table with embedded βœ” should create embedded column name with prefix βœ” should create index for embedded entity-schema > embedded - class-instance βœ” should save entity with embedded βœ” should contains instance of target class embedded entity entity-schema > embedded - plain-object βœ” should save entity with embedded βœ” should contains instance of plain object for embedded entity entity-schema > exclusions βœ” should create an exclusion constraint entity-schema > indices > basic βœ” should create a non unique index with 2 columns npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) βœ” should update the index to be unique (1447ms) βœ” should update the index swaping the 2 columns (1447ms) entity-schema > indices > mysql - should correctly create SPATIAL and FULLTEXT indices entity schemas > target option βœ” should create instance of the target βœ” should find instances of the target entity-schema > uniques βœ” should create an unique constraint with 2 columns entity subscriber > query data βœ” passes query data to subscriber βœ” cleans up the data after the save completes entity subscriber > transaction flow βœ” transactionStart βœ” transactionCommit βœ” transactionRollback errors > prototype tree βœ” prototype tree makes sense find options > find operators > ArrayContainedBy βœ” should find entries in regular arrays βœ” should find entries in enum arrays find options > find operators > ArrayContains βœ” should find entries in regular arrays βœ” should find entries in enum arrays find options > find operators > ArrayOverlap βœ” should find entries in regular arrays βœ” should find entries in enum arrays find options > order βœ” order by id DESC (68ms) βœ” order by title (44ms) > sequelize@0.0.0-development prepare > npm run build && husky install > sequelize@0.0.0-development build > node ./build.js Compiling sequelize... βœ” where two criteria (61ms) .git can't be found (see https://git.io/Jc3F9) npm ERR! code 1 npm ERR! path /home/jenkins/agent/workspace/pingcap/tiproxy/merged_integration_nodejs_test/tidb-test/sequelize_test/sequelize_v6_test npm ERR! command failed npm ERR! command sh -c npm run build && husky install npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2024-05-06T09_44_30_655Z-debug-0.log > sequelize@0.0.0-development build > node ./build.js Compiling sequelize... βœ” order by relation (63ms) > sequelize@0.0.0-development teaser > node test/teaser.js ########################### # Running tests for mysql # ########################### > sequelize@0.0.0-development test-integration > yarn mocha --timeout 60000 --exit "test/integration/**/*.test.[tj]s" yarn run v1.22.19 $ mocha -r ./test/registerEsbuild --timeout 60000 --exit 'test/integration/**/*.test.[tj]s' βœ” order by relation with where relation applied (62ms) [MYSQL] Alias βœ“ should uppercase the first letter in alias getter, but not in eager loading (200ms) βœ“ shouldnt touch the passed alias (151ms) βœ“ should allow me to pass my own plural and singular forms to hasMany (151ms) βœ“ should allow me to define plural and singular forms on the model (117ms) [MYSQL] BelongsToMany getAssociations - supports transactions βœ“ gets all associated objects with all fields βœ“ gets all associated objects when no options are passed βœ” order by nested relations (62ms) βœ“ only get objects that fulfill the options βœ” order by complex nested relations (141ms) βœ“ supports a where not in βœ” order by column in embed (59ms) βœ” order by relation in embed (65ms) find options > relations βœ“ supports a where not in on the primary key βœ“ only gets objects that fulfill options with a formatted value βœ” basic relation (62ms) βœ“ get associated objects with an eager load βœ“ get associated objects with an eager load with conditions but not required (73ms) βœ“ should support schemas (398ms) βœ“ supports custom primary keys and foreign keys (394ms) βœ” complex relation #1 (48ms) βœ“ supports primary key attributes with different field and attribute names (2118ms) βœ” complex relation #2 (63ms) βœ“ supports non primary key attributes for joins (sourceKey only) (3997ms) βœ” relation in embed (61ms) find options > select βœ” select id (46ms) βœ“ supports non primary key attributes for joins (targetKey only) (3449ms) βœ” select title (62ms) βœ“ supports non primary key attributes for joins (sourceKey and targetKey) (3393ms) βœ” select title and text (44ms) βœ” select column in embed (47ms) find options > where βœ” where id (60ms) βœ” where title (63ms) βœ“ supports non primary key attributes for joins (custom through model) (7125ms) βœ” where two criteria (46ms) βœ“ supports non primary key attributes for joins for getting associations (sourceKey/targetKey) (3442ms) βœ” where two criteria without match (57ms) βœ” where relation (68ms) βœ“ supports non primary key attributes for joins (custom foreignKey) (8691ms) βœ” where column and relation (55ms) βœ” where nested relations (48ms) βœ” where complex nested relations (47ms) βœ” where or + optional relations (62ms) βœ” where column in embed (49ms) βœ“ supports non primary key attributes for joins (custom foreignKey, custom through model) (12815ms) βœ“ supports primary key attributes with different field names where parent include is required (477ms) hasAssociations - supports transactions βœ“ answers false if only some labels have been assigned βœ“ answers false if only some labels have been assigned when passing a primary key instead of an object βœ” where relation in embed (49ms) βœ“ answers true if all label have been assigned βœ“ answers true if all label have been assigned when passing a primary key instead of an object βœ“ answers true for labels that have been assigned multitple times (535ms) βœ“ answers true for labels that have been assigned multitple times when passing a primary key instead of an object (451ms) βœ” where complex with or + and (67ms) hasAssociations with binary key βœ“ answers true for labels that have been assigned βœ“ answer false for labels that have not been assigned countAssociations βœ“ should count all associations βœ“ should count filtered associations βœ“ should count scoped associations βœ“ should count scoped through associations setAssociations βœ“ clears associations when passing null to the set-method (228ms) βœ” where relations with operators (66ms) βœ” should not apply inner join if all conditions return undefined (48ms) βœ“ should be able to set twice with custom primary keys (5704ms) βœ” should apply inner join if true is applied (59ms) find options > where βœ” should skip undefined properties βœ” should skip null properties find options > opaque-types-over-primitives βœ” should work in select βœ” should work in where βœ” should work in order by indices > basic unique index test unique index βœ” should work without errors indices > conditional index βœ” should correctly create conditional indices with WHERE condition βœ” should correctly drop conditional indices and revert drop indices > embeds index test embeddeds index βœ” should work without errors indices > fulltext index - should correctly create fulltext indices - with default parser - with ngram parser jsonb type βœ” should make correct schema with Postgres' jsonb type βœ” should persist jsonb correctly βœ” should persist jsonb string correctly βœ” should persist jsonb array correctly βœ” should create updates when changing object βœ” should not create updates when resorting object βœ” should not create new migrations when everything is equivalent json > defaults βœ” should insert default values properly ltree-postgres βœ” should create correct schema with Postgres' ltree type βœ” should persist ltree correctly βœ” should update ltree correctly βœ” should re-save ltree correctly βœ” should persist ltree correctly with trailing '.' βœ” should persist ltree correctly when containing spaces βœ” should be able to query ltree correctly metadata-builder > ColumnMetadata βœ” getValue βœ” getValueMap metadata builder > MetadataArgsUtils βœ” getInheritanceTree βœ” filterByTargetClasses migrations > generate command βœ” can recognize model changes βœ” does not generate when no model changes (274ms) migrations > show command βœ” can recognise pending migrations βœ” can recognise no pending migrations mongodb > array columns βœ” should insert / update array columns correctly βœ” should retrieve arrays from the column metadata mongodb > embedded columns βœ” should insert / update / remove entity with embedded correctly βœ” should store results in correct camelCase format βœ” should transform results to correct boolean value βœ” should transform entity with nested embedded columns correctly mongodb > embedded columns listeners βœ” should work listeners in entity embeddeds correctly βœ” should not work listeners in entity embeddeds if property is optional βœ” should work listeners in entity array embeddeds correctly mongodb > embeddeds indices βœ” should insert entity with embeddeds indices correctly mongodb > indices βœ” should insert entity with indices correctly mongodb > MongoRepository βœ” connection should return mongo repository when requested βœ” entity manager should return mongo repository when requested βœ” should be able to use entity cursor which will return instances of entity classes βœ” should be able to use entity cursor which will return instances of entity classes βœ” should be able to use findByIds with both ObjectId and strings βœ” should be able to save and update mongo entities βœ” should ignore non-column properties with DeletedDataColumn βœ” with $or query βœ” filter delete data findOne filtered data properly βœ” findOne() βœ” findOneBy() mongodb > object id columns βœ” should persist ObjectIdColumn property as _id to DB βœ” should map _id to ObjectIdColumn property and remove BD _id property βœ” should save and load properly if objectId property has name _id βœ” should not persist entity ObjectIdColumn property in DB on update by save mongodb > basic repository actions βœ” create should create instance of same entity βœ” create should be able to fill data from the given object βœ” merge should merge all given partial objects into given source entity βœ” merge should merge all given recursive partial objects into given source entity βœ” target should be valid βœ” should persist entity successfully and after persistence have generated object id βœ” hasId should return true if id really has an id βœ” unsupported methods should throw exception βœ” should return persisted objects using find* methods βœ” should sort entities in a query βœ” clear should remove all persisted entities βœ” remove should remove given entity βœ” clear should remove all persisted entities βœ” preload should pre-load given object mongodb > timestampable columns βœ” should persist timestampable columns multi-database > basic-functionality filepathToName() βœ” produces deterministic, unique, and valid table names for relative paths; leaves absolute paths unchanged (darwin) βœ” produces deterministic, unique, and valid table names for relative paths; leaves absolute paths unchanged (win32) multiple databases βœ” should correctly attach and create database files βœ” should prefix tableName when custom database used in Entity decorator βœ” should not affect tableName when using default main database βœ” should create foreign keys for relations within the same database multi-schema-and-database > custom-junction-database βœ” should correctly create tables when custom table schema used multi-schema-and-database > custom-junction-schema βœ” should correctly create tables when custom table schema used multi-schema-and-database > basic-functionality custom-table-schema βœ” should set the table database / schema βœ” should correctly get the table primary keys when custom table schema used βœ” should correctly create tables when custom table schema used βœ” should correctly create tables when custom table schema used in Entity decorator βœ” should correctly work with cross-schema queries βœ” should correctly work with QueryBuilder custom-table-schema-and-database βœ” should set the table database / schema βœ” should correctly get the table primary keys when custom table schema used βœ” should correctly create tables when custom database and custom schema used in Entity decorator βœ” should correctly work with cross-schema and cross-database queries in QueryBuilder custom-database βœ” should correctly create tables when custom database used in Entity decorator LegacyOracleNamingStrategy > column shortening βœ” should truncate column names to the limit βœ” should change column names to hashes within the limit LegacyOracleNamingStrategy > create table using this naming strategy βœ” should create the table LegacyOracleNamingStrategy > create table using default naming strategy βœ” should not create the table and fail due to ORA-00972 persistence > basic functionality βœ” should save an entity βœ” should remove an entity βœ” should throw an error when not an object is passed to a save method βœ” should throw an error when not an object is passed to a remove method βœ” should throw an exception if object literal is given instead of constructed entity because it cannot determine what to save βœ“ joins an association with custom primary keys (195ms) βœ” should be able to save and remove entities of different types persistence > bulk-insert-remove-optimization βœ“ supports passing the primary key instead of an object (592ms) βœ” should group multiple insert and remove queries persistence > cascades > example 1 βœ” should insert everything by cascades properly persistence > cascades > example 2 βœ“ using scope to set associations (320ms) βœ” should insert everything by cascades properly persistence > cascades > remove - should remove everything by cascades properly persistence > cascades > remove - should soft-remove everything by cascades properly persistence > cascade operations with custom name cascade update βœ“ updating association via set associations with scope (277ms) βœ“ should catch EmptyResultError when rejectOnEmpty is set (205ms) createAssociations βœ“ creates a new associated object (216ms) - supports transactions βœ“ supports setting through table attributes (206ms) βœ” should remove relation persistence > entity updation βœ“ supports using the field parameter (196ms) βœ” should update generated auto-increment id after saving βœ” should update generated uuid after saving addAssociations βœ“ supports both single instance and array (201ms) βœ” should update default values after saving βœ” should update special columns after saving βœ” should update even when multiple primary keys are used βœ” should update even with embeddeds persistence > insert > update-relation-columns-after-insertion - supports transactions βœ“ supports transactions when updating a through model (232ms) βœ“ supports passing the primary key instead of an object (206ms) βœ” should work perfectly persistence > many-to-many βœ” add exist element to exist object with empty many-to-many relation and save it and it should contain a new category βœ” remove one element from many-to-many relation should remove from the database as well (42ms) βœ“ should not pass indexes to the join table (6726ms) βœ” remove all elements from many-to-many relation should remove from the database as well (38ms) βœ” remove all elements (set to null) from many-to-many relation should remove from the database as well (47ms) βœ“ should catch EmptyResultError when rejectOnEmpty is set (1422ms) βœ“ should returns array of intermediate table (217ms) addMultipleAssociations βœ“ supports both single instance and array (216ms) βœ” remove all elements from many-to-many relation if parent entity is removed persistence > many-to-one bi-directional relation βœ” should save a category with a post attached βœ” should save a category and a new post by cascades βœ“ adds associations without removing the current ones (2670ms) βœ” should update exist post by cascades when category is saved through model validations βœ“ runs on add βœ” should NOT remove exist post by cascades when category is saved without a post (post is set to undefined) βœ“ runs on set βœ“ runs on create optimizations using bulk create, destroy and update βœ“ uses one insert into statement βœ” should unset exist post when its set to null βœ” should set category's post to NULL when post is removed from the database (database ON DELETE) βœ“ uses one delete from statement βœ” should work when relation id is directly set into relation (without related object) persistence > many-to-one uni-directional relation join table creation βœ“ should work with non integer primary keys (532ms) βœ” should save a category with a post attached βœ” should save a category and a new post by cascades βœ“ makes join table non-paranoid by default βœ” should update exist post by cascades when category is saved βœ” should NOT remove exist post by cascades when category is saved without a post (post is set to undefined) βœ“ should allow creation of a paranoid join table foreign keys βœ“ should correctly generate underscored keys βœ“ should infer otherKey from paired BTM relationship with a through string defined βœ“ should infer otherKey from paired BTM relationship with a through model defined foreign key with fields specified βœ” should unset exist post when its set to null βœ“ should correctly get associations even after a child instance is deleted (306ms) βœ” should set category's post to NULL when post is removed from the database (database ON DELETE) βœ” should work when relation id is directly set into relation (without related object) persistence > multi primary keys insert βœ“ should correctly get associations when doubly linked (4254ms) βœ“ should be able to handle nested includes properly (424ms) βœ” should insert entity when there are multi column primary keys persistence > multi primary keys on both sides insert primary key handling for join table βœ“ removes the primary key if it was added by sequelize βœ“ keeps the primary key if it was added by the user without sync βœ“ removes all associations through paranoid βœ“ gets only non-deleted records by default βœ“ returns both deleted and non-deleted records with paranoid=false βœ” should insert entity when there are multi column primary keys persistence > null and default behaviour βœ” should insert value if it is set βœ” should insert default when post.title is undefined βœ“ hasAssociation also respects paranoid option βœ” should insert NULL when post.title is null fetching from join table βœ” should update nothing when post.title is undefined βœ” should update to null when post.title is null persistence > one-to-many βœ“ should contain the data from the join table on .UserProjects a DAO βœ” should add exist element to exist object with empty one-to-many relation and save it (39ms) βœ“ should be able to alias the default name of the join table βœ“ should be able to limit the join table attributes returned inserting in join table add βœ” should add exist element to new object with empty one-to-many relation and save it βœ“ should insert data provided on the object into the join table βœ“ should insert data provided as a second argument into the join table βœ” should remove exist element from one-to-many relation and save it βœ” should remove all elements from one-to-many relation and save it βœ” set relation to null (elements exist there) from one-to-many relation and save it (41ms) persistence > one-to-one set the relation with proper item βœ” should have an access token doesn't allow the same relation to be used twice βœ” should reject the saving attempt (73ms) persistence > orphanage > delete when a Post is removed from a Category βœ” should retain a Post on the Category βœ” should delete the orphaned Post from the database βœ“ should be able to add twice (second call result in UPDATE call) without any attributes (and timestamps off) on the through model (10505ms) βœ” should retain foreign keys on remaining Posts persistence > orphanage > disable when a User is updated without all settings being loaded... βœ” should not delete setting with orphanedRowAction=disabed βœ” should not orphane any Settings persistence > partial persist βœ” should persist partial entities without data loss (41ms) persistence > persistence options > chunks βœ” should save objects in chunks persistence > persistence options > listeners βœ” save listeners should work by default βœ” save listeners should be disabled if save option is specified βœ” remove listeners should work by default βœ” remove listeners should be disabled if remove option is specified βœ” soft-remove listeners should work by default βœ” soft-remove listeners should be disabled if remove option is specified persistence > persistence options > transaction βœ” should disable transaction when option is specified βœ” should disable transaction when the drivers transactionSupport setting equals `none` persistence > order of persistence execution operations should throw exception when non-resolvable circular relations found βœ” should throw CircularRelationsError should persist all entities in correct order - persistence > remove-topological-order βœ“ should be able to add twice (second call result in UPDATE call) with custom primary keys and without any attributes (and timestamps off) on the through model (818ms) βœ” should remove depend properties in a proper order query builder > brackets βœ” should put parentheses in the SQL βœ” should put brackets correctly into WHERE expression query builder > cache βœ“ should be able to create an instance along with its many-to-many association which has an extra column in the junction table (811ms) set βœ“ should be able to combine properties on the associated objects, and default values βœ” should cache results properly (1051ms) βœ“ should be able to set twice (second call result in UPDATE calls) without any attributes (and timestamps off) on the through model (707ms) βœ” should cache results with pagination enabled properly (1030ms) query with through.where βœ“ should support query the through model removing from the join table βœ“ should remove a single entry without any attributes (and timestamps off) on the through model (228ms) βœ“ should remove multiple entries without any attributes (and timestamps off) on the through model (217ms) belongsTo and hasMany at once source belongs to target βœ” should cache results with custom id and duration supplied (2031ms) βœ” should cache results with custom id and duration supplied (1027ms) query builder > comment βœ” should scrub end comment pattern from string βœ” should not allow an empty comment βœ” should allow a comment with just whitespaces βœ” should allow a multi-line comment βœ” should include comment in select βœ” should include comment in update βœ” should include comment in insert βœ” should include comment in delete query builder > composite primary βœ” should find entity by another entity with a composite key query builder > count βœ” Count query should of empty table should be 0 βœ“ correctly uses bId in A βœ” Count query should count database values target belongs to source βœ” Count query should handle ambiguous values βœ“ correctly uses bId in A βœ” counting joined query should count database values βœ” counting joined queries should handle ambiguous values query builder > cte > materialized alias βœ“ creates the join table when through is a string (205ms) βœ” should allow MATERIALIZED hint βœ” should allow NOT MATERIALIZED hint βœ” should omit hint if materialized option is not set query builder > cte > recursive βœ” should work with simple recursive query query builder > cte > simple βœ” show allow select from CTE βœ” should allow join with CTE βœ” should allow to use INSERT with RETURNING clause in CTE βœ” should allow string for CTE query builder > delete βœ” should perform deletion correctly βœ” should be able to delete entities by embed criteria βœ” should return correct delete result βœ” should throw error when unknown property in where criteria query builder > distinct on βœ” should perform distinct on category authors βœ” should perform distinct on post authors and moderators combination βœ” should perform distinct on post and category authors query builder > enabling transaction βœ” should execute query in a transaction query builder > entity updation βœ” should update entity model after insertion if updateEntity is set to true βœ” should not update entity model after insertion if updateEntity is set to false βœ” should not override already set properties βœ” should update entity model after save βœ“ creates the join table when through is a model (223ms) βœ“ correctly identifies its counterpart when through is a string βœ“ correctly identifies its counterpart when through is a model multiple hasMany project has owners and users and owners and users have projects βœ“ correctly sets user and owner βœ” should update special entity properties after entity updation if updateEntity is set to true βœ” should not update special entity properties after entity updation if updateEntity is set to false query builder > exist βœ” Exists query of empty table should be false Foreign key constraints βœ” Exists query of non empty table should be true query builder > insert βœ“ can cascade deletes both ways by default (241ms) βœ” should perform insertion correctly βœ“ can restrict deletes both ways (206ms) βœ” should perform bulk insertion correctly βœ” should be able to use sql functions βœ” should be able to insert entities with different properties set even inside embeds query builder > insertion > on conflict βœ” should perform insertion correctly using onConflict βœ” should support alias in insert βœ” should perform insertion correctly using orIgnore βœ” should perform insertion correctly using orUpdate βœ” should perform insertion on partial index using orUpdate βœ” should perform insertion using partial index and skipping update on no change βœ” should throw error if using indexPredicate amd an unsupported driver query builder > joins leftJoinAndSelect βœ“ can cascade and restrict deletes (2856ms) βœ” should load data for all relation types (63ms) βœ” should load data when additional condition used (39ms) βœ“ should be possible to remove all constraints (232ms) βœ“ create custom unique identifier (328ms) βœ” should load data when join tables does not have direct relation innerJoinAndSelect Association options βœ“ should throw an error if foreignKey and as result in a name clash allows the user to provide an attribute definition object as foreignKey βœ“ works when taking a column directly from the object thisAssociations βœ“ should work with this reference (145ms) βœ“ should work with custom this reference (225ms) βœ“ should setup correct foreign keys Eager loading βœ“ should load with an alias (198ms) βœ” should load only exist data for all relation types βœ” should load data when additional condition used βœ” should not return any result when related data does not exist leftJoinAndMap βœ“ should load all (266ms) [MYSQL] BelongsTo Model.associations βœ“ should store all associations when associating to the same table multiple times get multiple βœ“ should fetch associations for multiple instances (163ms) getAssociation βœ” should load and map selected data when entity used as join argument (45ms) βœ“ supports transactions (3418ms) βœ“ should be able to handle a where object that's a first class citizen. (161ms) βœ” should load and map selected data when table name used as join argument (41ms) βœ“ supports schemas (163ms) βœ“ supports schemas when defining custom foreign key attribute #9029 (179ms) βœ” should load and map selected data when query builder used as join argument setAssociation βœ“ supports transactions (1933ms) βœ” should load and map selected data when data will given from same entity but with different conditions βœ” should load and map selected data when data will given from same property but with different conditions (72ms) innerJoinAndMap βœ“ can set the association with declared primary keys... (444ms) βœ“ clears the association if null is passed (159ms) βœ“ should throw a ForeignKeyConstraintError if the associated record does not exist (671ms) βœ” should load and map selected data when entity used as join argument (49ms) βœ” should load and map selected data when table name used as join argument (39ms) βœ“ supports passing the primary key instead of an object (148ms) βœ“ should support logging (164ms) βœ“ should not clobber atributes (163ms) βœ“ should set the foreign key value without saving when using save: false (433ms) βœ“ supports setting same association twice (177ms) createAssociation βœ“ creates an associated model instance (180ms) βœ“ supports transactions (163ms) βœ” should load and map selected data when query builder used as join argument foreign key βœ“ should setup underscored field with foreign keys when using underscored βœ“ should use model name when using camelcase βœ“ should support specifying the field of a foreign key (152ms) βœ“ should set foreignKey on foreign table (312ms) foreign key constraints βœ“ are enabled by default (175ms) βœ“ sets to NO ACTION if allowNull: false (138ms) βœ“ should be possible to disable them (123ms) βœ“ can cascade deletes (142ms) βœ” should load and map selected data when data will given from same entity but with different conditions (73ms) βœ” should load and map selected data when data will given from same property but with different conditions (57ms) βœ” should not return any result when related data does not exist query builder > locking 1) "after each" hook for "can cascade deletes" 130 passing (5m) 4 pending 1 failing 1) "after each" hook for "can cascade deletes": Error: Could not clear database after this test in less than 10000ms. This test crashed the DB, and testing cannot continue. Aborting. Full test name: [MYSQL] BelongsTo foreign key constraints can cascade deletes at Context. (test/integration/support.js:58:11) error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. sequelize orm v6 test end [Pipeline] } Cache not saved (ws/jenkins-pingcap-tiproxy-merged_integration_nodejs_test-35 already exists) [Pipeline] // cache [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // timeout [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node βœ” should not attach pessimistic read lock statement on query if locking is not used [Pipeline] } [Pipeline] // podTemplate [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } βœ” should throw error if pessimistic lock used without transaction βœ” should not throw error if pessimistic lock used with transaction βœ” should throw error if for no key update lock used without transaction βœ” should not throw error if for no key update lock used with transaction βœ” should throw error if for key share lock used without transaction βœ” should not throw error if for key share lock used with transaction βœ” should throw error if pessimistic_partial_write lock used without transaction βœ” should not throw error if pessimistic_partial_write lock used with transaction βœ” should throw error if pessimistic_write_or_fail lock used without transaction βœ” should not throw error if pessimistic_write_or_fail lock used with transaction - should attach pessimistic read lock statement on query if locking enabled βœ” should attach dirty read lock statement on query if locking enabled βœ” should not attach pessimistic write lock statement on query if locking is not used βœ” should attach pessimistic write lock statement on query if locking enabled βœ” should not attach for no key update lock statement on query if locking is not used βœ” should attach for no key update lock statement on query if locking enabled βœ” should not attach for key share lock statement on query if locking is not used βœ” should attach for key share lock statement on query if locking enabled βœ” should not attach pessimistic_partial_write lock statement on query if locking is not used - should attach pessimistic_partial_write lock statement on query if locking enabled βœ” should not attach pessimistic_write_or_fail lock statement on query if locking is not used βœ” should attach pessimistic_write_or_fail lock statement on query if locking enabled βœ” should throw error if optimistic lock used with getMany method βœ” should throw error if optimistic lock used with getCount method βœ” should throw error if optimistic lock used with getManyAndCount method βœ” should throw error if optimistic lock used with getRawMany method βœ” should throw error if optimistic lock used with getRawOne method βœ” should not throw error if optimistic lock used with getOne method - should throw error if entity does not have version and update date columns - should throw error if actual version does not equal expected version - should not throw error if actual version and expected versions are equal - should throw error if actual updated date does not equal expected updated date - should not throw error if actual updated date and expected updated date are equal - should work if both version and update date columns applied βœ” should throw error if pessimistic locking not supported by given driver βœ” should throw error if for no key update locking not supported by given driver βœ” should throw error if for key share locking not supported by given driver βœ” should only specify locked tables in FOR UPDATE OF clause if argument is given βœ” should not allow empty array for lockTables βœ” should throw error when specifying a table that is not part of the query βœ” should allow on a left join βœ” should allow using lockTables on all types of locking βœ” should allow locking a relation of a relation βœ” pessimistic_partial_write and skip_locked works βœ” pessimistic_write_or_fail and skip_locked ignores skip_locked βœ” skip_locked with "pessimistic_read" βœ” nowait with "pessimistic_read" βœ” skip_locked with "pessimistic_read" check getOne βœ” skip_locked with "for_key_share" check getOne βœ” skip_locked with "pessimistic_read" fails on early versions of MySQL query builder > not βœ” should put negation in the SQL with one condition βœ” should put negation in the SQL with two condition βœ” should put negation correctly into WHERE expression with one condition βœ” should put negation correctly into WHERE expression with two conditions query builder > order-by βœ” should be always in right order(default order) βœ” should be always in right order(custom order) βœ” should be always in right order(custom order) βœ” should be always in right order(custom order) βœ” should be able to order by sql statement query builder > parameters βœ” should replace basic parameters when executing βœ” should prevent invalid characters from being used as identifiers βœ” should allow periods in parameters query builder > load-relation-count-and-map > many-to-many βœ” should load relation count on owner side βœ” should load relation count on owner side with limitation βœ” should load relation count on owner side with additional conditions (54ms) βœ” should load relation count on both sides of relation βœ” should load relation count on inverse side βœ” should load relation count on inverse side with limitation βœ” should load relation count on inverse side with additional conditions query builder > load-relation-count-and-map > one-to-many βœ” should load relation count βœ” should load relation count on nested relations (42ms) βœ” should load relation count with additional conditions query builder > relation-id > many-to-many > basic-functionality βœ” should not load ids when RelationId decorator is not specified βœ” should load ids when loadRelationIdAndMap used on ManyToMany owner side βœ” should load ids when loadRelationIdAndMap used on ManyToMany owner side without inverse side βœ” should load ids when loadRelationIdAndMap used on ManyToMany inverse side βœ” should load ids when loadRelationIdAndMap used on ManyToMany owning side with additional condition βœ” should load ids when loadRelationIdAndMap used on ManyToMany owning side without inverse side and with additional condition βœ” should load ids when loadRelationIdAndMap used on ManyToMany inverse side with additional condition βœ” should load ids when loadRelationIdAndMap used on nested relation βœ” should load ids when loadRelationIdAndMap used on nested relation with additional conditions βœ” should not load ids of nested relations when loadRelationIdAndMap used on inherit relation and parent relation was not found query builder > relation-id > many-to-many > embedded βœ” should load ids when loadRelationIdAndMap used on embedded and nested embedded tables (42ms) query builder > relation-id > many-to-many > embedded-with-multiple-pk owner side βœ” should load ids when loadRelationIdAndMap used on embedded table and each table have primary key (60ms) inverse side βœ” should load ids when loadRelationIdAndMap used on embedded table and each table have primary key (46ms) query builder > relation-id > many-to-many > multiple-pk owner side βœ” should load ids when both entities have multiple primary keys βœ” should load ids when only one entity have multiple primary key βœ” should load ids when both entities have multiple primary keys and additional condition used (38ms) βœ” should load ids when both entities have multiple primary keys and related entity does not have inverse side βœ” should load ids when loadRelationIdAndMap used on nested relation (72ms) inverse side βœ” should load ids when both entities have multiple primary keys βœ” should load ids when only one entity have multiple primary key βœ” should load ids when both entities have multiple primary keys and additional condition used (38ms) βœ” should load ids when loadRelationIdAndMap used on nested relation (67ms) query builder > relation-id > many-to-one > basic-functionality βœ” should load ids when loadRelationIdAndMap used (38ms) βœ” should load ids when loadRelationIdAndMap used and target entity has multiple primary keys βœ” should load ids when loadRelationIdAndMap used on nested relation and target entity has multiple primary keys query builder > relation-id > many-to-one > embedded βœ” should load ids when loadRelationIdAndMap used on embedded and nested embedded tables query builder > relation-id > many-to-one > embedded-with-multiple-pk βœ” should load ids when loadRelationIdAndMap used on embedded table and each table have primary key query builder > relation-id > many-to-one > multiple-pk βœ” should load ids when both entities have multiple primary keys βœ” should load ids when only one entity have multiple primary keys βœ” should load ids when both entities have multiple primary keys and related entity does not have inverse side βœ” should load ids when loadRelationIdAndMap used on nested relation (40ms) query builder > relation-id > one-to-many > basic-functionality βœ” should load id when loadRelationIdAndMap used with OneToMany relation βœ” should load id when loadRelationIdAndMap used with additional condition βœ” should load id when loadRelationIdAndMap used on nested relation (46ms) query builder > relation-id > one-to-many > embedded βœ” should load ids when loadRelationIdAndMap used on embedded and nested embedded tables query builder > relation-id > one-to-many > embedded-with-multiple-pk βœ” should load ids when loadRelationIdAndMap used on embedded table and each table have primary key (54ms) query builder > relation-id > one-to-many > multiple-pk βœ” should load ids when both entities have multiple primary keys βœ” should load ids when only one entity have multiple primary keys βœ” should load ids when both entities have multiple primary keys and additional condition used βœ” should load ids when loadRelationIdAndMap used on nested relation (42ms) query builder > relation-id > one-to-one > basic-functionality βœ” should load ids when loadRelationIdAndMap used with OneToOne owner side relation βœ” should load id when loadRelationIdAndMap used with OneToOne inverse side relation query builder > relation-id > one-to-one > embedded βœ” should load ids when loadRelationIdAndMap used on embedded and nested embedded tables query builder > relation-id > one-to-one > embedded-with-multiple-pk βœ” should load ids when loadRelationIdAndMap used on embedded table and each table have primary key query builder > relation-id > one-to-one > multiple-pk owner side βœ” should load ids when both entities have multiple primary keys βœ” should load ids when only one entity have multiple primary keys βœ” should load ids when both entities have multiple primary keys and related entity does not have inverse side βœ” should load ids when loadRelationIdAndMap used on nested relation inverse side βœ” should load ids when both entities have multiple primary keys βœ” should load ids when only one entity have multiple primary keys βœ” should load ids when loadRelationIdAndMap used on nested relation query builder > relational with many > add and remove many to many inverse βœ” should add entity relation of a given entity by entity objects (40ms) βœ” should add entity relation of a given entity by entity id (48ms) βœ” should add entity relation of a given entity by entity id map (41ms) βœ” should add entity relation of a multiple entities βœ” should add multiple entities into relation of a multiple entities (42ms) query builder > relational with many > add and remove many to many βœ” should add entity relation of a given entity by entity objects (45ms) βœ” should add entity relation of a given entity by entity id (42ms) βœ” should add entity relation of a given entity by entity id map (42ms) βœ” should add entity relation of a multiple entities (46ms) βœ” should add multiple entities into relation of a multiple entities (40ms) query builder > relational query builder > add operation > one to many relation βœ” should add entity relation of a given entity by entity objects βœ” should add entity relation of a given entity by entity id βœ” should add entity relation of a given entity by entity id map βœ” should add multiple entities into relation of a multiple entities βœ” should handle addAndRemove method as well query builder > relational with many > load many βœ” should load relation entity of a given entity object βœ” should load relation entity of a given entity id map βœ” should load relation entity of a given entity id query builder > relational query builder > load operation > many-to-one and one-to-one relations βœ” should load relation entity of a given entity object βœ” should load relation entity of a given entity id βœ” should load relation entity of a given id query builder > relational query builder > set operation > many to one relation βœ” should set entity relation of a given entity by entity objects (45ms) βœ” should set entity relation of a given entity by entity id (43ms) βœ” should set entity relation of a given entity by entity id map βœ” should set entity relation of a multiple entities query builder > relational query builder > set operation > one-to-one non owner side βœ” should set entity relation of a given entity by entity objects βœ” should set entity relation of a given entity by entity id βœ” should set entity relation of a given entity by entity id map βœ” should raise error when setting entity relation of a multiple entities query builder > relational query builder > set operation > one-to-one relation βœ” should set entity relation of a given entity by entity objects (39ms) βœ” should set entity relation of a given entity by entity id βœ” should set entity relation of a given entity by entity id map βœ” should raise error when setting entity relation of a multiple entities query builder > select βœ” should append all entity mapped columns from main selection to select statement βœ” should append all entity mapped columns from main selection to SELECT DISTINCT statement βœ” should append all entity mapped columns from both main selection and join selections to select statement βœ” should append entity mapped columns from both main alias and join aliases to select statement βœ” should append entity mapped columns to select statement, if they passed as array βœ” should append raw sql to select statement βœ” should append raw sql and entity mapped column to select statement βœ” should not create alias for selection, which is not entity mapped column βœ” Support max execution time βœ” Support using certain index with relations and where clause many-to-one βœ” should craft query with exact value βœ” should craft query with FindOperator βœ” should craft query with Raw one-to-many βœ” should craft query with exact value βœ” should craft query with FindOperator many-to-many βœ” should craft query with exact value βœ” should craft query with FindOperator one-to-one βœ” should craft query with exact value βœ” should craft query with FindOperator deeply nested relations βœ” should craft query with exact value βœ” should craft query with FindOperator query execution and retrieval βœ” should return a single entity for getOne when found βœ” should return undefined for getOne when not found βœ” should return a single entity for getOneOrFail when found βœ” should throw an Error for getOneOrFail when not found where-in-ids βœ” should create expected query with simple primary keys βœ” should create expected query with composite primary keys βœ” should create expected query with composite primary keys with missing value query builder > find with the global condition of "non-deleted" and eager relation βœ” The global condition of "non-deleted" should be set for the entity with delete date columns and eager relation βœ” The global condition of "non-deleted" should not be set when "withDeleted" is called query builder > find with the global condition of "non-deleted" βœ” The global condition of "non-deleted" should be set for the entity with delete date columns βœ” The global condition of "non-deleted" should not be set when "withDeleted" is called query builder > soft-delete βœ” should perform soft deletion and recovery correctly βœ” should soft-delete and restore properties inside embeds as well βœ” should perform soft delete with limit correctly βœ” should perform restory with limit correctly βœ” should throw error when delete date column is missing βœ” should find with soft deleted relations query builder > sub-query βœ” should execute sub query in where string using subQuery method βœ” should execute sub query in where function using subQuery method βœ” should execute sub query in where function using subQuery method βœ” should execute sub query using different query builder βœ” should execute sub query in from expression (using different query builder) βœ” should execute sub query in from expression (using from's query builder) βœ” should execute sub query in from expression (using from's query builder) βœ” should execute sub query in from expression as second from expression βœ” should execute sub query in selects βœ” should execute sub query in selects (using provided sub query builder) - should execute sub query in joins (using provided sub query builder) - should execute sub query in joins with subquery factory (as selection) - should execute sub query in joins as string (as selection) query builder > time-travel-query βœ” should execute time travel query without options βœ” should execute time travel query with options βœ” should execute time travel query with 'skip' and 'take' options βœ” should execute time travel query with JOIN and skip/take options βœ” should execute time travel query with JOIN and limit/offset options query builder > update βœ” should perform updation correctly βœ” should be able to use sql functions βœ” should update and escape properly βœ” should update properties inside embeds as well βœ” should perform update with limit correctly βœ” should throw error when update value is missing βœ” should throw error when update value is missing 2 βœ” should throw error when update property in set method is unknown βœ” should throw error when unknown property in where criteria query runner > add column - should correctly add column and revert add query runner > change column - should correctly change column and revert change - should correctly change column 'isGenerated' property and revert change βœ” should correctly change generated as expression query runner > create and drop database βœ” should correctly create and drop database and revert it (262ms) query runner > create and drop schema βœ” should correctly create and drop schema and revert it query runner > create check constraint βœ” should correctly create check constraint and revert creation query runner > create exclusion constraint βœ” should correctly create exclusion constraint and revert creation query runner > create foreign key βœ” should correctly create foreign key and revert creation (1673ms) query runner > create index βœ” should correctly create index and revert creation (3145ms) query runner > create primary key βœ” should correctly create primary key and revert creation (3708ms) query runner > create table βœ” should correctly create table from simple object and revert creation (263ms) βœ” should correctly create table from Entity (64ms) βœ” should correctly create table with all dependencies and revert creation (1171ms) βœ” should correctly create table with different `Unique` definitions (546ms) βœ” should correctly create table with different `withoutRowid` definitions query runner > create unique constraint βœ” should correctly create unique constraint and revert creation query runner > create view βœ” should correctly create VIEW and revert creation βœ” should correctly create MATERIALIZED VIEW and revert creation query runner > drop check constraint βœ” should correctly drop check constraint and revert drop query runner > drop column when columns are instances of TableColumn - should correctly drop column and revert drop when columns are strings - should correctly drop column and revert drop query runner > drop exclusion constraint βœ” should correctly drop exclusion constraint and revert drop query runner > drop foreign key βœ” should correctly drop foreign key and revert drop (144ms) query runner > drop index βœ” should correctly drop index and revert drop (1524ms) query runner > drop primary key - should correctly drop primary key and revert drop query runner > drop table βœ” should correctly drop table without relations and revert drop (542ms) βœ” should correctly drop table with relations and revert drop (654ms) query runner > drop unique constraint βœ” should correctly drop unique constraint and revert drop query runner > drop view βœ” should correctly drop VIEW and revert dropping βœ” should correctly drop MATERIALIZED VIEW and revert dropping query runner > has column βœ” should correctly check if column exist query runner > implicit results βœ” should return results for Oracle Stored Procedure with Implicit Results query runner > rename column βœ” should correctly rename column and revert rename (3414ms) - should correctly rename column with all constraints and revert rename - should correctly rename column with all constraints in custom table schema and database and revert rename query runner > rename table βœ” should correctly rename table and revert rename (297ms) - should correctly rename table with all constraints depend to that table and revert rename - should correctly rename table with custom schema and database and all its dependencies and revert rename query runner > stream βœ” should stream data relations > custom-referenced-column-name many-to-one βœ” should load related entity when relation use custom referenced column name βœ” should load related entity when relation defined with empty join column βœ” should load related entity when relation defined without reference column name βœ” should load related entity when relation defined without column name βœ” should load related entity when relation defined without reference column name and relation does not have relation column in entity βœ” should persist relation when relation sets via join column one-to-one βœ” should load related entity when relation use custom referenced column name βœ” should load related entity when relation defined without column name βœ” should load related entity when relation defined without reference column name βœ” should load related entity when relation defined without column name βœ” should load related entity when relation defined without reference column name and relation does not have relation column in entity βœ” should persist relation when relation sets via join column relations > eager relations > basic βœ” should load all eager relations when object is loaded (38ms) βœ” should not load eager relations when query builder is used relations > eager relations > circular eager relations βœ” should throw error if eager: true is set on both sides of relationship relations > eager relations > lazy nested eager relations βœ” should load all eager relations nested inside a lazy relation (43ms) basic-lazy-relations βœ” should persist and hydrate successfully on a relation without inverse side βœ” should persist and hydrate successfully on a relation with inverse side βœ” should persist and hydrate successfully on a one-to-one relation with inverse side loaded from entity schema βœ” should persist and hydrate successfully on a many-to-one relation without inverse side βœ” should persist and hydrate successfully on a many-to-one relation with inverse side βœ” should persist and hydrate successfully on a one-to-many relation βœ” should persist and hydrate successfully on a one-to-one relation owner side βœ” should persist and hydrate successfully on a one-to-one relation inverse side βœ” should successfully load relations within a transaction βœ” should successfully load relations outside a transaction with entity generated within a transaction lazy-relations-loading-via-base-entity-finders βœ” works named-columns-lazy-relations βœ” should persist and hydrate successfully on a relation without inverse side βœ” should persist and hydrate successfully on a relation with inverse side βœ” should persist and hydrate successfully on a many-to-one relation without inverse side βœ” should persist and hydrate successfully on a many-to-one relation with inverse side βœ” should persist and hydrate successfully on a one-to-many relation βœ” should persist and hydrate successfully on a one-to-one relation owner side βœ” should persist and hydrate successfully on a one-to-one relation inverse side named-tables-lazy-relations βœ” should persist and hydrate successfully on a relation without inverse side βœ” should persist and hydrate successfully on a relation with inverse side βœ” should persist and hydrate successfully on a many-to-one relation without inverse side βœ” should persist and hydrate successfully on a many-to-one relation with inverse side βœ” should persist and hydrate successfully on a one-to-many relation βœ” should persist and hydrate successfully on a one-to-one relation owner side βœ” should persist and hydrate successfully on a one-to-one relation inverse side named-tables-and-columns-lazy-relations βœ” should persist and hydrate successfully on a relation without inverse side βœ” should persist and hydrate successfully on a relation with inverse side βœ” should persist and hydrate successfully on a many-to-one relation without inverse side βœ” should persist and hydrate successfully on a many-to-one relation with inverse side βœ” should persist and hydrate successfully on a one-to-many relation βœ” should persist and hydrate successfully on a one-to-one relation owner side βœ” should persist and hydrate successfully on a one-to-one relation inverse side relations > multiple-primary-keys > many-to-many owning side βœ” should load related entity when JoinTable used without options βœ” should load related entity when JoinTable used with options βœ” should load related entity when JoinTable references with non-primary columns βœ” should load related entity when both entities have multiple primary columns and JoinTable used without options βœ” should load related entity when both entities have multiple primary columns and JoinTable used with options βœ” should load related entity when both entities have multiple primary columns and JoinTable references with non-primary columns inverse side βœ” should load related entity when JoinTable used without options βœ” should load related entity when JoinTable used with options βœ” should load related entity when JoinTable references with non-primary columns βœ” should load related entity when both entities have multiple primary columns and JoinTable used without options βœ” should load related entity when both entities have multiple primary columns and JoinTable used with options βœ” should load related entity when both entities have multiple primary columns and JoinTable references with non-primary columns relations > multiple-primary-keys > many-to-one owning side βœ” should load related entity when JoinColumn is not specified βœ” should load related entity when JoinColumn is specified without options βœ” should load related entity when JoinColumn is specified with options βœ” should load related entity when JoinColumn references on to non-primary columns inverse side βœ” should load related entity when JoinColumn is not specified βœ” should load related entity when JoinColumn is specified without options βœ” should load related entity when JoinColumn is specified with options βœ” should load related entity when JoinColumn references on to non-primary columns relations > multiple-primary-keys > one-to-many βœ” should correctly insert relation items βœ” should correctly load relation items βœ” should correctly update relation items βœ” should correctly delete relation items relations > multiple-primary-keys > one-to-one owning side βœ” should load related entity when JoinColumn is specified without options βœ” should load related entity when JoinColumn is specified with options βœ” should load related entity when JoinColumn references on to non-primary columns βœ” should load related entity when both entities have multiple primary columns and JoinColumn defined without options βœ” should load related entity when both entities have multiple primary columns and JoinColumn defined with options βœ” should load related entity when both entities have multiple primary columns and JoinColumn references on to non-primary columns inverse side βœ” should load related entity when JoinColumn is specified without options βœ” should load related entity when both entities have multiple primary columns and JoinColumn defined without options βœ” should load related entity when both entities have multiple primary columns and JoinColumn defined with options βœ” should load related entity when JoinColumns references on to non-primary columns βœ” should load related entity when both entities have multiple primary columns and JoinColumn defined with options βœ” should load related entity when both entities have multiple primary columns and JoinColumn references on to non-primary columns relations > multiple-primary-keys > other-cases βœ” should load related entity when entity uses relation ids as primary id (43ms) relations > relation mapped to relation with different name (#56) - should work perfectly relations > relation with primary key many-to-one with primary key in relation βœ” should work perfectly repository > aggregate methods sum βœ” should return the aggregate sum βœ” should return null when 0 rows match the query average βœ” should return the aggregate average βœ” should return null when 0 rows match the query minimum βœ” should return the aggregate minimum βœ” should return null when 0 rows match the query maximum βœ” should return the aggregate maximum βœ” should return null when 0 rows match the query repository > basic methods target βœ” should return instance of the object it manages hasId βœ” should return true if entity has an id βœ” should return false if entity does not have an id createQueryBuilder βœ” should create a new query builder with the given alias create βœ” should create a new instance of the object we are working with βœ” should create a new empty object if entity schema is used βœ” should create a new empty object if entity schema with a target is used βœ” should create an entity and copy to it all properties of the given plain object if its given createMany βœ” should create entities and copy to them all properties of the given plain object if its given preload βœ” should preload entity from the given object with only id βœ” should preload entity and all relations given in the object merge βœ” should merge multiple entities βœ” should merge both entities and plain objects save βœ” should update existing entity using transformers upsert - should first create then update an entity βœ” should bulk upsert - should not overwrite unspecified properties βœ” should skip update when nothing has changed βœ” should upsert with embedded columns βœ” should upsert on one-to-one relation βœ” should bulk upsert with embedded columns βœ” should throw if using an unsupported driver βœ” should throw if using indexPredicate with an unsupported driver preload also should also implement merge functionality βœ” if we preload entity from the plain object and merge preloaded object with plain object we'll have an object from the db with the replaced properties by a plain object's properties query βœ” should execute the query natively and it should return the result repository > clear method βœ” should remove everything (420ms) βœ” called from entity managed should remove everything as well (349ms) repository > decrement method basic βœ” should decrement value βœ” should accept string as input and decrement value βœ” should return UpdateResult βœ” should throw an error if column property path was not found βœ” should throw an error if input value is not number bigint βœ” should decrement value embeded entities βœ” should decrement value repository > deleteById methods βœ” remove using deleteById method should delete successfully βœ” remove using removeByIds method should delete successfully repository > find methods count βœ” should return a full count when no criteria given (252ms) βœ” should return a count of posts that match given criteria (265ms) βœ” should return a count of posts that match given multiple criteria (259ms) βœ” should return a count of posts that match given find options (253ms) βœ” should return a count of posts that match both criteria and find options (248ms) exists βœ” should return a True when no criteria given (245ms) βœ” should return True when matches the given criteria (241ms) βœ” should return True when matches the given multiple criteria (254ms) βœ” should return True when matches the given find options (245ms) βœ” should return True when matches both criteria and find options (246ms) find and findAndCount βœ” should return everything when no criteria given (266ms) βœ” should return posts that match given criteria (251ms) βœ” should return posts that match given multiple criteria (251ms) βœ” should return posts that match given find options (245ms) βœ” should return posts that match both criteria and find options (272ms) findOne βœ” should throw an error when no criteria given (232ms) βœ” should return when criteria given (240ms) βœ” should return when find options given (251ms) findOne βœ” should return entity by a given id (254ms) βœ” should return entity by a given id and find options (236ms) findByIds βœ” should return entities by given ids findOneOrFail βœ” should return entity by a given id (249ms) βœ” should return entity by a given id and find options (239ms) βœ” should throw an error if nothing was found (236ms) repository > find options βœ” should load relations βœ” should execute select query inside transaction βœ” should select specific columns (39ms) βœ” should select by given conditions repository > find options > comment βœ” repository should insert comment repository > find options > cache βœ” repository should cache results properly (1028ms) repository > find options > locking βœ” should throw error if pessimistic lock used without transaction - should not throw error if pessimistic lock used with transaction - should attach pessimistic read lock statement on query if locking enabled βœ” should attach for no key update lock statement on query if locking enabled βœ” should attach for key share lock statement on query if locking enabled βœ” should attach SKIP LOCKED for pessimistic_read βœ” should attach NOWAIT for pessimistic_write βœ” should attach pessimistic write lock statement on query if locking enabled βœ” should attach dirty read lock statement on query if locking enabled βœ” should throw error if optimistic lock used with `find` method βœ” should not throw error if optimistic lock used with `findOne` method βœ” should throw error if entity does not have version and update date columns βœ” should throw error if actual version does not equal expected version βœ” should not throw error if actual version and expected versions are equal βœ” should throw error if actual updated date does not equal expected updated date βœ” should not throw error if actual updated date and expected updated date are equal βœ” should work if both version and update date columns applied βœ” should throw error if pessimistic locking not supported by given driver βœ” should not allow empty array for lockTables βœ” should throw error when specifying a table that is not part of the query βœ” should allow on a left join βœ” should allow using lockTables on all types of locking βœ” should allow locking a relation of a relation repository > find options > operators βœ” not βœ” lessThan βœ” lessThanOrEqual βœ” not(lessThan) βœ” not(lessThanOrEqual) βœ” moreThan βœ” moreThanOrEqual βœ” not(moreThan) βœ” not(moreThanOrEqual) βœ” equal βœ” not(equal) βœ” ilike βœ” not(ilike) βœ” like βœ” not(like) βœ” between βœ” not(between) βœ” in βœ” not(in) βœ” any βœ” not(any) βœ” isNull βœ” not(isNull) βœ” raw βœ” raw (function) βœ” raw (function with object literal parameters) βœ” should work with ActiveRecord model βœ” or (array syntax) repository > find options > relations βœ” should not any relations if they are not specified βœ” should load specified relations case 1 βœ” should load specified relations case 2 βœ” should load specified relations and their sub-relations case 1 βœ” should load specified relations and their sub-relations case 2 βœ” should load specified relations and their sub-relations case 3 βœ” should throw error if specified relations were not found case 1 βœ” should throw error if specified relations were not found case 2 βœ” should throw error if specified relations were not found case 3 βœ” should throw error if specified relations were not found case 4 βœ” should throw error if specified relations were not found case 5 βœ” should throw error if specified relations were not found case 6 repository > increment method basic βœ” should increment value βœ” should accept string as input and increment value βœ” should return UpdateResult βœ” should throw an error if column property path was not found βœ” should throw an error if input value is not number bigint βœ” should increment value embeded entities βœ” should increment value repository > set/add/remove relation methods - add elements to many-to-many from owner side - add elements to many-to-many from inverse side - remove elements to many-to-many from owner side - remove elements to many-to-many from inverse side - set element to one-to-many relation - set element to many-to-one relation - set element to NULL in one-to-many relation - set element to NULL in many-to-one relation entity > soft-remove βœ” should perform soft removal and recovery correctly βœ” should throw error when delete date column is missing repository > the global condtion of "non-deleted" with eager relation βœ” The global condition of "non-deleted" should be set for the entity with delete date columns and eager relation βœ” The global condition of "non-deleted" should not be set when the option "withDeleted" is set to true repository > the global condtion of "non-deleted" βœ” The global condition of "non-deleted" should be set for the entity with delete date columns βœ” The global condition of "non-deleted" should not be set when the option "withDeleted" is set to true repository > soft-delete βœ” should perform soft deletion and restoration correctly repository > soft-remove βœ” should perform soft removal and recovery correctly βœ” should throw error when delete date column is missing schema builder > add column βœ” should correctly add column (405ms) schema builder > change check constraint βœ” should correctly add new check constraint βœ” should correctly change check βœ” should correctly drop removed check schema builder > change column βœ” should correctly change column name (528ms) βœ” should correctly change column length (2630ms) βœ” should correctly change column type (4540ms) βœ” should correctly change column default value (119ms) - should correctly make column primary and generated - should correctly change column `isGenerated` property when column is on foreign key - should correctly change non-generated column on to uuid-generated column - should correctly change generated column generation strategy βœ” should correctly change column comment (874ms) βœ” should correctly change column type when FK relationships impact it (904ms) schema builder > change exclusion constraint βœ” should correctly add new exclusion constraint βœ” should correctly change exclusion βœ” should correctly drop removed exclusion schema builder > change index βœ” should correctly add new index (1596ms) βœ” should correctly change index (1775ms) βœ” should correctly drop removed index (236ms) βœ” should ignore index synchronization when `synchronize` set to false (1661ms) schema builder > change unique constraint βœ” should correctly add new unique constraint (1618ms) βœ” should correctly change unique constraint (1785ms) βœ” should correctly drop removed unique constraint (219ms) schema builder > create foreign key βœ” should correctly create foreign key (1857ms) schema builder > create table βœ” should correctly create tables with all dependencies (6147ms) schema builder > custom-db-and-schema-sync custom database βœ” should correctly sync tables with custom schema and database (2732ms) custom schema βœ” should correctly sync tables with custom schema βœ” should correctly sync tables with `public` schema custom database and schema βœ” should correctly sync tables with custom schema and database schema builder > drop column βœ” should correctly drop column (788ms) schema builder > update primary keys - should correctly update composite primary keys - should correctly update composite primary keys when table already have primary generated column spatial-cockroachdb βœ” should create correct schema with geometry type βœ” should create correct schema with geography type βœ” should create correct schema with geometry indices βœ” should persist geometry correctly βœ” should persist geography correctly βœ” should update geometry correctly βœ” should re-save geometry correctly βœ” should be able to order geometries by distance spatial-postgres βœ” should create correct schema with Postgres' geometry type βœ” should create correct schema with Postgres' geography type βœ” should create correct schema with Postgres' geometry indices βœ” should persist geometry correctly βœ” should persist geography correctly βœ” should update geometry correctly βœ” should re-save geometry correctly βœ” should be able to order geometries by distance sqlite driver > busy-timeout βœ” should set the busy_timeout as expected sqlite driver > enable wal βœ” should set the journal mode as expected sqlite driver > throws an error when queried after closing connection βœ” should throw sqlite driver > file open flags βœ” should open a DB with flags as expected sqljs driver > autosave βœ” should call autoSaveCallback on insert, update and delete sqljs driver > autosave off βœ” should not call autoSaveCallback when autoSave is disabled sqljs driver > load βœ” should load from a file βœ” should throw an error if the file doesn't exist sqljs driver > save βœ” should save to file βœ” should load a file that was saved sqljs driver > startup βœ” should startup even if the file doesn't exist βœ” should write a new file after first write operation table inheritance > regular inheritance using extends keyword βœ” should work correctly table-inheritance > single-table > basic-functionality βœ” should correctly insert, update and delete data with single-table-inheritance pattern (71ms) βœ” should be able to save different child entities in bulk βœ” should be able to find correct child entities when base class is used as entity metadata table-inheritance > single-table > database-option-inherited βœ” should correctly inherit database option table-inheritance > single-table > no-type-column βœ” should return subclass in relations table-inheritance > single-table > non-virtual-discriminator-column βœ” should return non virtual discriminator column as well table-inheritance > single-table > numeric types βœ” should allow numeric types for the discriminator, including 0 table-inheritance > single-table > relations > many-to-many owner side βœ” should work correctly with ManyToMany relations (49ms) inverse side βœ” should work correctly with ManyToMany relations table-inheritance > single-table > relations > one-to-many βœ” should work correctly with OneToMany relations (89ms) table-inheritance > single-table > relations > one-to-many-cascade-save βœ” should work correctly with OneToMany relations transaction > transaction with full isolation support - should execute all operations in a single transaction with READ UNCOMMITTED isolation level βœ” should execute all operations in a single transaction with READ COMMITTED isolation level βœ” should execute all operations in a single transaction with REPEATABLE READ isolation level - should execute all operations in a single transaction with SERIALIZABLE isolation level transaction > transaction with oracle connection partial isolation support βœ” should execute all operations in a single transaction with READ COMMITTED isolation level βœ” should execute all operations in a single transaction with SERIALIZABLE isolation level transaction > transaction with sqlite connection partial isolation support βœ” should execute all operations in a single transaction with READ UNCOMMITTED isolation level βœ” should execute all operations in a single transaction with SERIALIZABLE isolation level transaction > nested transaction βœ” should execute operations based on conditions in deeply nested scenario βœ” should fail operations when first transaction fails transaction > return data from transaction βœ” should allow to return typed data from transaction βœ” should allow to return typed data from transaction using type inference transaction > single query runner βœ” should execute all operations in the method in a transaction βœ” should execute all operations in the method in a transaction (#804) transaction > transaction with entity manager βœ” should execute all operations in a single transaction βœ” should not save anything if any of operation in transaction fail transaction > transaction with load many βœ” should loadMany in same transaction with same query runner tree tables > closure-table βœ” categories should be attached via parent and saved properly βœ” categories should be attached via children and saved properly βœ” categories should be attached via children and saved properly and everything must be saved in cascades - categories should remove removed children - sub-category should be removed with all its children βœ” findTrees() tests > findTrees should load all category roots and attached children βœ” findTrees() tests > findTrees should load multiple category roots if they exist βœ” findTrees() tests > findTrees should filter by depth if optionally provided βœ” findDescendantsTree() tests > findDescendantsTree should load all category descendents and nested children βœ” findDescendantsTree() tests > findDescendantsTree should filter by depth if optionally provided tree tables > materialized-path βœ” attach should work properly βœ” categories should be attached via children and saved properly βœ” categories should be attached via children and saved properly βœ” categories should be attached via children and saved properly and everything must be saved in cascades βœ” findTrees() tests > findTrees should load all category roots and attached children βœ” findTrees() testsfindTrees should load multiple category roots if they exist βœ” findTrees() testsfindTrees should filter by depth if optionally provided βœ” findDescendantsTree() tests > findDescendantsTree should load all category descendents and nested children βœ” findDescendantsTree should filter by depth if optionally provided βœ” should compute path correctly when tree is implicitly saved (cascade: true) through related entity tree tables > nested-set βœ” attach should work properly βœ” categories should be attached via children and saved properly βœ” categories should be attached via children and saved properly βœ” categories should be attached via children and saved properly and everything must be saved in cascades βœ” findTrees() tests > findTrees should load all category roots and attached children βœ” findTrees() tests > findTrees should filter by depth if optionally provided (40ms) βœ” findTrees() tests > findTrees should present a meaningful error message when used with multiple roots + nested sets βœ” findDescendantsTree() tests > findDescendantsTree should load all category descendents and nested children βœ” findDescendantsTree() tests > findDescendantsTree should filter by depth if optionally provided ImportUtils.importOrRequireFile βœ” should import .js file as ESM βœ” should import .js file as CommonJS βœ” should import .mjs file as ESM βœ” should import .cjs file as CommonJS βœ” should import .json file as CommonJS OrmUtils.mergeDeep βœ” should handle simple values. βœ” should handle ordering and indempotence. βœ” should skip nested promises in sources. βœ” should merge moderately deep objects correctly. βœ” should merge recursively deep objects correctly βœ” should reference copy complex instances of classes. StringUtils snakeCase βœ” should convert camelcase to snakecase βœ” should correctly convert an initial capital βœ” should correctly convert strings of capitals βœ” should correctly convert repeating camelcase groups βœ” should do nothing with strings that are already snakecase βœ” should correctly convert mixed strings into snakecase βœ” should correctly convert strings with numbers βœ” should match the examples given in the older implementation camelCase βœ” should convert snakecase to camelcase βœ” should convert with first capital letter βœ” should correctly convert repeating snakecase groups βœ” should do nothing with strings that are already camelcase βœ” should correctly convert strings with numbers uuid-cockroach βœ” should make correct schema with CockroachDB uuid type βœ” should persist uuid correctly βœ” should persist uuid correctly when it is generated non primary column uuid-mssql βœ” should persist uuid correctly when it is generated non primary column uuid-mysql βœ” should persist uuid correctly when it is generated non primary column βœ” should set generated uuid in the model after save uuid-oracle βœ” should persist uuid correctly when it is generated non primary column pgcrypto βœ” should make correct schema with Postgres' uuid type βœ” should persist uuid correctly βœ” should persist uuid correctly when it is generated non primary column uuid-ossp βœ” should make correct schema with Postgres' uuid type βœ” should persist uuid correctly βœ” should persist uuid correctly when it is generated non primary column uuid-mysql βœ” should persist uuid correctly when it is generated non primary column βœ” should set generated uuid in the model after save uuid-spanner βœ” should persist uuid correctly when it is generated non primary column uuid-sqlite βœ” should persist uuid correctly when it is generated non primary column view entity > general βœ” should create entity view from query builder definition βœ” should correctly return data from View view entity > mssql βœ” should create entity view from string definition βœ” should correctly return data from View view entity > mysql βœ” should create entity view from string definition βœ” should correctly return data from View view entity > oracle βœ” should create entity view from string definition βœ” should correctly return data from View view entity > postgres βœ” should create entity view from string definition βœ” should not return data without refreshing the materialized view βœ” should correctly return data from View view entity > sqlite βœ” should create entity view from string definition βœ” should correctly return data from View views dependencies βœ” should generate drop and create queries in correct order github issues > #10040 TypeORM synchronize database even if it is up to date βœ” should return an empty array for the upQueries after sync github issues > #1014 Transaction doesn't rollback βœ” should rollback transaction if some operation failed in it github issues > #1034 Issue using setter with promises βœ” should set members in circle github issues > #1042 EntityMetadata.createPropertyPath does not work properly with objects inside entities (date, json, etc.) βœ” should update object columns fine, at the same time embedded should work properly github issues > #1055 ind with relations not working, correct syntax causes type error βœ” should be able to find by object reference βœ” should not have type errors with the primary key type github issues > #108 Error with constraint names on postgres βœ” should sync even when there unqiue constraints placed on similarly named columns github issues > #1089 UUID in ClosureEntity βœ” should correctly work with primary UUID column (2001ms) github issues > #1099 BUG - QueryBuilder MySQL skip sql is wrong βœ” drivers which does not support offset without limit should throw an exception, other drivers must work fine github issues > #1113 CreateDateColumn's type is incorrect when using decorator @CreateDateColumn({type: 'timestamp'}) βœ” should correctly create date column from @CreateDateColumn decorator and with custom column type github issues > #1118 findByIds must return empty results if no criteria were passed in an array βœ” drivers which does not support offset without limit should throw an exception, other drivers must work fine github issues > #1123 load relation eagerly by setting isEager property βœ” should load all eager relations when object is loaded βœ” should not load eager relations when query builder is used github issues > #1139 mysql primary generated uuid ER_TOO_LONG_KEY βœ” correctly create primary generated uuid column (308ms) github issues > #114 Can not be parsed correctly the URL of pg. - should not fail in url parser github issues > #1140 timestamp column and value transformer causes TypeError βœ” correctly store/load timestamp columns github issues > #1147 FindOptions should be able to accept custom where condition - should properly query using custom sql github issues > #1178 subqueries must work in insert statements βœ” should work fine github issues > #1200 Update multiple nested embeddeds βœ” should update all embedded entities including the nested ones github issues > #1210 mongodb does not have multiple entities properly βœ” should save entities properly github issues > #1233 column updatedDate must appear in the GROUP BY clause or be used in an aggregate function βœ” should filter correctly using findByIds github issues > #1245 `findByIds` ignores `FindManyOptions` βœ” should filter correctly using findByIds βœ” should filter correctly using findByIds github issues > #1259 Can't sort by fields added with addSelect βœ” should order by added selects when pagination is used βœ” should order by added selects when pagination is used github issues > #1261 onDelete property on foreign key is not modified on sync βœ” should modify onDelete property on foreign key on sync (507ms) github issue > #1282 FEATURE REQUEST - Naming strategy joinTableColumnName if it is called from the owning or owned (inverse) context βœ” NamingStrategyUnderTest# github issues > #1308 Raw Postgresql Update query result is always an empty array βœ” Update query returns the number of affected rows github issues > #131 Error with single table inheritance query without additional conditions βœ” should not fail when querying for single table inheritance model without additional conditions github issues > #1314 UPDATE on json column stores string type βœ” should not store json type as string on update github issue > #1326 Wrong behavior w/ the same table names in different databases βœ” should not confuse equivalent table names in different databases (42ms) github issues > #134 Error TIME is converted to 'HH-mm' instead of 'HH:mm βœ” should successfully persist the post with creationDate in HH:mm and return persisted entity github issues > #1355 Allow explicitly named primary keys, foreign keys, and indices βœ” should set foreign keys their names to given names github issues > #1369 EntitySubscriber not firing events on abstract class entity βœ” should fire the given event for an abstract entity github issues > #1377 Add support for `GENERATED ALWAYS AS` in MySQL - should correctly create table with generated columns github issues > #1388 nullable: true dons't output 'NULL' in mysql βœ” should correctly create nullable column github issue > #1397 Spaces at the end of values are removed when inserting βœ” should not trim empty spaces when saving github issue > #1416 Wrong behavior when fetching an entity that has a relation with its own eager relations βœ” should load eager relations of an entity's relations recursively github issues > #1427 precision and scale column types with errant behavior βœ” should correctly create column with precision and scale github issues > #1465 save child and parent entity βœ” account property in accountActivationToken should not be null github issues > #1476 subqueries βœ” should github issues > #1493 Error parsing pg connection string βœ” should parse common connection url βœ” should parse url with password contains colons βœ” should parse url with username and password contains at signs github issues > #1504 Cannot eagerly query Entity with relation more than 3 levels deep βœ” should not throw an error github issues > #151 joinAndSelect can't find entity from inverse side of relation βœ” should cascade persist successfully github issues > #1510 entity schema does not support mode=objectId βœ” throws an error because there is no object id defined βœ” should create entities without throwing an error when objectId is defined github issues > #1532 Array type default value doesnt work. PostgreSQL βœ” can recognize model changes βœ” does not generate when no model changes github issues > #1545 Typeorm runs insert query instead of update query on save of existing entity for ManyToOne relationships - should add intial validation data github issues > #1551 complex example of cascades + multiple primary keys = persistence order βœ” throws an error because there is no object id defined (41ms) - throws a "update or delete on table 'message' violates foreign key constraint on table 'recipient'" error on delete - throws a "null value in column 'userId' violates not-null constraint" error on delete - throws a "Subject Recipient must have an identifier to perform operation" internal error on delete github issue > #1569 updateById generates wrong SQL with arrays inside embeddeds βœ” should properly updateById arrays inside embeddeds github issues > #1576 Entities with null as `id` are merged [@next] βœ” should successfully create object github issues > #1581 Composite key breaks OneToMany relation - throws an error because there is no object id defined github issues > #1584 Cannot read property 'createValueMap' of undefined βœ” should save entities properly github issues > #1591 Define order of relation data when querying on the main entity - should query correct number of users with joined data ordering applied github issues > #1600 Postgres: QueryBuilder insert with Postgres array type bug βœ” should insert successfully using save method βœ” should insert successfully using insert method github issues > #161 joinAndSelect can't find entity from inverse side of relation βœ” should persist successfully βœ” should return joined relation successfully github issues > #1615 Datetime2 with any precision result in datetime2(7) in database βœ” should correctly create column with Datetime2 type and any precision github issues > #1623 NOT NULL constraint failed after a new column is added (SQLite) βœ” should correctly add new column (227ms) github issues > #163 ManyToMany relation : Cannot read property 'joinColumnName' of undefined βœ” should persist class table child successfully github issues > #1652 Multiple primary key defined βœ” should correctly create table when multiple primary keys defined and one of them is generated github issues > #1680 Delete & Update applies to all entities in table if criteria is undefined or empty βœ” Delete & Update should throw an error when supplied with an empty criteria github issues > #1685 JoinColumn from JoinColum is not considered when inserting new value - should not fail when inserting a new UserMonth with good PKs from JoinColumn github issues > #1703 Many to Many with association table returns odd values. βœ” should work as expected (40ms) github issues > #1720 Listener not invoked when relation loaded through getter βœ” should work as expected github issues > #1733 Postgresql driver does not detect/support varying without length specified βœ” should correctly synchronize schema when varchar column length is not specified github issues > #174 Embeded types confusing with order by βœ” should order organisations correctly when properties are duplicate in its embeddable github issues > #1748 PrimaryColumn combined with transformer leads to error on save βœ” should work as expected github issues > #1749 Can't delete tables in non-default schema βœ” should delete entites from tables in different schemas github issues > #175 ManyToMany relation doesn't put an empty array when the relation is empty βœ” should return post with categories if they are attached to the post βœ” should return post with categories even if post with empty categories was saved βœ” should return post with categories even if post was saved without categories set github issues > #1751 Create sequence repeatedly when it already exists βœ” should correctly synchronize schema github issue #1754 Repository.save() always updating ManyToOne relation βœ” should work as expected (42ms) github issues > #1758 Synchronization bug in PostgreSQL bug occurs when we explicitly state the default schema as 'public' postgres, cockroachdb βœ” should correctly synchronize schema when we explicitly state the default schema as 'public' mssql βœ” should correctly synchronize schema when we explicitly state the default schema as 'public' github issues > #176 @CreateDateColumn and @UpdateDateColumn does not read back in UTC βœ” should return dates in utc github issues > #1780 Support for insertion ignore on duplicate error βœ” should save one row without duplicate error in MySQL/MariaDB βœ” should save one row without duplicate error in PostgreSQL github issues > #1788 One to One does not load relationships. βœ” should work as expected when using find* methods with relations explicitly provided github issues > #1805 bigint PK incorrectly returning as a number (expecting a string) βœ” should return `bigint` column as string github issues > #182 enums are not saved properly βœ” should persist successfully with enum values github issues > #1825 Invalid field values being loaded with long camelCased embedded field names. βœ” should load valid values in embedded with long field names github issues > #1839 Charset and collation not being carried to JoinTable when generating migration - should carry charset and collation from original column in to junction column github issues > #184 [Postgres] Single-Inheritance not working with integer type field βœ” single table inheritance should accept a Integer Type github issues > #1863 createTable.uniques doesn't work when the columnNames only has one item βœ” should correctly create table with unique constraint (110ms) github issues > #1883 Synchronization error with default value βœ” should correctly synchronize schema with enum column github issues > #1887 Having problems with UNIQUEIDENTIFIERS βœ” should correctly insert data github issues > #1898 Simple JSON breaking in @next βœ” should correctly persist github issues > #190 too many SQL variables when using setMaxResults in SQLite βœ” should not fail if high max results is used github issues > #1901 The correct way of adding `ON UPDATE CURRENT_TIMESTAMP` clause to timestamp column βœ” should correctly create and change column with ON UPDATE expression (113ms) github issues > #1493 Error parsing pg connection string βœ” should parse url with empty password βœ” should parse url without password github issues > #1926 Update fails for entity with compound relation-based primary key on OneToMany relationship - Should update OneToMany entity with compound relation-based primary key github issues > #1929 Select attributes in Find method - mongodb βœ” return column on include in select on find βœ” return column on include in select on findAndCount βœ” return column on include in select on findByIds βœ” return column on include in select on findByIds github issues > #1960 Migration generator produces duplicated changes - should not execute any alter queries github issues > #197 Fails to drop indexes when removing fields βœ” it should drop the column and the referenced index (367ms) github issues > #1972 STI problem - empty columns βœ” should insert with userId βœ” should insert with ownerId github issues > #1981 Boolean values not casted properly when used in .find() condition βœ” should be able to find by boolean find github issues > #1997 enum type not working in postgres when defined in a custom schema βœ” should create table with ENUM column βœ” should be able to read table data with ENUM βœ” should save data with ENUM βœ” should create ENUM column and revert creation βœ” should drop ENUM column and revert drop βœ” should create table with ENUM column and revert creation βœ” should drop table with ENUM column and revert drop βœ” should change non-enum column in to ENUM and revert change βœ” should change ENUM column in to non-enum and revert change βœ” should change ENUM column and revert change βœ” should rename ENUM when column renamed and revert rename βœ” should rename ENUM when table renamed and revert rename github issues > #2005 βœ” should be able to find by boolean find github issues > #2006 Columns are being set to null after saving the entity βœ” should be able to find by boolean find github issues > #2031 Advanced find options with FKs βœ” find operators should work with relational columns as well github issues > #204 jsonb array is not persisted correctly βœ” should persist json and jsonb arrays correctly github issues > #2044 Should not double get embedded column value βœ” Insert query should work with relational columns github issues > #2065 TypeError: Cannot convert object to primitive value βœ” should save an entity created with Object.create(null) github issues > #2067 Unhandled promise rejection warning on postgres connection issues βœ” should return a catchable error on connection errors in queries github issues > #2096 [mysql] Database name isn't read from url βœ” should be possible to define a database by connection url for mysql github issues > #2103 query builder regression βœ” whereInIds should respect logical operator precedence > single simple primary key (in is used) βœ” whereInIds should respect logical operator precedence > multiple primary keys github issues > #211 where in query issue βœ” should not fail if WHERE IN expression is used (70ms) github issues > #2128 skip preparePersistentValue for value functions βœ” should be able to resolve value functions github issues > #2131 InsertResult return the same primary key βœ” should get correct insert ids for multiple entities inserted github issues > #2147 Lazy load JoinColumn with multiple columns name property is ignored for second reference column - should create multiple column join for lazy loading relationship github issues > #215 invalid replacements of join conditions βœ” should not do invalid replacements of join conditions github issues > #219 FindOptions should be able to resolve null values βœ” should properly query null values (38ms) github issues > #2199 - Inserting value for @PrimaryGeneratedColumn() for mysql, sqlite and mssql βœ” should allow to explicitly insert primary key value βœ” should reset mssql's INSERT_IDENTITY flag correctly after failed queries github issue > #2200 Bug - Issue with snake_case naming strategy βœ” Renammed alias allow to query correctly github issues > #2201 - Create a select query when using a (custom) junction table βœ” Should create only two PM columns ('order_id' and 'user_id') (2972ms) βœ” Should not try to update the junction table when not needed github issues > #2216 - Ability to capture Postgres notifications in logger when logNotifications option is NOT enabled βœ” should NOT pass extension setup notices to client βœ” should NOT pass manual notices to client βœ” should NOT pass 'listen -> notify' messages to client when logNotifications option is enabled βœ” should pass extension setup notices to client βœ” should pass manual notices to client βœ” should pass 'listen -> notify' messages to client βœ” should not interfere with actual queries github issues > #2251 - Unexpected behavior when passing duplicate entities to repository.save() βœ” should update all entities βœ” should handle cascade updates github issues > #2253 - inserting multiple child entities fails βœ” should be able to save multiple child entities github issues > #2259 Missing type for generated columns βœ” Should create table with generated column github issues > #2286 find operators like MoreThan and LessThan doesn't work properly for date fields βœ” should find a record by its datetime value with find options βœ” should find a record by its datetime value with query builder βœ” should save, update, and load with a date PK github issues > #2287 - QueryBuilder IN and ANY Fail with .where - Postgres βœ” should allow to explicitly insert primary key value github issues > #2298 - Repository filtering not considering related columns as filter βœ” should work perfectly github issues > #2313 - BaseEntity has no findOneOrFail() method βœ” should find the appropriate record when one exists βœ” should throw no matching record exists github issues > #2331 undefined value is nulling column on update βœ” should not overwrite column with null when passing undefined github issues > #2333 datetime column showing changed on every schema:sync run βœ” should recognize model changes βœ” should not generate queries when no model changes (121ms) github issues > #234 and #223 lazy loading does not work correctly from one-to-many and many-to-many sides βœ” should correctly load from one-to-many and many-to-one sides (52ms) βœ” should correctly load from both many-to-many sides (116ms) github issues > #2364 should generate id value if @Column generated:true is set βœ” should generate id value (1410ms) github issues > #2376 Naming single column unique constraint with decorator not working as expected βœ” should keep user-specified Unique constraint name github issues > #2434 QueryBuilder insert for Oracle failed βœ” should insert multiple rows with QueryBuilder βœ” should throw ORA-00001 error if constraint violated when inserting multiple rows βœ” should insert multiple rows of entity with generated columns with QueryBuilder βœ” should still insert one row with QueryBuilder βœ” should still insert multiple rows with save βœ” should still insert one row with save github issues > #2464 - ManyToMany onDelete option not working βœ” should not delete when onDelete is 'NO ACTION' βœ” should delete when onDelete is not set github issues > #2499 Postgres DELETE query result is useless βœ” should return correct number of affected rows for mysql, mariadb, postgres github issues > #2518 TreeRepository.findDescendantsTree does not load descendants when relationship id property exist βœ” should load descendants when findDescendantsTree is called for a tree entity βœ” should load descendants when findTrees are called github issues > #2557 object looses its prototype before transformer.to() βœ” should give correct object in transformer.to github issues > #2588 - createQueryBuilder always does left joins on relations βœ” Should allow joins with conditions github issues > #2632 createQueryBuilder relation remove works only if using ID βœ” should add and remove relations of an entity if given a mix of ids and objects (38ms) github issues > #2651 set shouldn't have update statements twice when UpdateDate is in use βœ” should add and remove relations of an entity if given a mix of ids and objects github issues > #2875 Option to run migrations in 1-transaction-per-migration mode βœ” should fail to run all necessary migrations when transaction is all βœ” should be able to run all necessary migrations when transaction is each github issues > #2703 Column with transformer is not normalized for update βœ” should transform values when computing changed columns github issues > #2733 should correctly handle function calls with upercase letters as default values βœ” MSSQL, Sqljs, Sqlite βœ” Postgres github issues > #2737 MySQLDriver findChangedColumns (fields: width, precision) βœ” should not create migrations for an existing unique index when bigNumberStrings is false github issues > #2758 Insert fails when related OneToOne entity's primary key is also a foreign key - should insert person with nested new party - should insert user with nested new person - should insert a new user with existing person - should insert user with existing personId github issues > #2779 Could we add support for the MySQL/MariaDB SET data type? βœ” should create column with SET datatype βœ” should persist and hydrate sets github issues > #2800 - Can't override embedded entities in STI implementation βœ” should be able to save entity with embedded entities overriding github issues > #2809 afterUpdate subscriber entity argument is undefined βœ” if entity has been updated via repository update(), subscriber should get passed entity to change github issues > #2871 Empty enum array is returned as array with single empty string βœ” should extract array with values from enum array values from 'postgres' βœ” should extract array with one value from enum array with one value from 'postgres' βœ” should extract empty array from empty enum array from 'postgres' github issues > #2875 runMigrations() function is not returning a list of migrated files βœ” should be able to run all necessary migrations github issues > #2904 Type DeepPartial issue when used with generics βœ” DeepPartial should correctly handle generics github issues > #2927 When using base class' custom repository, the discriminator is ignored βœ” should use the correct subclass for inheritance when saving and retrieving concrete instance βœ” should work for deeply nested classes βœ” should work for saving and fetching different subclasses github issues > #2943 Inappropriate migration generated βœ” should not create migrations for unsigned numeric types with no specified width github issues > #2965 Reuse preloaded lazy relations βœ” should resuse preloaded lazy relations github issues > #2984 Discriminator conflict reported even for non-inherited tables βœ” should load entities even with the same discriminator github issues > #300 support of embeddeds that are not set βœ” embedded with custom column name should persist and load without errors github issues > #3047 Mysqsl on duplicate key update use current values βœ” should overwrite using current value in MySQL/MariaDB βœ” should overwrite using current value in PostgreSQL github issues > #306 embeddeds with custom column name don't work βœ” embedded with custom column name should persist and load without errors github issues > #3076 Postgres enum in schema with default is recreated in every new generated migration βœ” should recognize model changes βœ” should not generate queries when no model changes βœ” should handle `enumName` default change github issues > #3105 Error with cascading saves using EntityManager in a transaction βœ” error with cascading saves using EntityManager in a transaction github issues > #3111 Inserting with query builder attempts to insert a default row when values is empty array βœ” should not insert with default values on .values([]) βœ” should still error on missing .values() github issues > #3112 default:null should inserts nulls to database βœ” should insert null when no value specified github issues > #9316 specify how should interpret null and undefined values in conditions βœ” should find users what money is not null and money is more than 10 and money is less than 100 github issues > #3118 shorten alias names (for RDBMS with a limit) when they are longer than 63 characters βœ” should be able to load deeply nested entities, even with long aliases (110ms) βœ” should shorten table names which exceed the max length github issues > #3120 Add relation option "createForeignKeyConstraints" βœ” should create foreign key for relation without createForeignKeyConstraints option βœ” should not create foreign key for relation with createForeignKeyConstraints equal false relation with createForeignKeyConstraints equal false βœ” should work perfectly github issues > #3142 Unique constraint not created on embedded entity field βœ” should create unique constraint on embedded entity github issues > #3151 'uuid' in PrimaryGeneratedColumn causes Many-to-Many Relationship to Fail βœ” should work correctly github issues > #3158 Cannot run sync a second time βœ” can recognize model changes github issues > #320 Bug in getManyAndCount βœ” should correctly parse type from PrimaryGeneratedColumn options github issues > #3246 Saving an entity with a 1:1 cascading insert does not return id if entity has nullable many:one relationship βœ” should insert and return the order with id github issues > #3256 wrong subscriber methods being called βœ” if entity was changed, subscriber should be take updated columns github issues > #3349 Multiple where conditions with parameters βœ” should work with query builder βœ” should work with findOne github issues > #3350 ER_DUP_FIELDNAME with simple find βœ” should find without errors github issues > #3352 sync drops text column βœ” should not drop text column github issues > #3363 Isolation Level in transaction() from Connection - should execute operations in READ UNCOMMITED isolation level - should execute operations in SERIALIZABLE isolation level github issues > #3374 Synchronize issue with UUID (MySQL) βœ” should not drop primary column again github issues > #3379 Migration will keep create and drop indexes if index name is the same across tables βœ” should not recreate indices (312ms) github issues > #3387 named columns βœ” should allow inserting named columns github issues > #3395 Transform.from does nothing when column is NULL βœ” should run transform from if column is null github issues > #341 OneToOne relation with referencedColumnName does not work βœ” custom join column name and referencedColumnName github issues > #3416 Unknown fields are stripped from WHERE clause should throw FindCriteriaNotFoundError when supplying unknown property in where criteria βœ” find βœ” update βœ” delete github issues > #3422 cannot save to nested-tree table if schema is used in postgres βœ” should not fail when using schema and nested-tree github issues > #3443 @JoinTable on entities without synchronization βœ” Should set synchronize: false for @JoinTable when passed to options github issues > #345 Join query on ManyToMany relations not working βœ” embedded with custom column name should persist and load without errors (53ms) github issues > #3496 jsonb comparison doesn't work βœ” the entity should not be updated a second time github issues > #352 double precision round to int in mssql βœ” real number should be successfully stored and loaded from db including value in parameters github issues > #3534: store regexp βœ” allows entities with regexp columns github issues > #3536 Sync only works once for enums on entities with capital letters in entity name βœ” should run without throw error github issues > #3551 array of embedded documents through multiple levels are not handled βœ” should return entity with all these embedded documents github issues > #3587 do not generate change queries for number based enum types every time βœ” should NOT generate change queries in case enum is not changed github issues > #3588 Migration:generate issue with onUpdate using mysql 8.0 βœ” can recognize model changes github issues > #3604 FK columns have wrong length when PrimaryGeneratedColumn('uuid') is used. βœ” join column should have the same length with primary column github issues > #363 Can't save 2 unrelated entity types in a single persist call βœ” entityManager should allow you to save unrelated entities with one persist call βœ” entityManager should allow you to delete unrelated entities with one remove call github issues > #3636 synchronize drops (and then re-adds) json column in mariadb βœ” should not drop json column github issues > #3685 Brackets syntax failed when use where with object literal βœ” should accept objects in .where method (github issue #3685) github issues > #3694 Sync enums on schema sync βœ” should change schema when enum definition changes (273ms) github issues > #3702 MySQL Spatial Type Support : GeomFromText function is not supported when legacySpatialSupport: true - should use GeomFromText - should provide SRID - should use AsText when legacySpatialSupport: false - should use ST_GeomFromText - should provide SRID - should use ST_AsText github issues > #3737 Should URL-decode the user info of a data source URI βœ” should parse URL with percent-encoded username βœ” should parse URL with percent-encoded password github issues > #3783 Tree functionality broken βœ” should work correctly github issues > #3803 column option unique sqlite error βœ” should create unique constraints defined in EntitySchema github issues > #3828 Conflicting PR to fix postgres schema:log with uppercase table names and enums βœ” schema sync should work when enum type name was changed github issues > #3847 FEATURE REQUEST - Naming strategy foreign key override name βœ” NamingStrategyUnderTest# github issues > #3857 Schema inheritance when STI pattern is used βœ” Child classes should have same schema as parent github issues > #3874 Using an (empty string) enum as the type of a primary key column βœ” should reload entity github issues > #388 skip and take with string ID don't work βœ” should load posts with string id successfully github issues > #3946 loadRelationCountAndMap fails cause made a wrong IN calculation, when primary key is string βœ” should load relation count on owner side βœ” should load relation count on owner side with limitation (67ms) βœ” should load relation count on owner side with additional conditions (69ms) βœ” should load relation count on both sides of relation βœ” should load relation count on inverse side (48ms) βœ” should load relation count on inverse side with limitation (40ms) βœ” should load relation count on inverse side with additional conditions (41ms) github issues > #3949 sqlite date hydration is susceptible to corruption βœ” should correctly read date column that was inserted raw in canonical format βœ” should correctly read date column that was inserted raw in iso 8601 format github issues > #3991 Migration keeps changing @CreateDateColumn/@UpdateDateColumn timestamp column to same definition postgres βœ” should recognize model changes βœ” should not generate queries when no model changes cockroachdb βœ” should recognize model changes βœ” should not generate queries when no model changes oracle βœ” should recognize model changes βœ” should not generate queries when no model changes sqlite βœ” should recognize model changes βœ” should not generate queries when no model changes mysql, mariadb βœ” should recognize model changes βœ” should not generate queries when no model changes (122ms) mssql βœ” should recognize model changes βœ” should not generate queries when no model changes github issues > #3997 synchronize=true always failing when using decimal column type with a foreign key constraint βœ” should recognize model changes βœ” should not generate queries when no model changes (1966ms) github issues > #401 special keywords should be escaped in join queries βœ” should escape 'group' keyword properly github issues > #4060 Fail to insert entity with Buffer type of primary column under some circumstances. βœ” should save entities github issues > #4096 SQLite support for orUpdate βœ” should overwrite using current value in SQLite github issues > #4106 Specify enum type name in postgres βœ” should create an enum with the name specified in column options -> enumName βœ” should insert data with the correct enum github issues > #4147 `SQLITE_ERROR: near "-": syntax error` when use sqlite, simple-enum βœ” should not error while synchronizing when using simple-enum with sqlite github issues > #4156 QueryExpressionMap doesn't clone all values correctly βœ” should not error when the query builder has been cloned βœ” should not error when the query builder with where statement has been cloned github issues > #4185 afterLoad() subscriber interface missing additional info available on other events βœ” should invoke afterLoad() with LoadEvent github issues > #4190 Relation decorators: allow to pass string instead of typeFunction βœ” should work with one-to-one relations βœ” should work with many-to-one/one-to-many relations βœ” should work with many-to-many relations github issues > #4219 class-transformer-shim: support metadata reflection βœ” should create instances with the correct property types github issues > #4220 Fix the bug when using buffer as the key. βœ” should use the hex string format of buffer when the primary column is buffer type. github issues > #423 Cannot use Group as Table name && cannot autoSchemeSync when use alias Entity βœ” should successfully sync schema (124ms) github issues > #4277 Using cache in findAndCount and getManyAndCount returns 0 as count βœ” getManyAndCount and findAndCount should count correctly when using cacheId βœ” getManyAndCount and findAndCount should count correctly when NOT using cacheId βœ” getManyAndCount and findAndCount should count correctly when NOT using cache github issues > #433 default value (json) is not getting set in postgreSQL βœ” should successfully set default value in to JSON type column github issues > #438 how can i define unsigned column? - should correctly create and change column with UNSIGNED and ZEROFILL attributes github issues > #4410 allow custom filepath for FileLogger when no option is passed βœ” writes to the base path when logPath option is passed as a file βœ” writes to the given filename when logPath option is passed as a nested path βœ” writes to the given path github issues > #4415 allow beautify generated migrations - writes regular migration file when no option is passed - writes pretty printed file when pretty option is passed github issues > #4452 InsertQueryBuilder fails on some SQL Expressions values βœ” should be able to use sql functions github issues > #4513 CockroachDB support for onConflict βœ” should insert if no conflict βœ” should update on conflict with do update βœ” should not update on conflict with do nothing βœ” should update with orUpdate github issues > #4570 Fix PrimaryColumn decorator modifies passed option βœ” should not modify passed options to PrimaryColumn github issues > #463 saving empty string array βœ” should not return array with single empty string if empty array was saved github issues > #4630 Enum string not escaping resulting in broken migrations. βœ” should support enums of strings with apostrophes in them github issues > #4658 Renaming a column with current_timestamp(6) results in broken SQL βœ” should correctly rename column and revert rename (489ms) βœ” should correctly remove column and revert it back (857ms) github issues > #4697 Revert migrations running in reverse order. βœ” should revert migrations in the right order github issues > #47 wrong sql syntax when loading lazy relation βœ” should persist successfully and return persisted entity github issues > #4701 Duplicate migrations are executed. βœ” should throw error if there're duplicate migrations github issues > #4719 HStore with empty string values βœ” should handle HStore with empty string keys or values βœ” should not allow 'hstore injection' github issues > #4753 MySQL Replication Config broken - should connect without error when using replication mssql > add lock clause for MSSQL select with join clause βœ” should not have Lock clause βœ” should have WITH (NOLOCK) clause βœ” should have two WITH (NOLOCK) clause βœ” should have three WITH (NOLOCK) clause βœ” should have three WITH (NOLOCK) clause (without relation) βœ” should have WITH (HOLDLOCK, ROWLOCK) clause βœ” should have WITH (UPLOCK, ROWLOCK) clause βœ” should have two WITH (UPDLOCK, ROWLOCK) clause github issues > #4782 mariadb driver wants to recreate create/update date columns CURRENT_TIMESTAMP(6) === current_timestamp(6) βœ” should not want to execute migrations twice VersionUtils isGreaterOrEqual βœ” should return false when comparing invalid versions βœ” should return false when targetVersion is larger βœ” should return true when targetVersion is smaller βœ” should work with mariadb-style versions github issues > #479 orWhere breaks skip / take βœ” where expression of the skip/take should not break original where query github issues > #4842 QueryExpressionMap doesn't clone distinct property βœ” should contain correct distinct value after query builder is cloned github issues > #485 If I set the datatype of PrimaryGeneratedColumn to uuid then it is not giving the uuid to the column. βœ” should persist uuid correctly when it used as PrimaryGeneratedColumn type github issues > #4897 [MSSQL] Enum column definition removes and recreates constraint overwritting existing data βœ” should recognize model changes βœ” should not generate queries when no model changes github issues > #493 pagination should work with string primary keys βœ” should work perfectly with string primary keys (39ms) github issues > #4947 beforeUpdate subscriber entity argument is undefined βœ” if entity has been updated via repository update(), subscriber should get passed entity to change github issues > #495 Unable to set multi-column indices βœ” should successfully create indices and save an object github issues > #4956 create typeorm_metatable when running migrations. βœ” should create typeorm_metadata table when running migrations with views (865ms) βœ” should not create typeorm_metadata table when running migrations if there are no views (926ms) github issues > #4958 getRepository returns results from another Repo βœ” sql generated is for correct model github issues > #4980 (Postgres) onUpdate: 'CASCADE' doesn't work on many-to-many relation βœ” should generate onDelete: CASCADE and onUpdate: CASCADE for 'books' side of many-to-many relation βœ” should generate onDelete: NO ACTION and onUpdate: CASCADE for 'authors' side of many-to-many relation βœ” should generate onDelete: NO ACTION and onUpdate: CASCADE for foreign key pointing to Book βœ” should generate onDelete: CASCADE and onUpdate: CASCADE for foreign key pointing to Author github issues > #499 postgres DATE hydrated as DATETIME object βœ” should return date in a string format github issues > #5004 expireAfterSeconds 0 can't be passed to Index decorator βœ” should allow expireAfterSeconds 0 to be passed to Index decorator github issues > #5067 ORA-00972: identifier is too long βœ” generated parameter name is within the size constraints github issues > #5119 migration with foreign key that changes target βœ” should generate a drop and create step github issues > #512 Table name escaping in UPDATE in QueryBuilder βœ” should escape table name using driver's escape function in UPDATE github issues > #513 Incorrect time/datetime types for SQLite βœ” should create datetime column type for datetime in sqlite βœ” should persist correct type in datetime column in sqlite βœ” should create datetime column type for time in sqlite βœ” should persist correct type in datetime column in sqlite github issues > #5132: Default of -1 (minus 1) generates useless migrations` -1 (minus 1) in default value βœ” can recognize model changes βœ” does not generate when no model changes github issues > #5160 (MSSQL) DML statement cannot have any enabled triggers if the statement contains an OUTPUT clause without INTO clause βœ” should update entity model after insertion to MSSQL table with trigger βœ” should update entity model after save to MSSQL table with trigger github issues > #5174 `selectQueryBuilder.take` messes up the query when using the `ids` parameter βœ” should allow the 'ids' parameter without messing up the query when using .take github issues > #521 Attributes in UPDATE in QB arent getting replaced βœ” should replace parameters github issues > #5275 Enums with spaces are not converted properly. βœ” should correctly parse enums of strings with spaces βœ” should correctly parse non-array enums with spaces github issues > #5365 Generated Identity for Postgres 10+ βœ” should produce proper SQL for creating a table with identity column github issues > #5407 Wrong migration created because of default column value format βœ” can recognize model changes βœ” does not generate when no model changes (122ms) github issues > #5444 EntitySchema missing support for multiple joinColumns in relations βœ” Update query returns the number of affected rows github issues > #5478 Setting enumName doesn't change how migrations get generated βœ” should correctly rename enum github issues > #5501 Incorrect data loading from JSON string for column type 'simple-json' βœ” should correctly store simple-json field (40ms) βœ” should correctly retrieve simple-json field βœ” should throw an error when the data in the database is invalid github issues > #5520 save does not return generated id if object to save contains a many to one relationship with an undefined id βœ” should generate parents and childs uuid and return them github issues > #56 relationships only work when both primary keys have the same name - should persist successfully and return persisted entity github issues > #5684 eager relation skips children relations βœ” should select children of an eager relation (76ms) github issues > #5691 RelationId is too slow Cancelling nested steps due to timeout Sending interrupt signal to process Killing processes kill finished with exit code 0 make: *** [Makefile:150: deploy-typeormtest] Terminated Terminated script returned exit code 143 [Pipeline] } Cache not saved (inner-step execution failed) [Pipeline] // cache [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // timeout [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // podTemplate [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } Failed in branch Matrix - TEST_CMDS = 'make deploy-typeormtest ARGS="-x"' [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // timeout [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // podTemplate [Pipeline] End of Pipeline Timeout has been exceeded org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 4b90c80e-a26c-4c2a-9ff6-c583ef948417 Finished: ABORTED