Skip to content

Swarming: Adds dynamic Job specific bot dimensions#5199

Merged
IvanBM18 merged 4 commits intomasterfrom
feature/swarming/dynamic_job_dimensions
Mar 18, 2026
Merged

Swarming: Adds dynamic Job specific bot dimensions#5199
IvanBM18 merged 4 commits intomasterfrom
feature/swarming/dynamic_job_dimensions

Conversation

@IvanBM18
Copy link
Copy Markdown
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
Copy Markdown
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!

Comment thread src/clusterfuzz/_internal/swarming/__init__.py
Copy link
Copy Markdown
Collaborator

@javanlacerda javanlacerda left a comment

Choose a reason for hiding this comment

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

LGTM. I'm approving it to avoid missing this work, but the further PRs against master should be towards the integration with the remote task interface. go/cf-swarming-integration-agreement

@javanlacerda
Copy link
Copy Markdown
Collaborator

There are some conflicts.

@IvanBM18 IvanBM18 merged commit 9783a0a into master Mar 18, 2026
11 checks passed
@IvanBM18 IvanBM18 deleted the feature/swarming/dynamic_job_dimensions branch March 18, 2026 20:30
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.

3 participants