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

🐛 Consolidate and fix v1beta1 fuzzer funcs #1981

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

mdbooth
Copy link
Contributor

@mdbooth mdbooth commented Mar 28, 2024

Firstly this change consolidates common fuzzer funcs for fuzzing v1beta1 between v1alpha6 and v1alpha7.

Secondly, we fix a couple of bugs where we were generating invalid output:

In OpenStackClusterSpec we were creating a second subnet with FuzzNoCustom, which doesn't use our custom functions for generating valid output.

When generating filters we were appending a second tag after validating tags, which meant we occasionally got invalid tags. We now add tags before validation, and also add tags to all tag fields instead of just 'Tags'. We also consolidate tag validation in a FilterByNeutronTags func instead of individually for each Filter.

Fixes: #1980

/hold

Firstly this change consolidates common fuzzer funcs for fuzzing v1beta1
between v1alpha6 and v1alpha7.

Secondly, we fix a couple of bugs where we were generating invalid
output:

In OpenStackClusterSpec we were creating a second subnet with
FuzzNoCustom, which doesn't use our custom functions for generating
valid output.

When generating filters we were appending a second tag after
validating tags, which meant we occasionally got invalid tags. We now
add tags before validation, and also add tags to all tag fields instead
of just 'Tags'. We also consolidate tag validation in a
FilterByNeutronTags func instead of individually for each Filter.
@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 Mar 28, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 requested review from dulek and EmilienM March 28, 2024 11:34
@k8s-ci-robot k8s-ci-robot added 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. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 28, 2024
Copy link

netlify bot commented Mar 28, 2024

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

Name Link
🔨 Latest commit 26e8c07
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/660555d9555e1200088e0737
😎 Deploy Preview https://deploy-preview-1981--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.

@huxcrux
Copy link
Contributor

huxcrux commented Mar 28, 2024

/lgtm

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

mdbooth commented Mar 28, 2024

/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 Mar 28, 2024
@k8s-ci-robot k8s-ci-robot merged commit eace85b into kubernetes-sigs:main Mar 28, 2024
9 checks passed
@mdbooth mdbooth deleted the issue1980 branch March 28, 2024 12:44
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
Archived in project
Development

Successfully merging this pull request may close these issues.

Fuzzer tests occasionally generate invalid filters
3 participants