Skip to content

[Swarming] Route default queue for Swarming jobs to their platform queue - #5582

Open
Xeicker wants to merge 2 commits into
feature/swarming/pr1-tworker-utask-guardsfrom
feature/swarming/pr2-add-task-platform-queue
Open

Xeicker wants to merge 2 commits into
feature/swarming/pr1-tworker-utask-guardsfrom
feature/swarming/pr2-add-task-platform-queue

Conversation

@Xeicker

@Xeicker Xeicker commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Bug: 574630499

Stack: #5581 → #5582 (this) → #5583. See #5581 for context.

Description

Most non-fuzz tasks are created via tasks.add_task() without a queue, so they landed in the creator's default queue (e.g. jobs-linux) and never reached the dedicated tworker. add_task now resolves the platform queue for Swarming jobs when no queue is given, instead of changing every call site. Explicit queues are kept.

Testing

@IvanBM18 IvanBM18 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 with a nit

external_tasks.add_external_task(command, argument, job)
return

if queue is None and swarming.is_swarming_applicable(job_type, job=job):

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.

This logic introduces a side effect to the callers of the add_task() method, so to let callers know of this, Can you mention this sidefffect at the method's pydoc string?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Added it

@Xeicker
Xeicker force-pushed the feature/swarming/pr2-add-task-platform-queue branch from 5b267dc to 0aa1c28 Compare November 9, 2026 17:15
@Xeicker
Xeicker requested a review from g-ortuno November 9, 2026 17:42

This branch has not been deployed

No deployments
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