Skip to content

[WIP] ✨ Use randfill for Fuzzing #12185

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

Closed
wants to merge 1 commit into from

Conversation

sivchari
Copy link
Member

@sivchari sivchari commented May 10, 2025

What this PR does / why we need it:

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

Signed-off-by: sivchari <shibuuuu5@gmail.com>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 10, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign vincepri for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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 enxebre and JoelSpeed May 10, 2025 11:30
@k8s-ci-robot
Copy link
Contributor

This PR is currently missing an area label, which is used to identify the modified component when generating release notes.

Area labels can be added by org members by writing /area ${COMPONENT} in a comment

Please see the labels list for possible areas.

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-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added do-not-merge/needs-area PR is missing an area label size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 10, 2025
@k8s-ci-robot
Copy link
Contributor

@sivchari: The following tests 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-verify-main fb3f27c link true /test pull-cluster-api-verify-main
pull-cluster-api-build-main fb3f27c link true /test pull-cluster-api-build-main
pull-cluster-api-test-main fb3f27c link true /test pull-cluster-api-test-main
pull-cluster-api-apidiff-main fb3f27c link false /test pull-cluster-api-apidiff-main
pull-cluster-api-e2e-blocking-main fb3f27c link true /test pull-cluster-api-e2e-blocking-main

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

@sivchari sivchari changed the title ✨ Use randfill for Fuzzing [WIP] ✨ Use randfill for Fuzzing May 10, 2025
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 10, 2025
@@ -42,18 +42,20 @@ require (
google.golang.org/grpc v1.67.3
k8s.io/api v0.32.3
k8s.io/apiextensions-apiserver v0.32.3
k8s.io/apimachinery v0.32.3
k8s.io/apimachinery v0.33.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have an in-flight PR to update all the deps to 0.33? We probably want to do this in tandem.

Perhaps we hold this until the 1.33 updates have gone through

Copy link
Member

@sbueringer sbueringer May 12, 2025

Choose a reason for hiding this comment

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

Yup. We'll do the Go 1.24 and CR bump before. CR will include v0.33.0

Copy link
Member

Choose a reason for hiding this comment

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

@sivchari Looks like I need to move to randfill as part of the CR bump already. They changed the return parameter of apitesting.fuzzer.FuzzerFor to *randfill.Filler. I'll see how far I can get with making only minimal changes

Copy link
Member

@sbueringer sbueringer May 12, 2025

Choose a reason for hiding this comment

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

Looks like I have to do everything to be able to bump CR

Copy link
Member

@sbueringer sbueringer May 13, 2025

Choose a reason for hiding this comment

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

@sivchari Probably we have to close this one in favor of #12191. Hope that's okay for you

(if you have time, please review #12191)

Copy link
Member Author

Choose a reason for hiding this comment

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

@sbueringer
Sorry for the late reply.
Yeah, I thought this PR will be closed since the upgrading CR includes this patch.
#12191 completely include my changes on this PR. I close this, then would review #12191 👍

Copy link
Member

@sbueringer sbueringer May 13, 2025

Choose a reason for hiding this comment

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

Thank you very much!

No worries, I don't expect instant replies :)

k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738
sigs.k8s.io/controller-runtime v0.20.4
sigs.k8s.io/yaml v1.4.0
)

require sigs.k8s.io/randfill v1.0.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this end up as a separate require?

Copy link
Member

Choose a reason for hiding this comment

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

Fixed in #12191

I think this only ended up here because either an IDE or go somehow adds it per default this way (also happened to me). But yes we want this in the block above.

@sivchari
Copy link
Member Author

/close

#12185 (comment)

@k8s-ci-robot
Copy link
Contributor

@sivchari: Closed this PR.

In response to this:

/close

#12185 (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-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-area PR is missing an area label do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. 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.

Remove usage of gofuzz
4 participants