Repository navigation
Conversation
Collaborator
|
Does this match Batch? If not, is there a reason why this is not a problem for batch? |
Collaborator
Author
No, Batch doesn't do this. If all Batch regions hit |
Collaborator
|
Thanks for the context! |
…limits Scale the Swarming utask_main queue limit and Swarming pending task backpressure limit for non-fuzz commands using the live-tunable swarming_non_fuzz_queue_limit_multiplier feature flag (default 2.0, clamped to >= 1.0), and extend per-batch backpressure keys to (os, is_fuzz). Bug: 589717890
Xeicker
force-pushed
the
feature/swarming/non-fuzz-backpressure
branch
from
November 30, 2026 22:46
e6c2081 to
7bc8312
Compare
This branch has not been deployed
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.
Bug: 589717890
Context
Even when non-fuzz tasks (
analyze,minimize,regression,progression, etc.) have higher Swarming priority, continuousfuzztraffic holds both backpressure gates at the 25-task default: trusted workers reject non-fuzz preprocessing withQueueLimitReachedError, and the Swarming scheduler holds non-fuzz tasks once pending tasks hit 25.Removing the cap completely for non-fuzz tasks would leave Swarming open to unbounded floods that sit until Swarming's 24-hour expiration and signed URL timeout.
Fix description
Give Swarming non-fuzz tasks dedicated headroom above
fuzzwhile keeping both gates bounded and live-tunable:swarming_non_fuzz_queue_limit_multiplierfeature flag (default2.0, clamped to>= 1.0, no Datastore entry required unless overriding the default) andget_swarming_non_fuzz_queue_limithelper. Scaling the base cap keeps headroom proportional across environments and preserves0as an emergency stop for both tiers.UTask.execute) and the Swarming pending-task check (SwarmingService._is_queue_full), leaving Cloud Batch jobs unchanged.full_queueskey inSwarmingService.create_utask_main_jobsto(pool, os, is_fuzz)so a fullfuzzbucket does not block non-fuzz tasks for the same platform.Tests
test_get_swarming_non_fuzz_queue_limitinpub_sub_task_queue_test.pycovering the default2.0multiplier, enabled flag overrides, and the>= 1.0clamp.test_swarming_non_fuzz_gets_higher_queue_limitintask_types_test.pyverifying Swarmingfuzzblocks at 26 whileanalyzepasses at 26 and blocks at 51.service_test.pyto verify a mixed batch schedules Linuxanalyze(at 25 < 50) and Macfuzz(at 0 < 25) while skipping repeat Linuxfuzzviafull_queuesand capping Linuxanalyzeat 50.pub_sub_task_queue_test.py(5/5),task_types_test.py(25 run, 1 pre-existing skip), andservice_test.py(16/16), pluspython butler.py formatandpython butler.py lint(passing).