Skip to content

Conversation

@lentzi90
Copy link
Contributor

What this PR does / why we need it:

The ClusterctlUpgradeSpec contains a BeforeEach block so it cannot be nested in an It block.

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 #

Special notes for your reviewer:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • if necessary:
    • includes documentation
    • adds unit tests

/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 Dec 12, 2022
@netlify
Copy link

netlify bot commented Dec 12, 2022

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

Name Link
🔨 Latest commit b2bdc35
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/6396e30cecd696000ae8972f
😎 Deploy Preview https://deploy-preview-1412--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 settings.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 12, 2022
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 12, 2022
@jichenjc
Copy link
Contributor

/lgtm

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

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

@tobiasgiese
Copy link
Member

tobiasgiese commented Dec 12, 2022

@lentzi90 this is not possible, see PR description of #1406. The By block MUST be inside an It block and SetEnvVar has an By inside its function.
See also https://onsi.github.io/ginkgo/#documenting-complex-specs-by

@lentzi90
Copy link
Contributor Author

@lentzi90 this is not possible, see PR description of #1406. The By block MUST be inside an It block and SetEnvVar has an By inside its function. See also https://onsi.github.io/ginkgo/#documenting-complex-specs-by

Oh now I understand. Unfortunately it is not possible to put the It there either. Maybe we can change SetEnvVar or find a different way to log things. 🤔

@tobiasgiese
Copy link
Member

Maybe we can change SetEnvVar or find a different way to log things.

Also thought about the exact same thing. But for my PR it was the easiest to fix it by putting it into the It.
You could also workaround and set the envs directly via os.SetEnv with a comment why you have todo it this way.

The ClusterctlUpgradeSpec contains a BeforeEach block so it cannot be
nested in an It block.
@lentzi90 lentzi90 force-pushed the lentzi90/fix-clusterctl-upgrade branch from 3035239 to b2bdc35 Compare December 12, 2022 08:15
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 12, 2022
@lentzi90
Copy link
Contributor Author

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

Copy link
Member

@tobiasgiese tobiasgiese left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! :)

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 12, 2022
@tobiasgiese
Copy link
Member

/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 Dec 12, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lentzi90, tobiasgiese

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 Dec 12, 2022
@tobiasgiese
Copy link
Member

/hold

waiting for pull-cluster-api-provider-openstack-e2e-full-test

@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 Dec 12, 2022
@lentzi90
Copy link
Contributor Author

pull-cluster-api-provider-openstack-e2e-full-test passed 🎉
/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 Dec 12, 2022
@k8s-ci-robot k8s-ci-robot merged commit 43c27cd into kubernetes-sigs:main Dec 12, 2022
@lentzi90 lentzi90 deleted the lentzi90/fix-clusterctl-upgrade branch December 12, 2022 10:28
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/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants