Skip to content

[Swarming] Skip unsupported blame and impact tasks for Swarming jobs - #5583

Open
Xeicker wants to merge 3 commits into
feature/swarming/pr2-add-task-platform-queuefrom
feature/swarming/pr3-skip-blame-impact
Open

Xeicker wants to merge 3 commits into
feature/swarming/pr2-add-task-platform-queuefrom
feature/swarming/pr3-skip-blame-impact

Conversation

@Xeicker

@Xeicker Xeicker commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Bug: 574630499

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

Description

blame and impact are TrustedTasks with no utask split, so they can't run on Swarming, and testcases would wait on them forever (stuck blame_pending, never "complete" for triage). For Swarming jobs they're no longer created (task creation, impact cron, UI redo) and critical_tasks_completed no longer requires impact.

Testing

@g-ortuno

g-ortuno commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

The description only mentions a problem, can you also mention what this PR does to fix the problem?

@g-ortuno

g-ortuno commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Ah, I misunderstood the description! I see the solution now.

@Xeicker
Xeicker force-pushed the feature/swarming/pr3-skip-blame-impact branch from 1f18891 to 6f52878 Compare November 6, 2026 03:08
@IvanBM18

IvanBM18 commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

IIUC we still want impact/blame tasks to be executed for the swarming jobs, but the limit we are facing is that we have logic that makes it so all tasks for a swarming job must pass down trough a swarming bot, or a queue that is only pulled from by bots that route things to swarming bots, e.g. jobs-android-emulator.

So my question here is, What stops us from running this tasks in a regular tworker? Is it the routing logic? or is it because this tasks need to be executed on a specific kind of bot?

If its a routing issue, Can you add TODO comments pointing to a bug that shall make it possible for us to execute impact/blame tasks for swarming jobs?

These bugs are already created under the feature b/469405415

@Xeicker
Xeicker force-pushed the feature/swarming/pr3-skip-blame-impact branch from 54b683f to af63122 Compare November 6, 2026 20:25
@Xeicker

Xeicker commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator Author

That's a good point Ivan. I think I kind of misunderstood the original routing bug.
Added the TODO and created the bug to track that gap

@Xeicker
Xeicker requested a review from a team as a code owner November 9, 2026 17:15
Swarming can't run untrusted workloads (#5581 no longer treats Swarming jobs
as no-privilege workloads). Invert the variant test and add a trusted
counterpart.
@Xeicker
Xeicker force-pushed the feature/swarming/pr3-skip-blame-impact branch from af63122 to 9089ea0 Compare November 9, 2026 17:22
@Xeicker
Xeicker requested a review from g-ortuno November 9, 2026 17:42

@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

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.

3 participants