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

Only fuzz test PRs that run the test suite #1609

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

EliahKagan
Copy link
Member

This adds a paths restriction on the CIFuzz job to avoid the situation where a PR that doesn't modify anything that causes the usual tests to run on it would still run fuzz tests.

An example of a such a PR is #1607, where, as things are set up now, the CIFuzz job ran, taking 19 minutes, even though the only other CI jobs that needed to run there were the MSRV jobs. (I'm not entirely sure they need to run either, but it seems okay since they are rather light weight.)

Note that while #1608 also relates to a potential non-ideal CI-related behavior observed in #1607, that is unrelated to this, and this PR does not fix issue #1608.

This should still have CIFuzz run even when the only change a PR makes is to adjust how CI fuzzing itself works, because one of the patterns is matched by any change to any CI workflow file. In particular, this PR itself should be fuzzed under these rules.

This adds a `paths` restriction on the CIFuzz job to avoid the
situation where a PR that doesn't modify anything that causes the
usual tests to run on it would still run fuzz tests.

(This should still have CIFuzz run even when the only change a PR
makes is to adjust how CI fuzzing itself works, because one of the
patterns is matched by any change to any CI workflow file.)
Copy link
Member

@Byron Byron left a comment

Choose a reason for hiding this comment

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

Thanks a lot! This will save some time.

@Byron Byron merged commit 15457c9 into GitoxideLabs:main Sep 24, 2024
16 checks passed
@EliahKagan EliahKagan deleted the fuzz-less branch September 24, 2024 19:45
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

Successfully merging this pull request may close these issues.

2 participants