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 multi-tenancy test based on ClusterClass #3389

Merged
merged 1 commit into from
Apr 18, 2022

Conversation

pydctw
Copy link
Contributor

@pydctw pydctw commented Apr 5, 2022

What type of PR is this?
/kind feature

What this PR does / why we need it:
Add a multi-tenancy test based on ClusterClass to verify CAPA is supporting CAPI's newly added ClusterClass feature.

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

Special notes for your reviewer:
Note that unmanaged_CAPI_quick_test_cluster_class.go was renamed to
unmanaged_CAPI_quick_clusterclass_test.go as there are linter rules that
applies to test files and the assumption is that test files end with _test.go.

Checklist:

  • squashed commits
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Apr 5, 2022
@k8s-ci-robot
Copy link
Contributor

@pydctw: This issue is currently awaiting triage.

If CAPA/CAPI contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 5, 2022
@pydctw
Copy link
Contributor Author

pydctw commented Apr 5, 2022

/test ?

@k8s-ci-robot
Copy link
Contributor

@pydctw: The following commands are available to trigger required jobs:

  • /test pull-cluster-api-provider-aws-build
  • /test pull-cluster-api-provider-aws-test
  • /test pull-cluster-api-provider-aws-verify

The following commands are available to trigger optional jobs:

  • /test pull-cluster-api-provider-aws-apidiff-main
  • /test pull-cluster-api-provider-aws-e2e
  • /test pull-cluster-api-provider-aws-e2e-blocking
  • /test pull-cluster-api-provider-aws-e2e-conformance
  • /test pull-cluster-api-provider-aws-e2e-conformance-with-ci-artifacts
  • /test pull-cluster-api-provider-aws-e2e-eks

Use /test all to run the following jobs that were automatically triggered:

  • pull-cluster-api-provider-aws-apidiff-main
  • pull-cluster-api-provider-aws-build
  • pull-cluster-api-provider-aws-test
  • pull-cluster-api-provider-aws-verify

In response to this:

/test ?

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/test-infra repository.

@pydctw
Copy link
Contributor Author

pydctw commented Apr 5, 2022

/test pull-cluster-api-provider-aws-e2e

@pydctw
Copy link
Contributor Author

pydctw commented Apr 5, 2022

Submitted a PR for test-infra: kubernetes/test-infra#25874

The proposal is to create a new prow job that runs ClusterClass-based tests separately but feedback will be appreciated.

@pydctw
Copy link
Contributor Author

pydctw commented Apr 5, 2022

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 5, 2022
@pydctw pydctw force-pushed the cc-e2e-multi-tenancy branch from 3fb3957 to ff8fbe5 Compare April 5, 2022 17:57
@pydctw
Copy link
Contributor Author

pydctw commented Apr 5, 2022

/test pull-cluster-api-provider-aws-e2e

@pydctw
Copy link
Contributor Author

pydctw commented Apr 5, 2022

@sbueringer @fabriziopandini, it will be great to get your reviews esp. for the ClusterClass as I will be building more ClusterClasses based on this one.

@pydctw
Copy link
Contributor Author

pydctw commented Apr 5, 2022

The new ClusterClass test passed: https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_cluster-api-provider-aws/3389/pull-cluster-api-provider-aws-e2e/1511402911341481984

[1] • [SLOW TEST:1507.556 seconds]
[1] [unmanaged] [functional] [ClusterClass]
[1] /home/prow/go/src/sigs.k8s.io/cluster-api-provider-aws/test/e2e/suites/unmanaged/unmanaged_functional_clusterclass_test.go:38
[1]   Multitenancy test [ClusterClass]
[1]   /home/prow/go/src/sigs.k8s.io/cluster-api-provider-aws/test/e2e/suites/unmanaged/unmanaged_functional_clusterclass_test.go:50
[1]     should create cluster with nested assumed role
[1]     /home/prow/go/src/sigs.k8s.io/cluster-api-provider-aws/test/e2e/suites/unmanaged/unmanaged_functional_clusterclass_test.go:51

@pydctw
Copy link
Contributor Author

pydctw commented Apr 5, 2022

Some unrelated tests (Self Hosted Spec and Machine Pool Spec) are failing with timeout, which could be an infra issue. Will rerun the test and see what happens.
-> Updates: ok, it was a flak. Now these random failures are gone.

@pydctw
Copy link
Contributor Author

pydctw commented Apr 5, 2022

/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.

Looks good from my side. Just a few comments/ideas.

Thx for cc, it's really nice to see how ClusterClass is used in practices / works (or not :)).

Feel free to mention me on similar PRs as well, if you want to.

@pydctw pydctw force-pushed the cc-e2e-multi-tenancy branch from ff8fbe5 to d266752 Compare April 7, 2022 19:25
@pydctw
Copy link
Contributor Author

pydctw commented Apr 7, 2022

/test pull-cluster-api-provider-aws-e2e

@pydctw
Copy link
Contributor Author

pydctw commented Apr 7, 2022

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 7, 2022
@pydctw
Copy link
Contributor Author

pydctw commented Apr 7, 2022

Another flake - ignition test is failing which is not related with the code changes.
https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_cluster-api-provider-aws/3389/pull-cluster-api-provider-aws-e2e/1512164109666226176

capa-e2e: [unmanaged] [functional] Workload cluster with AWS S3 and Ignition parameter It should be creatable and deletable expand_less | 29m1s
-- | --
{ Failure /home/prow/go/src/sigs.k8s.io/cluster-api-provider-aws/test/e2e/suites/unmanaged/unmanaged_functional_test.go:1049 Timed out after 1500.000s. Expected     <bool>: false to be true /home/prow/go/pkg/mod/sigs.k8s.io/cluster-api/[email protected]/framework/controlplane_helpers.go:147}

@pydctw
Copy link
Contributor Author

pydctw commented Apr 7, 2022

/retest

@pydctw
Copy link
Contributor Author

pydctw commented Apr 11, 2022

@sedefsavas, could you review the PR? As I plan to follow a similar pattern for following ClusterClass e2e PRs, hope to get it merged it soon.

test-infra PR also needs a review but that is not blocking this PR.

@sedefsavas
Copy link
Contributor

@shivi28 volunteered to review.

Copy link
Contributor

@shivi28 shivi28 left a comment

Choose a reason for hiding this comment

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

Thanks Winnie
There is one small suggestion, else
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 13, 2022
Also, renamed unmanaged_CAPI_quick_test_cluster_class.go to
unmanaged_CAPI_quick_clusterclass_test.go as there are linter rules that
applies to test files and the assumption is that test files end with `_test.go`.
@pydctw pydctw force-pushed the cc-e2e-multi-tenancy branch from d266752 to ccb2cca Compare April 13, 2022 15:23
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 13, 2022
@pydctw
Copy link
Contributor Author

pydctw commented Apr 13, 2022

/test pull-cluster-api-provider-aws-e2e

@pydctw
Copy link
Contributor Author

pydctw commented Apr 13, 2022

Ready for the final review, @sedefsavas

@sedefsavas
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sedefsavas

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 Apr 14, 2022
@shivi28
Copy link
Contributor

shivi28 commented Apr 18, 2022

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 18, 2022
@shivi28
Copy link
Contributor

shivi28 commented Apr 18, 2022

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 18, 2022
@shivi28
Copy link
Contributor

shivi28 commented Apr 18, 2022

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 18, 2022
@k8s-ci-robot k8s-ci-robot merged commit 2c454a0 into kubernetes-sigs:main Apr 18, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.x milestone Apr 18, 2022
@pydctw pydctw deleted the cc-e2e-multi-tenancy branch November 9, 2022 17:56
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. 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.

5 participants