Skip to content

Swarming: Removes Unnecessary DB calls#5223

Open
IvanBM18 wants to merge 4 commits intomasterfrom
feature/swarming/remove_unnecesary_db_calls
Open

Swarming: Removes Unnecessary DB calls#5223
IvanBM18 wants to merge 4 commits intomasterfrom
feature/swarming/remove_unnecesary_db_calls

Conversation

@IvanBM18
Copy link
Copy Markdown
Collaborator

@IvanBM18 IvanBM18 commented Mar 27, 2026

We are adding back the last batch of the changes that were rollbacked which make sure that we weren't making a lot of unnecessary calls into the DB. By consequence the signature of multiple methods were changed to simplified.

I also added a new tests to avoid the previous issue (the one that caused the rollback) from ever appearing again. This tests are in its own test class and its purpose is to check that the BadConfigError is correctly handled when no config is found(which is the expected bahaviour in the external and google envs)

Tests performed in dev environment

This changes have been present since March 25th. Its been over one week since then and metrics seem consistent
image
Note: Down times in fuzzing hours matches when we deployed a change into the env.

Also no new error groups seem to be appearing in swarming, the only notable error is one relating missing permissions for uploading a test case, which seems unrelated

This changes have been in dev for quite some time and we have successfully tested their functionality without compromising any functionality. For example this Task was scheduled with this changes.

@IvanBM18 IvanBM18 self-assigned this Mar 27, 2026
@IvanBM18 IvanBM18 added the swarming Changes related to the clusterfuzz-swarming integration label Mar 27, 2026
@IvanBM18 IvanBM18 marked this pull request as ready for review March 30, 2026 22:40
@IvanBM18 IvanBM18 requested a review from a team as a code owner March 30, 2026 22:40
def is_swarming_task(job_name: str, job: data_types.Job | None = None) -> bool:
"""Returns True if the task is supposed to run on swarming."""
if not FeatureFlags.SWARMING_REMOTE_EXECUTION.enabled:
logs.info('[DEBUG] Flag is disabled', job_name=job_name)
Copy link
Copy Markdown
Collaborator Author

@IvanBM18 IvanBM18 Mar 30, 2026

Choose a reason for hiding this comment

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

Note: Theres no debug severity level in the logs module. I tried adding it but to the logs were not being shown in the GCP log explorer, i guessed thats why didn't had said severity level in the first place

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.

1 participant