Swarming: Implement JSON env var encapsulation and v2 API protos#5170
Swarming: Implement JSON env var encapsulation and v2 API protos#5170
Conversation
|
I think it's important to be more specific with both the title and description. |
| @@ -0,0 +1,18 @@ | |||
| # Copyright 2023 Google LLC | |||
There was a problem hiding this comment.
Sorry I am not sure if these gRPC should be on this PR. Are they needed for changes in swarming/__init__.py?
There was a problem hiding this comment.
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
Yeah i guess it was a little bit to generic, thanks for the feedback |
| @@ -35,8 +36,10 @@ def _requires_gpu() -> bool: | |||
|
|
|||
| def is_swarming_task(command: str, job_name: str): | |||
There was a problem hiding this comment.
Are moving this file logic to be under a swarming service that implements the RemoteTaskInterface?
There was a problem hiding this comment.
Yes. The plan is to eventually migrate it to use the Remote Task interface.
There was a problem hiding this comment.
Yes. The plan is to eventually migrate it to use the Remote Task interface.
How it's not me...?
letitz
left a comment
There was a problem hiding this comment.
Good stuff! A couple comments below.
|
Ok 💭 but liitle bit time need to understand about the theme |
letitz
left a comment
There was a problem hiding this comment.
One last question around the environment variables, and a couple debug statements to be removed. LGTM otherwise.
|
It would be good testing it in the dev environment. |
## 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. - Simplified the way we check if a task is a swarming task to avoid creating unused newTaskRequest objects and too many quries into the db, resulting in a refactor of various related methods - 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
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. - Simplified the way we check if a task is a swarming task to avoid creating unused newTaskRequest objects and too many quries into the db, resulting in a refactor of various related methods - 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
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.
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