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

Add CAPI jobs for main latest #33288

Merged
merged 1 commit into from
Aug 28, 2024
Merged

Conversation

SD-13
Copy link
Contributor

@SD-13 SD-13 commented Aug 10, 2024

Fixes kubernetes-sigs/cluster-api#10955 to the PR description.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 10, 2024
@k8s-ci-robot k8s-ci-robot added area/config Issues or PRs related to code in /config cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/jobs sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 10, 2024
@@ -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
Copy link
Member

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.

@SD-13
Copy link
Contributor Author

SD-13 commented Aug 12, 2024

@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 "." "-" }}
Copy link
Member

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)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: periodic-cluster-api-e2e-{{ ReplaceAll $.branch "." "-" }}
- name: periodic-cluster-api-e2e-latestk8s-{{ ReplaceAll $.branch "." "-" }}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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 }}

Copy link
Contributor Author

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"
Copy link
Member

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

Copy link
Contributor Author

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 "." "-" }}
Copy link
Member

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"
Copy link
Member

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" }}

Copy link
Contributor Author

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 "." "-" }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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

Copy link
Contributor Author

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
Copy link
Member

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@SD-13 SD-13 force-pushed the e2e_main_job branch 3 times, most recently from 014cb91 to f8f9725 Compare August 25, 2024 14:03
@SD-13
Copy link
Contributor Author

SD-13 commented Aug 25, 2024

@chrischdi @sbueringer Please take another pass when you get time. Thanks!

@sbueringer
Copy link
Member

@SD-13 We'll need another rebase because of: #33367

@SD-13
Copy link
Contributor Author

SD-13 commented Aug 26, 2024

/retitle Add CAPI jobs for main latest
@sbueringer done!

@k8s-ci-robot k8s-ci-robot changed the title WIP: Add CAPI jobs for main latest Add CAPI jobs for main latest Aug 26, 2024
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 26, 2024
@sbueringer
Copy link
Member

Please add "Fixes kubernetes-sigs/cluster-api#10955" to the PR description

Copy link
Member

@sbueringer sbueringer left a 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 "." "-" }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: pull-cluster-api-e2e-latestk8s-{{ ReplaceAll $.branch "." "-" }}
- name: periodic-cluster-api-e2e-latestk8s-{{ ReplaceAll $.branch "." "-" }}

Copy link
Contributor Author

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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 ^^

Copy link
Contributor Author

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 "." "-" }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!

@SD-13
Copy link
Contributor Author

SD-13 commented Aug 26, 2024

@sbueringer pushed the changed, PTAL. Thanks!

@sbueringer
Copy link
Member

Thank you very much!

/lgtm
/assign @chrischdi
for a final review

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 26, 2024
@chrischdi
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 28, 2024
@chrischdi
Copy link
Member

Thanks for working on this @SD-13 !

@k8s-ci-robot k8s-ci-robot merged commit ecbe967 into kubernetes:master Aug 28, 2024
7 checks passed
@k8s-ci-robot
Copy link
Contributor

@SD-13: Updated the job-config configmap in namespace default at cluster test-infra-trusted using the following files:

  • key cluster-api-main-periodics.yaml using file config/jobs/kubernetes-sigs/cluster-api/cluster-api-main-periodics.yaml
  • key cluster-api-main-presubmits.yaml using file config/jobs/kubernetes-sigs/cluster-api/cluster-api-main-presubmits.yaml

In response to this:

Fixes kubernetes-sigs/cluster-api#10955 to the PR description.

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.

@SD-13 SD-13 deleted the e2e_main_job branch August 28, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/config Issues or PRs related to code in /config area/jobs cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add e2e test job for main branch that uses Kubernetes latest
4 participants