Create a mach command for rerunning failed jobs on a previous push using new code

NEW
Unassigned

Status

4 years ago
4 months ago

People

(Reporter: jgraham, Unassigned, Mentored)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [lang=py][good next bug] )

(Reporter)

Description

4 years ago
So a reasonably common scenario is that a developer pushes a job to try, they get some test failures, and then they make some changes to fix those failures. In this latter case they want to run as few jobs as possible to check that the previous failures are now addressed.

I imagine this working as a mach command e.g. |mach retry|. This command would have several modes of operation:

|mach retry --list| - List the last e.g. 10 try jobs submitted by the current user
|mach retry $SHA| - Rerun the failures from the try push with sha1 $SHA
|mach retry| - Rerun the failures from the last try push submitted by the current user

In terms of implementation, treeherder client [1] can be used to fetch the list of try pushes for a given email address, and the list of jobs for each try push. From this data you will need to construct a trychooser-style [2] string that will include every job that always failed on the previous push (note that due to intermittents, jobs may be rerun on try and when they are any green job should take precedence over an orange job for these purposes, at least by default). Note that the result will not necessarily be totally minimal e.g. if mochitest-1 fails on linux32 debug and reftest-1 on linux64 opt a reasonable try string would look like

try: -b do -p linux,linux64 -u reftest-1,mochitest-1

Actually submitting the push to try should reuse the machinery from |mach try|.

[1] https://treeherder.readthedocs.org/retrieving_data.html
[2] http://trychooser.pub.build.mozilla.org/

Comment 1

6 months ago
Hello,
Is this bug still open or has it been fixed? Can I work on it for my first bug?

Comment 2

5 months ago
Hi,
I am new to the mozilla community. Can I take it as my first bug to work?

Comment 3

4 months ago
so that implies i have to store the failed jobs in a file and then accordingly run the required tasks ,or rerun  push from start
You need to log in before you can comment on or make changes to this bug.