-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add CAPI jobs for main latest #33288
Conversation
@@ -275,3 +275,61 @@ periodics: | |||
testgrid-tab-name: capi-e2e-conformance-ci-latest-main | |||
testgrid-alert-email: [email protected] | |||
testgrid-num-failures-to-alert: "4" | |||
- name: periodic-cluster-api-e2e-main-latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: you should add the jobs to https://github.com/SD-13/k8s-test-infra/blob/e2e_main_job/config/jobs/kubernetes-sigs/cluster-api/templates/cluster-api-periodics.yaml.tpl
and https://github.com/SD-13/k8s-test-infra/blob/e2e_main_job/config/jobs/kubernetes-sigs/cluster-api/templates/cluster-api-presubmits.yaml.tpl
instead and use
TEST_INFRA_DIR=../../k8s.io/test-infra make generate-test-infra-prowjobs
to generate this file 🙂 . (note: adjust the TEST_INFRA_DIR
according to where the repo is for you.
@chrischdi Thanks for correcting me. I tried to reflect your suggestions, PTAL when you get time. Thanks! |
@@ -274,4 +274,61 @@ periodics: | |||
testgrid-tab-name: capi-e2e-conformance-ci-latest-{{ ReplaceAll $.branch "." "-" }} | |||
testgrid-alert-email: [email protected] | |||
testgrid-num-failures-to-alert: "4" | |||
- name: periodic-cluster-api-e2e-{{ ReplaceAll $.branch "." "-" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change this name so we end up with e.g. "pull-cluster-api-e2e-latestk8s-main" (similar for the periodic)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: periodic-cluster-api-e2e-{{ ReplaceAll $.branch "." "-" }} | |
- name: periodic-cluster-api-e2e-latestk8s-{{ ReplaceAll $.branch "." "-" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: periodic-cluster-api-e2e-{{ ReplaceAll $.branch "." "-" }} | |
{{ if eq $.branch "main" }} | |
- name: periodic-cluster-api-e2e-{{ ReplaceAll $.branch "." "-" }} |
And further down at the end of the new job
{{ end }}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added, thanks for clarifying that @chrischdi
@@ -274,4 +274,61 @@ periodics: | |||
testgrid-tab-name: capi-e2e-conformance-ci-latest-{{ ReplaceAll $.branch "." "-" }} | |||
testgrid-alert-email: [email protected] | |||
testgrid-num-failures-to-alert: "4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add an if/else around it, so that it only gets generated for the main branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -274,4 +274,61 @@ periodics: | |||
testgrid-tab-name: capi-e2e-conformance-ci-latest-{{ ReplaceAll $.branch "." "-" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rebase onto the latest commit on the master branch (so that the prowjob gen file is up-to-date)
- name: GINKGO_SKIP | ||
value: "\\[Conformance\\]" | ||
- name: KUBERNETES_VERSION_MANAGEMENT | ||
value: "ci/latest-1.31" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[After rebase]
Let's try to generate these values based on the prowjob gen file
I think we should be able to calculate these values the same way as we do it here: pull-cluster-api-e2e-upgrade-{{ ReplaceAll (last $.config.Upgrades).From "." "-" }}-{{ ReplaceAll (last $.config.Upgrades).To "." "-" }}-{{ ReplaceAll $.branch "." "-" }}
KUBERNETES_VERSION_MANAGEMENT, KUBERNETES_VERSION. KUBERNETES_VERSION_UPGRADE_TO should be {{ index (index $.versions ((last $.config.Upgrades).To)) "k8sRelease" }}
KUBERNETES_VERSION_UPGRADE_FROM should be {{ index (index $.versions ((last $.config.Upgrades).From)) "k8sRelease" }}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -453,4 +453,61 @@ presubmits: | |||
annotations: | |||
testgrid-dashboards: sig-cluster-lifecycle-cluster-api{{ if eq $.branch "main" | not -}}{{ TrimPrefix $.branch "release" }}{{- end }} | |||
testgrid-tab-name: capi-pr-e2e-conformance-ci-latest-{{ ReplaceAll $.branch "." "-" }} | |||
- name: periodic-cluster-api-upgrade-{{ ReplaceAll (last $.config.Upgrades).From "." "-" }}-{{ ReplaceAll (last $.config.Upgrades).To "." "-" }}-{{ ReplaceAll $.branch "." "-" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: periodic-cluster-api-upgrade-{{ ReplaceAll (last $.config.Upgrades).From "." "-" }}-{{ ReplaceAll (last $.config.Upgrades).To "." "-" }}-{{ ReplaceAll $.branch "." "-" }} | |
- name: pull-cluster-api-e2e-{{ ReplaceAll (last $.config.Upgrades).From "." "-" }}-{{ ReplaceAll (last $.config.Upgrades).To "." "-" }}-{{ ReplaceAll $.branch "." "-" }} |
Please compare for the suffix with the pull- job
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
decorate: true | ||
decoration_config: | ||
timeout: 180m | ||
path_alias: sigs.k8s.io/cluster-api |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move this down below branches (for easier diff with the regular e2e presubmit job)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
config/jobs/kubernetes-sigs/cluster-api/templates/cluster-api-presubmits.yaml.tpl
Outdated
Show resolved
Hide resolved
014cb91
to
f8f9725
Compare
@chrischdi @sbueringer Please take another pass when you get time. Thanks! |
/retitle Add CAPI jobs for main latest |
Please add "Fixes kubernetes-sigs/cluster-api#10955" to the PR description |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx! Last nits
@@ -275,3 +275,62 @@ periodics: | |||
testgrid-alert-email: [email protected] | |||
testgrid-num-failures-to-alert: "4" | |||
{{ end -}} | |||
{{ if eq $.branch "main" }} | |||
- name: pull-cluster-api-e2e-latestk8s-{{ ReplaceAll $.branch "." "-" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: pull-cluster-api-e2e-latestk8s-{{ ReplaceAll $.branch "." "-" }} | |
- name: periodic-cluster-api-e2e-latestk8s-{{ ReplaceAll $.branch "." "-" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
@@ -411,3 +411,55 @@ presubmits: | |||
annotations: | |||
testgrid-dashboards: sig-cluster-lifecycle-cluster-api | |||
testgrid-tab-name: capi-pr-e2e-conformance-ci-latest-main | |||
|
|||
- name: pull-cluster-api-e2e-latestk8s-1-31-1-32-main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: pull-cluster-api-e2e-latestk8s-1-31-1-32-main | |
- name: pull-cluster-api-e2e-latestk8s-main |
We have to update the template so this looks like ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated!
@@ -454,3 +454,56 @@ presubmits: | |||
testgrid-dashboards: sig-cluster-lifecycle-cluster-api{{ if eq $.branch "main" | not -}}{{ TrimPrefix $.branch "release" }}{{- end }} | |||
testgrid-tab-name: capi-pr-e2e-conformance-ci-latest-{{ ReplaceAll $.branch "." "-" }} | |||
{{ end -}} | |||
{{ if eq $.branch "main" }} | |||
- name: pull-cluster-api-e2e-latestk8s-{{ ReplaceAll (last $.config.Upgrades).From "." "-" }}-{{ ReplaceAll (last $.config.Upgrades).To "." "-" }}-{{ ReplaceAll $.branch "." "-" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: pull-cluster-api-e2e-latestk8s-{{ ReplaceAll (last $.config.Upgrades).From "." "-" }}-{{ ReplaceAll (last $.config.Upgrades).To "." "-" }}-{{ ReplaceAll $.branch "." "-" }} | |
- name: pull-cluster-api-e2e-latestk8s-{{ ReplaceAll $.branch "." "-" }} |
(See related comment in cluster-api-main-presubmits.yaml)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
@sbueringer pushed the changed, PTAL. Thanks! |
Thank you very much! /lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrischdi, SD-13 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks for working on this @SD-13 ! |
@SD-13: Updated the
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Fixes kubernetes-sigs/cluster-api#10955 to the PR description.