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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃尡 Follow-up fixes: Add MachinePools to Runtime SDK and Rollout tests #9719

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

willie-yao
Copy link
Contributor

What this PR does / why we need it:
This PR follows up #9703 with fixes listed here: #9703 (review)

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

/area testing

@k8s-ci-robot k8s-ci-robot added area/testing Issues or PRs related to testing cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 14, 2023
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Nov 14, 2023
@willie-yao
Copy link
Contributor Author

/test pull-cluster-api-e2e-full-main

1 similar comment
@willie-yao
Copy link
Contributor Author

/test pull-cluster-api-e2e-full-main

@willie-yao willie-yao force-pushed the fix-mp-cc-e2e branch 2 times, most recently from ce8bf21 to 957c082 Compare November 14, 2023 20:59
@willie-yao
Copy link
Contributor Author

/test pull-cluster-api-e2e-full-main

@willie-yao
Copy link
Contributor Author

/retest

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 for the quick follow-up PR!

test/e2e/clusterclass_changes.go Outdated Show resolved Hide resolved
test/e2e/clusterclass_changes_test.go Outdated Show resolved Hide resolved
test/e2e/clusterclass_rollout.go Outdated Show resolved Hide resolved
test/e2e/clusterclass_rollout.go Outdated Show resolved Hide resolved
test/e2e/clusterclass_rollout.go Show resolved Hide resolved
test/e2e/clusterclass_rollout.go Outdated Show resolved Hide resolved
test/e2e/clusterclass_rollout.go Outdated Show resolved Hide resolved
test/e2e/clusterclass_rollout.go Show resolved Hide resolved
@willie-yao
Copy link
Contributor Author

/test pull-cluster-api-e2e-full-main

@willie-yao
Copy link
Contributor Author

/retest

test/e2e/clusterclass_changes.go Outdated Show resolved Hide resolved
test/e2e/clusterclass_rollout.go Show resolved Hide resolved
test/e2e/clusterclass_rollout.go Outdated Show resolved Hide resolved
test/e2e/clusterclass_rollout.go Outdated Show resolved Hide resolved
@sbueringer
Copy link
Member

sbueringer commented Nov 16, 2023

Let's also run e2e-full

@willie-yao
Copy link
Contributor Author

/test pull-cluster-api-e2e-full-main

@willie-yao
Copy link
Contributor Author

/retest

@@ -186,7 +186,7 @@ func ClusterClassRolloutSpec(ctx context.Context, inputGetter func() ClusterClas
},
Copy link
Member

Choose a reason for hiding this comment

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

Based on e2e-full we're checking for MD instead of MP somewhere in the new MP validations:

key "machinedeployment.clusters.x-k8s.io/revision" does not exist in map map[Cluster.topology.machinePool.annotation:Cluster.topology.machinePool.annotationValue ClusterClass.machinePool.annotation:ClusterClass.machinePool.annotationValue]

(I assume it's only surfaced on this PR, because now we're actually validating :))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks like the error happens here, right after applying the cluster template. I think MachineDeployment should exist in this case so I'm wondering what happened here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah I think it's due to the lack of a revision annotation for MachinePools like it does for MachineDeployments. Removing this without() should fix it. https://github.com/willie-yao/cluster-api/blob/fix-mp-cc-e2e/test/e2e/clusterclass_rollout.go#L647

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good. Looks like we now hit another similar case

kubectl.kubernetes.io/last-applied-configuration

Copy link
Member

Choose a reason for hiding this comment

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

I think both InfraMachinePool and BootstrapConfig of a MachinePool don't have the last-applied-configuration annotation. So we can drop l.695 & l.719

Copy link
Contributor

Choose a reason for hiding this comment

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

@sbueringer Willie is out sick today so I pushed this change to the branch to speed up getting test signal in case we want to get this in before cutting the RC

Copy link
Member

Choose a reason for hiding this comment

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

Thx!! I squashed & added co-authored-by

@sbueringer
Copy link
Member

sbueringer commented Nov 17, 2023

@willie-yao @CecileRobertMichon +/- getting e2e-full green lgtm from my side, if you want to merge before the weekend.

@willie-yao
Copy link
Contributor Author

/test pull-cluster-api-e2e-full-main

2 similar comments
@CecileRobertMichon
Copy link
Contributor

/test pull-cluster-api-e2e-full-main

@sbueringer
Copy link
Member

/test pull-cluster-api-e2e-full-main

@sbueringer
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 21, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 8891fe8ddc2ad9275aa93139edbdd017482795ae

@sbueringer sbueringer force-pushed the fix-mp-cc-e2e branch 2 times, most recently from 37f7fb7 to c7eb3c3 Compare November 21, 2023 10:32
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 21, 2023
Co-authored-by: Cecile Robert-Michon <cecilerobertm@gmail.com>
@sbueringer
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 21, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 8b6a4fc42e2de899da1f20546c974c20710fde51

@sbueringer
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbueringer

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 Nov 21, 2023
@k8s-ci-robot k8s-ci-robot merged commit 9644e46 into kubernetes-sigs:main Nov 21, 2023
20 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.6 milestone Nov 21, 2023
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/testing Issues or PRs related to testing 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. 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.

None yet

4 participants