Skip to content

Commit

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

Close #3344

Signed-off-by: wuhuizuo <[email protected]>
  • Loading branch information
wuhuizuo authored Feb 6, 2025
1 parent b2d3952 commit ad518df
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions prow-jobs/pingcap/tidb-binlog/latest-presubmits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,43 @@ presubmits:
operator: In
values:
- amd64
- <<: *brancher
name: pull-unit-test
agent: kubernetes
cluster: gcp-prow-ksyun
decorate: true # need add this.
skip_if_only_changed: *skip_if_only_changed
context: idc-jenkins-ci-tidb-binlog/unit-test
spec:
containers:
- name: build
image: ghcr.io/pingcap-qe/ci/base:v2024.10.8-81-gec616ff-go1.21
command: [bash, -ce]
args:
- |
make 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"
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 ad518df

Please sign in to comment.