[Corpus] Refactor and add wildcard support for feature flag - #5421
Open
PauloVLB wants to merge 1 commit into
Open
[Corpus] Refactor and add wildcard support for feature flag#5421PauloVLB wants to merge 1 commit into
PauloVLB wants to merge 1 commit into
Conversation
PauloVLB
force-pushed
the
corpus-fix-rollout
branch
from
August 11, 2026 15:09
22c057b to
87932d4
Compare
PauloVLB
marked this pull request as ready for review
August 11, 2026 16:41
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.
Problem
The previous feature flag implementation for enabling threaded storage operations was somewhat rigid and required explicitly listing every single fuzz target. This made it difficult to scale the solution or enable it globally for specific deployments (like OSS-Fuzz) without maintaining huge lists. Additionally, the matching was case-sensitive and didn't handle potential variations well, which could cause issues when testing across different deployments like Chrome or Google3.
Solution
Refactored the logic into a dedicated helper function
_should_use_threaded_opsto improve readability and robustness.*anywhere in the list to enable threaded operations for all targets in that specific deployment._utask_preprocessby moving the decision logic out.This prepares the feature for easier rollout and testing across different environments without requiring further code changes.
Note: I also improved a comment as requested in here.
Validation
The wildcard worker in dev:
GCP Link