Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(pingcap/tidb-binlog): refactor integration-test job to prow style #3372

Merged
merged 1 commit into from
Feb 6, 2025
Merged
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
84 changes: 83 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,85 @@ 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
command: [bash, -ce]
args:
- |
echo "TODO: start zookeeper"
resources:
requests:
memory: 4Gi
cpu: "2"
- name: kafka
image: hub.pingcap.net/jenkins/kafka
command: [bash, -ce]
args:
- |
echo "TODO: start zookeeper"
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