Skip to content

Guard Fuzzing Tasks Behind ENABLE_FUZZ_FOR_BOTS Feature Flag#5328

Merged
PauloVLB merged 3 commits into
masterfrom
javan.feature-flag-disable-fuzz-bots
Jun 17, 2026
Merged

Guard Fuzzing Tasks Behind ENABLE_FUZZ_FOR_BOTS Feature Flag#5328
PauloVLB merged 3 commits into
masterfrom
javan.feature-flag-disable-fuzz-bots

Conversation

@javanlacerda

Copy link
Copy Markdown
Collaborator

This change introduces a new feature flag ENABLE_FUZZ_FOR_BOTS to control whether bots can pull new fuzzing tasks when other regular queues are exhausted. When disabled, bots will log a message indicating that fuzzing is disabled and return None instead of calling get_fuzz_task().

Changes

1. Feature Flag Definition

  • File: feature_flags.py
  • Change: Added ENABLE_FUZZ_FOR_BOTS = 'enable_fuzz_for_bots' to the FeatureFlags enum class.

2. Task Selection Update

  • File: init.py
  • Change:
    • Imported feature_flags.
    • Wrapped the fuzz task retrieval code inside get_task() with a check on the new feature flag:
      if not feature_flags.FeatureFlags.ENABLE_FUZZ_FOR_BOTS.enabled:
        logs.info(f'Fuzzing is disabled.')
        return None

Verification & Testing

  • Manual Verification: Verified logic code paths.

Signed-off-by: Javan Lacerda <javanlacerda@google.com>
@javanlacerda javanlacerda requested a review from a team as a code owner June 17, 2026 13:55
@PauloVLB PauloVLB merged commit 5bfe8e6 into master Jun 17, 2026
14 checks passed
@PauloVLB PauloVLB deleted the javan.feature-flag-disable-fuzz-bots branch June 17, 2026 18:02
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