Skip to content

Commit

Permalink
refactor(pingcap/tidb-binlog): refactor integration-test job to prow …
Browse files Browse the repository at this point in the history
…style

Signed-off-by: wuhuizuo <[email protected]>
  • Loading branch information
wuhuizuo committed Feb 6, 2025
1 parent ad518df commit 0d3e741
Showing 1 changed file with 75 additions and 1 deletion.
76 changes: 75 additions & 1 deletion prow-jobs/pingcap/tidb-binlog/latest-presubmits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ presubmits:
spec:
containers:
- name: build
image: ghcr.io/pingcap-qe/ci/base:v2024.10.8-81-gec616ff-go1.21
image: hub.pingcap.net/jenkins/centos7_golang-1.21:latest
command: [bash, -ce]
args:
- |
Expand Down Expand Up @@ -130,3 +130,77 @@ presubmits:
operator: In
values:
- amd64
- <<: *brancher
name: wip-pull-integration-test # WIP
agent: kubernetes
cluster: gcp-prow-ksyun
decorate: true # need add this.
always_run: false
optional: true
# skip_if_only_changed: *skip_if_only_changed
# context: idc-jenkins-ci-tidb-binlog/integration-test
spec:
containers:
- name: build
image: ghcr.io/pingcap-qe/ci/base:v2024.10.8-81-gec616ff-go1.21
command: [bash, -ce]
args:
- |
make build
ls -l ./bin && mv ./bin binlog_ghpr_integration/bin
hostname
docker ps || true
KAFKA_ADDRS=127.0.0.1:9092 make integration-test
env:
- name: GO_PROXY
value: http://goproxy.apps.svc,direct
- name: GOMODCACHE
value: /share/go/pkg/mod
volumeMounts:
- name: gomod-cache
mountPath: /share/go/pkg/mod
resources:
limits:
memory: 8Gi
cpu: "4"
- name: zookeeper
image: hub.pingcap.net/jenkins/zookeeper
resources:
requests:
memory: 4Gi
cpu: "2"
- name: kafka
image: hub.pingcap.net/jenkins/kafka
env:
- name: KAFKA_MESSAGE_MAX_BYTES
value: "1073741824"
- name: KAFKA_REPLICA_FETCH_MAX_BYTES
value: "1073741824"
- name: KAFKA_ADVERTISED_PORT
value: "9092"
- name: KAFKA_ADVERTISED_HOST_NAME
value: "127.0.0.1"
- name: KAFKA_BROKER_ID
value: "1"
- name: ZK
value: "zk"
- name: KAFKA_ZOOKEEPER_CONNECT
value: "localhost:2181"
resources:
requests:
memory: 4Gi
cpu: "2"

volumes:
- name: gomod-cache
persistentVolumeClaim:
claimName: gomod-cache
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64

0 comments on commit 0d3e741

Please sign in to comment.