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

feat(test): add fuzz test for range_reader #2609

Merged
merged 14 commits into from
Jul 17, 2023

Conversation

dqhl76
Copy link
Member

@dqhl76 dqhl76 commented Jul 8, 2023

part of: #2551

For this PR, I used cargo fuzz to initialize the fuzz framework and added a fuzz target example for fs service's range reader.

I will continue to add more fuzz targets in the near future.


Why not put these files in the usual test folder?

We want to make the fuzz tests with oss-fuzz, which need us put them under a a top-level fuzz directory.
oss-fuzz with rust

core/fuzz/Cargo.toml Outdated Show resolved Hide resolved
core/fuzz/Cargo.toml Outdated Show resolved Hide resolved
core/fuzz/Cargo.toml Outdated Show resolved Hide resolved
core/fuzz/fuzz_targets/fuzz_reader_fs.rs Outdated Show resolved Hide resolved
core/fuzz/fuzz_targets/fuzz_reader_fs.rs Outdated Show resolved Hide resolved
core/fuzz/fuzz_targets/fuzz_reader_fs.rs Outdated Show resolved Hide resolved
core/fuzz/fuzz_targets/fuzz_reader_fs.rs Outdated Show resolved Hide resolved
core/fuzz/Cargo.toml Outdated Show resolved Hide resolved
@dqhl76 dqhl76 marked this pull request as draft July 8, 2023 14:24
@dqhl76 dqhl76 marked this pull request as ready for review July 11, 2023 02:02
@dqhl76
Copy link
Member Author

dqhl76 commented Jul 11, 2023

@Xuanwo PTAL

core/fuzz/Cargo.toml Show resolved Hide resolved
core/fuzz/README.md Outdated Show resolved Hide resolved
core/fuzz/fuzz_reader.rs Outdated Show resolved Hide resolved
core/fuzz/fuzz_reader.rs Outdated Show resolved Hide resolved
core/fuzz/fuzz_reader.rs Outdated Show resolved Hide resolved
core/fuzz/fuzz_reader.rs Outdated Show resolved Hide resolved
core/fuzz/fuzz_reader.rs Outdated Show resolved Hide resolved
core/fuzz/fuzz_reader.rs Outdated Show resolved Hide resolved
core/fuzz/fuzz_reader.rs Outdated Show resolved Hide resolved
@dqhl76 dqhl76 marked this pull request as draft July 11, 2023 09:36
@dqhl76 dqhl76 marked this pull request as ready for review July 16, 2023 09:38
@dqhl76
Copy link
Member Author

dqhl76 commented Jul 16, 2023

@Xuanwo PTAL

Signed-off-by: dqhl76 <[email protected]>
@dqhl76 dqhl76 changed the title test: add fuzz search for fs reader test: add fuzz test for range_reader Jul 16, 2023
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Great, thanks a lot!

@Xuanwo Xuanwo changed the title test: add fuzz test for range_reader feat(test): add fuzz test for range_reader Jul 17, 2023
@Xuanwo Xuanwo merged commit b2ae4a3 into apache:main Jul 17, 2023
26 checks passed
@dqhl76
Copy link
Member Author

dqhl76 commented Jul 17, 2023

Thanks for your review!

@dqhl76 dqhl76 deleted the fuzz-test-fsreader branch July 17, 2023 08:30
@oowl oowl mentioned this pull request Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants