Skip to content

Commit

Permalink
Merge pull request #2975 from xrstf/add-prowjobs
Browse files Browse the repository at this point in the history
🌱 Add Prowjobs
  • Loading branch information
kcp-ci-bot authored Jun 6, 2023
2 parents d577569 + 0da5e54 commit b4f6760
Show file tree
Hide file tree
Showing 3 changed files with 180 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .ci-operator.yaml

This file was deleted.

180 changes: 180 additions & 0 deletions .prow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
presubmits:
- name: pull-kcp-verify
always_run: true
decorate: true
clone_uri: "https://github.com/kcp-dev/kcp"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
command:
- make
- verify-boilerplate
- verify-modules
- verify-k8s-deps
- verify-imports
resources:
requests:
memory: 1Gi
cpu: 1

- name: pull-kcp-verify-codegen
always_run: true
decorate: true
clone_uri: "https://github.com/kcp-dev/kcp"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
command:
- make
- verify-codegen
resources:
requests:
memory: 1Gi
cpu: 1

- name: pull-kcp-lint
always_run: true
decorate: true
clone_uri: "https://github.com/kcp-dev/kcp"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
command:
- make
- lint
resources:
requests:
memory: 4Gi
cpu: 2

- name: pull-kcp-test-unit
always_run: true
decorate: true
clone_uri: "https://github.com/kcp-dev/kcp"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
command:
- make
- test
env:
- name: USE_GOTESTSUM
value: '1'
resources:
requests:
memory: 4Gi
cpu: 2

- name: pull-kcp-test-e2e
always_run: true
decorate: true
clone_uri: "https://github.com/kcp-dev/kcp"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
command:
- ./hack/run-with-prometheus.sh
- make
- test-e2e
env:
- name: SUITES
value: control-plane
- name: USE_GOTESTSUM
value: '1'
- name: KUBE_CACHE_MUTATION_DETECTOR
value: '1'
- name: E2E_PARALLELISM
value: '3'
resources:
requests:
memory: 4Gi
cpu: 3

- name: pull-kcp-test-e2e-multiple-runs
always_run: true
decorate: true
clone_uri: "https://github.com/kcp-dev/kcp"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
command:
- ./hack/run-with-prometheus.sh
- make
- test-e2e
env:
- name: SUITES
value: control-plane
- name: USE_GOTESTSUM
value: '1'
- name: KUBE_CACHE_MUTATION_DETECTOR
value: '1'
- name: COUNT
value: '3'
- name: E2E_PARALLELISM
value: '3'
resources:
requests:
memory: 4Gi
cpu: 3

- name: pull-kcp-test-e2e-shared
always_run: true
decorate: true
clone_uri: "https://github.com/kcp-dev/kcp"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
command:
- ./hack/run-with-prometheus.sh
- make
- test-e2e-shared-minimal
env:
- name: SUITES
value: control-plane
- name: USE_GOTESTSUM
value: '1'
- name: KUBE_CACHE_MUTATION_DETECTOR
value: '1'
resources:
requests:
memory: 4Gi
cpu: 3

- name: pull-kcp-test-e2e-sharded
always_run: true
decorate: true
clone_uri: "https://github.com/kcp-dev/kcp"
labels:
preset-goproxy: "true"
spec:
containers:
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
command:
- ./hack/run-with-prometheus.sh
- make
- test-e2e-sharded-minimal
env:
- name: SUITES
value: control-plane
- name: USE_GOTESTSUM
value: '1'
- name: KUBE_CACHE_MUTATION_DETECTOR
value: '1'
resources:
requests:
memory: 4Gi
cpu: 3
1 change: 0 additions & 1 deletion hack/verify-go-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ set -o pipefail

VERSION=$(grep "go 1." go.mod | sed 's/go //')

grep "tag: \"" .ci-operator.yaml | { ! grep -v "${VERSION}"; } || { echo "Wrong go version in .ci-operator.yaml, expected ${VERSION}"; exit 1; }
grep "FROM .* golang:" Dockerfile | { ! grep -v "${VERSION}"; } || { echo "Wrong go version in Dockerfile, expected ${VERSION}"; exit 1; }
grep -w "go-version:" .github/workflows/*.yaml | { ! grep -v "go-version: v${VERSION}"; } || { echo "Wrong go version in .github/workflows/*.yaml, expected ${VERSION}"; exit 1; }

Expand Down

0 comments on commit b4f6760

Please sign in to comment.