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

Integrating with Google/OSS-fuzz #2126

Open
jesslatimer opened this issue Apr 21, 2023 · 0 comments
Open

Integrating with Google/OSS-fuzz #2126

jesslatimer opened this issue Apr 21, 2023 · 0 comments

Comments

@jesslatimer
Copy link

Hi,

I would like to help keep isort running smoothly by adding fuzz testing and integrating it with Google/OSS-fuzz. In case you are not familiar with fuzz testing, briefly, it is an additional layer of testing (working alongside other tests) that is particularly good at finding unexpected bugs as it doesn't rely on a developer's suspicion to target a piece of code for testing. Wikipedia explains it nicely:

In programming and software development, fuzzing or fuzz testing is an automated software testing technique that involves providing invalid, unexpected, or random data as inputs to a computer program. The program is then monitored for exceptions such as crashes, failing built-in code assertions, or potential memory leaks.

Google offers a free, continuous fuzzing service called OSS-fuzz. If isort is integrated into oss-fuzz, the fuzz tests under isort will be built and then run once a day, to search for bugs and vulnerabilities. This service can be integrated with the CI for isort so that the fuzz tests are run for 10min or so for every pull request, preventing buggy code from being merged.

I've opened a pull request to add a basic fuzz-testing harness here #2125. If you are keen on adding isort to oss-fuzz I'd be happy to champion the integration :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant