Closed Bug 1677741 Opened 6 years ago Closed 2 months ago

action tasks like backfills. retriggers and reruns tasks should have priority 'very low', else they can prevent tasks for recent pushes from running

Categories

(Firefox Build System :: Task Configuration, enhancement)

enhancement

Tracking

(firefox157 fixed)

RESOLVED FIXED
157 Branch
Tracking Status
firefox157 --- fixed

People

(Reporter: aryx, Assigned: jlorenzo)

References

Details

Attachments

(1 external file, 2 obsolete files)

https://firefox-ci-tc.services.mozilla.com/tasks/U2_3rl41QtmNdAgWgZSDRg/runs/0 is the result of a backfill (see 'Dependencies' if you expand the bottom left) and has priority 'low'. That is the same priority like tasks scheduled normally for autoland pushes have. The tasks for older pushes get prioritized.

Joel, didn't the default 'very-low' for actions get implemented at some point or was this only discussed?

I am not sure if very-low was implemented. I know that try is lower priority than autoland, maybe we can hack that somehow?

:bstack, do you know much about what priorities are available via taskcluster and how creating a new task could set a priority.

Flags: needinfo?(bstack)

Ah yeah, it should work! This page shows the available priorities (highest, very-high, high, medium, low, very-low, lowest, normal) and how to set them.

Flags: needinfo?(bstack)

I am moving this to the treeherder component, thanks Brian! I assume our existing plugs for task actions could solve this. There might be some cases where we need to fix a template in-tree.

Type: defect → enhancement
Severity: -- → N/A
Assignee: nobody → jlorenzo
Status: NEW → ASSIGNED
Attachment #9573481 - Attachment description: Bug 1677741 - set action tasks priority to very-low r?#firefox-build-system-reviewers → Bug 1677741 - set action tasks priority to very-low
Attachment #9573481 - Attachment description: Bug 1677741 - set action tasks priority to very-low → Bug 1677741 - set action tasks priority to very-low r?#firefox-build-system-reviewers
Attachment #9573481 - Attachment is obsolete: true

For the record, :RyanVM told me this behavior caused an issue last week when backfills were taking all the available workers, blocking more important work.

Attachment #9574959 - Attachment is obsolete: true
Attachment #9573574 - Attachment description: Bug 1677741 - set action tasks priority to very-low → Bug 1677741 - set priority of tasks created by certain actions to very-low
Pushed by jlorenzo@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ab86eb5ceef4 https://hg.mozilla.org/integration/autoland/rev/0e4b20c64b91 set priority of tasks created by certain actions to very-low r=taskgraph-reviewers,releng-reviewers,ahal
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7c0714b51fe1 https://hg.mozilla.org/integration/autoland/rev/01a305a491c8 Revert "Bug 1677741 - set priority of tasks created by certain actions to very-low r=taskgraph-reviewers,releng-reviewers,ahal" for preventing backfills on production trees if there Try tasks for the same worker.

Backed out for preventing backfills on production trees if there Try tasks for the same worker.

Backout link: https://hg.mozilla.org/integration/autoland/rev/01a305a491c8

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 152 Branch → ---
Flags: needinfo?(jlorenzo)

I'm sorry, I'm confused about what happened. Atila, could you provide more information (like logs) about what problem you saw?

Flags: needinfo?(jlorenzo) → needinfo?(abutkovits)
Attachment #9573574 - Attachment description: Bug 1677741 - set priority of tasks created by certain actions to very-low → Bug 1677741 - set priority of perf tasks created by certain actions to very-low

To prevent (non-urgent) performance task backfills from using all the machines of small worker pools but still allow swift scheduling of backfills for unit tests, the requester could be checked if it is static or if the originally requested tasks (not their dependencies) are performance tasks.

Beatrice, use the performance backfills always the same client ID, or does it renew and change but have a fixed part? Could you share it?

See Also: → 2043511
Blocks: 2065046
Attachment #9573574 - Attachment description: Bug 1677741 - set priority of perf tasks created by certain actions to very-low → Bug 1677741 - set priority of backfilled perf tasks to very-low
Pushed by jcristau@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5e45f18f9d52 https://hg.mozilla.org/integration/autoland/rev/4ebeb339d48c set priority of backfilled perf tasks to very-low r=taskgraph-reviewers,releng-reviewers,ahal,jlorenzo
Status: REOPENED → RESOLVED
Closed: 7 months ago → 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch

Just to set expectations, it'll probably be a week or two before we start to see the effects of this change given the typical latency for perf backfills on autoland.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: