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

🐛 e2e: bastion tests #1822

Merged
merged 1 commit into from
Feb 26, 2024
Merged

Conversation

EmilienM
Copy link
Contributor

@EmilienM EmilienM commented Jan 11, 2024

What this PR does / why we need it:

Deploying a bastion consumes resources so we now do it in its own test.
From now, the rest of the tests won't have a bastion node.

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 #1821

Copy link

netlify bot commented Jan 11, 2024

Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!

Name Link
🔨 Latest commit 4ff2cf8
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/65d75cdd99e7a200098885b3
😎 Deploy Preview https://deploy-preview-1822--kubernetes-sigs-cluster-api-openstack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 11, 2024
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 11, 2024
@EmilienM EmilienM changed the title e2e: deploy a bastion in a single test (multi-az) 🐛 e2e: deploy a bastion in a single test (multi-az) Jan 11, 2024
@EmilienM
Copy link
Contributor Author

/cc @lentzi90

@EmilienM
Copy link
Contributor Author

/test pull-cluster-api-provider-openstack-e2e-full-test

@mdbooth
Copy link
Contributor

mdbooth commented Jan 11, 2024

I was thinking of an entirely separate and more complete Bastion test. It would, e.g.:

  • Create a Bastion, ensure it's created
  • Redefine the Bastion, ensure it's rebuilt
  • Remove the Bastion, ensure it's removed

It could run against a cluster with a single control plane node and no workers.

@EmilienM
Copy link
Contributor Author

/hold
ok I can work on that.

@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 Jan 11, 2024
@EmilienM EmilienM changed the title 🐛 e2e: deploy a bastion in a single test (multi-az) 🐛 e2e: deploy a bastion in its own test Jan 11, 2024
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 11, 2024
@EmilienM EmilienM marked this pull request as draft January 12, 2024 13:29
@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jan 12, 2024
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 15, 2024
@EmilienM
Copy link
Contributor Author

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

@EmilienM EmilienM marked this pull request as ready for review February 20, 2024 04:42
@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 Feb 20, 2024
@EmilienM EmilienM changed the title 🐛 e2e: deploy a bastion in its own test 🐛 e2e: bastion tests Feb 20, 2024
@EmilienM EmilienM force-pushed the issue_1821 branch 9 times, most recently from 00efecd to 20351c9 Compare February 21, 2024 18:27
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 21, 2024
Copy link
Contributor

@mdbooth mdbooth left a comment

Choose a reason for hiding this comment

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

NICE! Some suggestions inline. From experience, adding the failure descriptions is important in practise, so I'd be grateful if you could add those.

I wondered if this should be its own top-level test, but given the issues we've been having with CI capacity I think adding it to an existing test is pragmatic.

One more thing: I think we also support modification of a bastion instance in-place. I believe we store a hash of the spec, and if it changes we delete and recreate the bastion automatically with the new spec. Assuming my memory is serving me well it would be good to have a test for that, too, but I'd be happy to have it either in this or a separate PR.

test/e2e/suites/e2e/e2e_test.go Show resolved Hide resolved
test/e2e/suites/e2e/e2e_test.go Outdated Show resolved Hide resolved
test/e2e/suites/e2e/e2e_test.go Show resolved Hide resolved
test/e2e/suites/e2e/e2e_test.go Show resolved Hide resolved
test/e2e/suites/e2e/e2e_test.go Show resolved Hide resolved
test/e2e/suites/e2e/e2e_test.go Outdated Show resolved Hide resolved
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: EmilienM, mdbooth

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 Feb 22, 2024
Copy link
Contributor

@lentzi90 lentzi90 left a comment

Choose a reason for hiding this comment

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

Very nice!

test/e2e/suites/e2e/e2e_test.go Outdated Show resolved Hide resolved
@EmilienM
Copy link
Contributor Author

One more thing: I think we also support modification of a bastion instance in-place. I believe we store a hash of the spec, and if it changes we delete and recreate the bastion automatically with the new spec. Assuming my memory is serving me well it would be good to have a test for that, too, but I'd be happy to have it either in this or a separate PR.

No, unfortunately this doesn't work this way (yet): #1866

@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Feb 22, 2024

@EmilienM: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cluster-api-provider-openstack-e2e-full-test 1fba612 link false /test pull-cluster-api-provider-openstack-e2e-full-test

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

Copy link
Contributor

@lentzi90 lentzi90 left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 23, 2024
@EmilienM
Copy link
Contributor Author

/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 Feb 26, 2024
@k8s-ci-robot k8s-ci-robot merged commit fd64e36 into kubernetes-sigs:main Feb 26, 2024
9 checks passed
@pierreprinetti pierreprinetti deleted the issue_1821 branch October 16, 2024 12:10
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. 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
Status: Done
Development

Successfully merging this pull request may close these issues.

e2e: we should separate bastion tests
4 participants