Skip to content

Swarming: Implement JSON env var encapsulation and v2 API protos#5170

Open
IvanBM18 wants to merge 7 commits intomasterfrom
feature/clusterfuzz-swarming-integration
Open

Swarming: Implement JSON env var encapsulation and v2 API protos#5170
IvanBM18 wants to merge 7 commits intomasterfrom
feature/clusterfuzz-swarming-integration

Conversation

@IvanBM18
Copy link
Collaborator

@IvanBM18 IvanBM18 commented Feb 25, 2026

Finishes the last details in the base of clusterfuzz-swarming integration.

This PR finalizes the base integration for Clusterfuzz-Swarming. The primary focus is ensuring environment variable persistence across Docker/ swarming bots and laying the groundwork for the Swarming v2 API.

  • Encapsulates all of the env vars in a single JSON env var, so that this JSON is be processed by a startup script. This is done so that the env vars are not lost in swarming bots that launch clusterfuzz in a docker container.
  • Adds new protos for the swarming v2 api
  • Also adds some unit tests.

This integration will later be refactored to use remote_tasks once the remote task gate allows to send tasks to specific backends always that some conditions are given.

Bug: b/479476219

@IvanBM18 IvanBM18 self-assigned this Feb 25, 2026
@jardondiego
Copy link
Collaborator

I think it's important to be more specific with both the title and description.

@@ -0,0 +1,18 @@
# Copyright 2023 Google LLC
Copy link
Collaborator

@jardondiego jardondiego Feb 25, 2026

Choose a reason for hiding this comment

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

Sorry I am not sure if these gRPC should be on this PR. Are they needed for changes in swarming/__init__.py?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All of the used protos in this repo live under src/_internal/protos, i just added the ones that were missing but maybe @letitz can give more context here

@IvanBM18 IvanBM18 changed the title ClusterFuzz & Swarming Integration Swarming: Implement JSON env var encapsulation and v2 API protos Feb 25, 2026
@IvanBM18
Copy link
Collaborator Author

I think it's important to be more specific with both the title and description.

Yeah i guess it was a little bit to generic, thanks for the feedback

return new_task_request


def _compress_env_vars(
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: We could also name it _env_vars_to_json to be more clear.

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