Skip to content

[Swarming] Decouples linux from android_emulator fuzzing#5347

Open
IvanBM18 wants to merge 2 commits into
masterfrom
feature/swarming/decouple-linux-android
Open

[Swarming] Decouples linux from android_emulator fuzzing#5347
IvanBM18 wants to merge 2 commits into
masterfrom
feature/swarming/decouple-linux-android

Conversation

@IvanBM18

@IvanBM18 IvanBM18 commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Overview

This small PR focuses on re enabling linux fuzzing in swarming by decoupling the linux jobs from automatically being treated as android jobs.

Previously we always booted up an al emulator on every single job that reached swarming(as per the config's specs) and we always used the OS_OVERRIDE:ANDROID env var, so that clusterfuzz followed the setup/logic decisions of a android device. This had 2 issues:

  • Our android jobs have had to set PLATFORM=LINUX so that CF could send a swarming request targeting a Linux bot(which contained our emulated devices)
  • Thanks to that, our actual Linux Jobs were always overriden to android

Changes

  • When the job.platform is android_emulator we override is target swarming bot OS to linux in the swarming request, which is the one that contains the emulator setup logic.
    • When we construct the task request we will still gather the new config specs(see other pr) from the ANDROID_EMULATOR platform
  • Added the ANDROID_EMULATOR to the list of jobs that we want to schedule in swarming queues.
  • Added the is_android_emulator() method to the battery check.

Note

This Pr is dependant of this other config pr

Tests performed

Since this type of change is more focused on swarming.yaml config changes i tested this by creating a new job using the ANDROID_EMULATOR platform and i verified if it was correctly scheduled in a linux swarming bot, and that said bot launched the emulator and also that the fuzzing task executed successfully
See the logs

@IvanBM18 IvanBM18 requested a review from a team as a code owner July 2, 2026 18:43

@Xeicker Xeicker left a comment

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.

LGTM

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