Support Platform Filtering in ENABLE_FUZZ_FOR_BOTS Feature Flag - #5411
Merged
Conversation
Signed-off-by: Javan Lacerda <javanlacerda@google.com>
PauloVLB
reviewed
Aug 4, 2026
Collaborator
Author
Yes, mac and windows |
PauloVLB
approved these changes
Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update
ENABLE_FUZZ_FOR_BOTSfeature flag check inget_task()to verify that the bot's current platform is present in the flag's comma-separatedstring_valuebefore retrieving fuzzing tasks.Context
We should keep the clusterfuzz-linux bots only for running trusted tasks on internal, then this flag would be used keep bots running fuzz for Windows and Mac, but not for linux.
Changes
src/clusterfuzz/_internal/base/tasks/__init__.py: Inget_task(), parse allowed platforms fromFeatureFlags.ENABLE_FUZZ_FOR_BOTS.string_valueand requireenvironment.platform().lower()to match before callingget_fuzz_task().src/clusterfuzz/_internal/tests/core/base/tasks/tasks_test.py: AddedGetTaskFuzzingFeatureFlagTestcovering enabled/disabled states, matching/non-matching platforms, and empty values.Verification
pipenv run python butler.py py_unittest -t core -p tasks_test.py)pipenv run python butler.py lint)