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

Automate setup of go-compatibility unit and integration variants #28892

Merged
merged 2 commits into from
Mar 2, 2023
Merged
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
5 changes: 3 additions & 2 deletions config/jobs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,9 @@ accomplish this, eg:
# from test-infra root
$ go run ./releng/config-forker \
--job-config $(pwd)/config/jobs \
--version 1.15 \
--output $(pwd)/config/jobs/kubernetes/sig-release/release-branch-jobs/1.15.yaml
--version 1.27 \
--go-version 1.20.2 \
--output $(pwd)/config/jobs/kubernetes/sig-release/release-branch-jobs/1.27.yaml
```

[prow.k8s.io]: https://prow.k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,7 @@ presubmits:
memory: 15Gi
securityContext:
privileged: true
- always_run: false
- always_run: true
optional: true
branches:
- release-1.23
Expand Down Expand Up @@ -1782,7 +1782,7 @@ presubmits:
memory: 36Gi
securityContext:
runAsUser: 2000
- always_run: false
- always_run: true
optional: true
branches:
- release-1.23
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,7 @@ presubmits:
memory: 15Gi
securityContext:
privileged: true
- always_run: false
- always_run: true
optional: true
branches:
- release-1.24
Expand Down Expand Up @@ -1602,7 +1602,7 @@ presubmits:
memory: 36Gi
securityContext:
runAsUser: 2000
- always_run: false
- always_run: true
optional: true
branches:
- release-1.24
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ presubmits:
memory: 15Gi
securityContext:
privileged: true
- always_run: false
- always_run: true
optional: true
branches:
- release-1.25
Expand Down Expand Up @@ -1612,7 +1612,7 @@ presubmits:
memory: 36Gi
securityContext:
runAsUser: 2000
- always_run: false
- always_run: true
optional: true
branches:
- release-1.25
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,7 @@ presubmits:
memory: 15Gi
securityContext:
privileged: true
- always_run: false
- always_run: true
optional: true
branches:
- release-1.26
Expand Down Expand Up @@ -1638,7 +1638,7 @@ presubmits:
requests:
cpu: "4"
memory: 36Gi
- always_run: false
- always_run: true
optional: true
branches:
- release-1.26
Expand Down
5 changes: 3 additions & 2 deletions config/jobs/kubernetes/sig-testing/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ presubmits:
memory: 15Gi
- name: pull-kubernetes-integration-go-compatibility
cluster: k8s-infra-prow-build
always_run: false
always_run: true
optional: true
decorate: true
skip_branches:
- release-\d+.\d+ # per-release job
- .* # per-release job
annotations:
fork-per-release: "true"
fork-per-release-replacements: "GO_VERSION= -> GO_VERSION={{.GoVersion}}"
testgrid-dashboards: sig-testing-canaries
description: run with GO_VERSION set to the original go version used for this branch
path_alias: k8s.io/kubernetes
Expand Down
5 changes: 3 additions & 2 deletions config/jobs/kubernetes/sig-testing/make-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,17 @@ presubmits:
- name: pull-kubernetes-unit-go-compatibility
annotations:
fork-per-release: "true"
fork-per-release-replacements: "GO_VERSION= -> GO_VERSION={{.GoVersion}}"
testgrid-dashboards: sig-testing-canaries
description: run with GO_VERSION set to the original go version used for this branch
decorate: true
cluster: k8s-infra-prow-build
skip_branches:
- release-\d+.\d+ # per-release job
- .* # per-release job
labels:
preset-service-account: "true"
optional: true
always_run: false
always_run: true
path_alias: k8s.io/kubernetes
spec:
# unit tests have no business requiring root or doing privileged operations
Expand Down
2 changes: 2 additions & 0 deletions gubernator/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ jobs:
- pull-kubernetes-e2e-kind
- pull-kubernetes-e2e-kind-ipv6
- pull-kubernetes-integration
- pull-kubernetes-integration-go-compatibility
- pull-kubernetes-node-e2e-containerd
- pull-kubernetes-typecheck
- pull-kubernetes-unit
- pull-kubernetes-unit-go-compatibility
- pull-kubernetes-verify
- pull-kubernetes-verify-govet-levee
recursive_artifacts: false
Loading