Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// REF: https://<your-jenkins-server>/plugin/job-dsl/api-viewer/index.html
// For trunk and latest release branches.
pipelineJob('pingcap/tiflow/pull_dm_compatibility_test_next_gen') {
logRotator {
daysToKeep(30)
}
parameters {
// Ref: https://docs.prow.k8s.io/docs/jobs/#job-environment-variables
stringParam("BUILD_ID")
stringParam("PROW_JOB_ID")
stringParam("JOB_SPEC")
}
properties {
githubProjectUrl("https://github.com/pingcap/tiflow")
}

definition {
cpsScm {
lightweight(true)
scriptPath("pipelines/pingcap/tiflow/latest/pull_dm_compatibility_test_next_gen.groovy")
scm {
git{
remote {
url('https://github.com/PingCAP-QE/ci.git')
}
branch('main')
extensions {
cloneOptions {
depth(1)
shallow(true)
timeout(5)
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// REF: https://<your-jenkins-server>/plugin/job-dsl/api-viewer/index.html
// For trunk and latest release branches.
pipelineJob('pingcap/tiflow/pull_dm_integration_test_next_gen') {
logRotator {
daysToKeep(30)
}
parameters {
// Ref: https://docs.prow.k8s.io/docs/jobs/#job-environment-variables
stringParam("BUILD_ID")
stringParam("PROW_JOB_ID")
stringParam("JOB_SPEC")
}
properties {
githubProjectUrl("https://github.com/pingcap/tiflow")
}

definition {
cpsScm {
lightweight(true)
scriptPath("pipelines/pingcap/tiflow/latest/pull_dm_integration_test_next_gen.groovy")
scm {
git{
remote {
url('https://github.com/PingCAP-QE/ci.git')
}
branch('main')
extensions {
cloneOptions {
depth(1)
shallow(true)
timeout(5)
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
apiVersion: v1
kind: Pod
spec:
securityContext:
fsGroup: 1000
initContainers:
- name: init-mysql-config
image: "hub.pingcap.net/jenkins/rocky8_golang-1.25:latest"
command:
- sh
- -c
- |
echo "[client]" > /mysql-config/.my.cnf
echo "ssl-mode=DISABLED" >> /mysql-config/.my.cnf
volumeMounts:
- mountPath: "/mysql-config"
name: "mysql-config-volume"
containers:
- name: golang
image: "hub.pingcap.net/jenkins/rocky8_golang-1.25:latest"
tty: true
resources:
requests:
memory: 12Gi
cpu: "4"
limits:
memory: 16Gi
cpu: "6"
volumeMounts:
- mountPath: "/home/jenkins/.my.cnf"
name: "mysql-config-volume"
subPath: ".my.cnf"
- name: mysql1
image: 'hub.pingcap.net/jenkins/mysql:5.7'
tty: true
resources:
limits:
memory: 4Gi
cpu: "2"
env:
- name: MYSQL_ROOT_PASSWORD
value: '123456'
args:
- "--ssl=ON"
- "--log-bin"
- "--binlog-format=ROW"
- "--enforce-gtid-consistency=ON"
- "--gtid-mode=ON"
- "--server-id=1"
- "--default-authentication-plugin=mysql_native_password"
- name: mysql2
image: 'hub.pingcap.net/jenkins/mysql:5.7'
tty: true
resources:
limits:
memory: 4Gi
cpu: "2"
env:
- name: MYSQL_ROOT_PASSWORD
value: '123456'
- name: MYSQL_TCP_PORT
value: '3307'
args:
- "--ssl=ON"
- "--log-bin"
- "--binlog-format=ROW"
- "--enforce-gtid-consistency=ON"
- "--gtid-mode=ON"
- "--server-id=1"
- "--default-authentication-plugin=mysql_native_password"
- name: net-tool
image: hub.pingcap.net/jenkins/network-multitool
tty: true
resources:
limits:
memory: 128Mi
cpu: 100m
- name: report
image: hub.pingcap.net/jenkins/python3-requests:latest
tty: true
resources:
limits:
memory: 256Mi
cpu: 100m
- name: utils
image: ghcr.io/pingcap-qe/cd/utils/release:v2025.10.12-7-gfdd779c
tty: true
resources:
requests:
memory: 256Mi
cpu: 100m
limits:
cpu: "1"
memory: 4Gi
volumes:
- name: mysql-config-volume
emptyDir: {}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
apiVersion: v1
kind: Pod
spec:
securityContext:
fsGroup: 1000
initContainers:
- name: init-mysql-config
image: "hub.pingcap.net/jenkins/rocky8_golang-1.25:latest"
command:
- sh
- -c
- |
echo "[client]" > /mysql-config/.my.cnf
echo "ssl-mode=DISABLED" >> /mysql-config/.my.cnf
volumeMounts:
- mountPath: "/mysql-config"
name: "mysql-config-volume"
containers:
- name: golang
image: "hub.pingcap.net/jenkins/rocky8_golang-1.23:tini"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The golang container is using Go 1.23 (rocky8_golang-1.23:tini), which is inconsistent with the init-mysql-config container in this pod (line 8) and the golang container in the compatibility test pod, both of which use Go 1.25. For the 'next-gen' CI environment, it is recommended to use a consistent Go version, preferably 1.25.

      image: "hub.pingcap.net/jenkins/rocky8_golang-1.25:latest"

tty: true
args:
- cat
resources:
requests:
memory: 12Gi
cpu: "4"
limits:
memory: 16Gi
cpu: "6"
volumeMounts:
- mountPath: "/home/jenkins/.my.cnf"
name: "mysql-config-volume"
subPath: ".my.cnf"
- name: mysql1
image: "hub.pingcap.net/jenkins/mysql:5.7"
tty: true
resources:
limits:
memory: 4Gi
cpu: "2"
env:
- name: MYSQL_ROOT_PASSWORD
value: "123456"
args:
- "--ssl=ON"
- "--log-bin"
- "--binlog-format=ROW"
- "--enforce-gtid-consistency=ON"
- "--gtid-mode=ON"
- "--server-id=1"
- "--default-authentication-plugin=mysql_native_password"
- name: mysql2
image: "registry-mirror.pingcap.net/library/mysql:8.0.21"
tty: true
resources:
limits:
memory: 4Gi
cpu: "2"
env:
- name: MYSQL_ROOT_PASSWORD
value: "123456"
- name: MYSQL_TCP_PORT
value: "3307"
args:
- "--ssl=ON"
- "--log-bin"
- "--binlog-format=ROW"
- "--enforce-gtid-consistency=ON"
- "--gtid-mode=ON"
- "--server-id=1"
- "--default-authentication-plugin=mysql_native_password"
- name: net-tool
image: hub.pingcap.net/jenkins/network-multitool
tty: true
resources:
limits:
memory: 128Mi
cpu: 100m
- name: report
image: hub.pingcap.net/jenkins/python3-requests:latest
tty: true
resources:
limits:
memory: 256Mi
cpu: 100m
- name: utils
image: ghcr.io/pingcap-qe/cd/utils/release:v2025.10.12-7-gfdd779c
tty: true
resources:
requests:
memory: 256Mi
cpu: 100m
limits:
cpu: "1"
memory: 4Gi
volumes:
- name: mysql-config-volume
emptyDir: {}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
Loading