Open Bug 1612554 Opened 4 years ago Updated 3 months ago

Don't re-run tasks on autoland if they were already run on try

Categories

(Testing :: General, enhancement, P3)

Version 3
enhancement

Tracking

(Not tracked)

People

(Reporter: marco, Unassigned)

References

(Blocks 1 open bug)

Details

Especially when we enable test selection at review time more broadly, this will save a bit of resources.

We just need to figure out how to detect a previous try push for the same patch from the autoland decision task.

Note: the fact that a given test was already run on try doesn't ensure that there would be no failure on autoland, since the patch might be rebased between the push to try and the landing. Failures due to bad rebases should be rare enough though.

Second note: we can also do the same when the same patch is pushed multiple times to try.

Priority: -- → P3
See Also: → 1752677

A potential solution that would require few changes in the taskgraph and support chunking in the taskgraph: implement this in the scheduler itself, the scheduler could get info from hg.mozilla.org and ignore the bugbug selected tests if they already run on try. So, the scheduler would 1) find the patch on hg.mozilla.org/try, 2) get all tests that run on that push; 3) from the bugbug selected tests, subtract the tests from 2.

Severity: normal → S3

Andrew, would part of your work for bug 1752677 be reusable for this?

Flags: needinfo?(ahal)

Hm, I don't think so. That work is more for the other way around and specific to try pushes. That said the existing_tasks parameter that has been part of Taskgraph for ages could be used as a solution here. I'm not entirely sure how it would work though.

Flags: needinfo?(ahal)
You need to log in before you can comment on or make changes to this bug.