Skip to content

Swarming: Adds dynamic Job specific bot dimensions#5199

Open
IvanBM18 wants to merge 3 commits intomasterfrom
feature/swarming/dynamic_job_dimensions
Open

Swarming: Adds dynamic Job specific bot dimensions#5199
IvanBM18 wants to merge 3 commits intomasterfrom
feature/swarming/dynamic_job_dimensions

Conversation

@IvanBM18
Copy link
Collaborator

@IvanBM18 IvanBM18 commented Mar 9, 2026

In an effort to gradually add swarming integration changes back. This PR adds the ability to set dynamic job dimensions in addition to the static config platform specific dimensions for swarming tasks.

The dimensions will be added trough the job env_string with the following syntax:

  • SWARMING_DIMENSIONS={‘cpu’:’x86’,’os’:’windows’}
    The Job specific dimensions will have more presedence than that the static config ones, which will allows us to have more flexibility when sending swarming tasks.

Also adds two unit tests to handle the new test cases

Bug: b/483772015

@IvanBM18 IvanBM18 self-assigned this Mar 9, 2026
@IvanBM18 IvanBM18 requested a review from a team as a code owner March 9, 2026 22:38
@IvanBM18 IvanBM18 added the swarming Changes related to the clusterfuzz-swarming integration label Mar 9, 2026
return local_config.SwarmingConfig()


def _get_task_dimensions(job: data_types.Job, platform_specific_dimensions: list
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's great to have type hints!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

swarming Changes related to the clusterfuzz-swarming integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants