Changes

Jump to: navigation, search

Sheriffing/How To/Retrigger Jobs

3,093 bytes added, 02:32, 26 August 2018
no edit summary
Release/ESR52 still need to use self-serve to manually schedule Nightly builds. Click the "BuildAPI" link on the desired push in Treeherder, copy the push's revision, paste it into the "Create new nightly builds on <tree>" textbox, and click "Submit" to request them.
 
= How to bulk retrigger build bustages a push at a time =
 
Prerequisites:
 
Step 1: Run <span style="color:#b32425">'''pip install taskcluster'''</span> to '''install a taskcluster component''' from pip install taskcluster
If you get the message ''"The program 'pip' is currently not installed"'' then you have to install it by running:
a. <code> '''sudo apt install -y python-pip''' </code>
b. <code> when python-pip install is completed, run '''pip install taskcluster''' </code>
 
Step 2: '''Save the file''' and '''make it executable''' by running the command: <span style="color:#b32425"> '''sudo wget https://hg.mozilla.org/build/braindump/raw-file/default/taskcluster/tc-filter.py -P /usr/local/sbin/ && chmod +x /usr/local/sbin/tc-filter.py'''</span>
 
Step 3: '''Re-sign in''' with the taskcluster tool if you were already signed in
 
How to use:
# '''sign in''' with the taskcluster tool ( <span style="color:#b32425">'''eval $(taskcluster signin)'''</span> | if you were not already signed in)
# '''run''' <span style="color:#b32425">'''tc-filter.py --state failed --action rerun --graph-id</span> <span style="color:#14866d">geckoDecisionTaskTaskId</span>'''
''Note: Replace geckoDecisionTaskTaskId with the task id being shown on the bottom left when you click on the gecko decision task for the push with the failures.''
 
= Rerunning build bustages =
===== How to install taskcluster CLI =====
 
This tool is needed in order to retrigger some build jobs, especially nightly builds.
Download ''Taskcluster CLI'' on Ubuntu from https://github.com/taskcluster/taskcluster-cli
 
From your /home/user folder ('''or the location where mozilla-unified is stored'''), run the following commands:
# <span style="color:#b32425">'''sudo wget https://index.taskcluster.net/v1/task/project.taskcluster.taskcluster-cli.latest/artifacts/public/linux-amd64/taskcluster -P /usr/local/sbin/'''</span>
# <span style="color:#b32425">'''sudo chmod +x /usr/local/sbin/taskcluster'''</span>
 
The tool is now '''installed''' and '''made executable''' in /usr/local/sbin/.
 
===== How to use Taskcluster CLI =====
# From the terminal, '''run''' the command: <span style="color:#b32425"> '''eval $(taskcluster signin)'''</span>. This tool <span style="color:#14866d">will only work as long as the terminal remains open.</span>
# When the browser page opens, login using LDAP
# Click '''Create a new clientId''' and go to the end of the page, then click '''Create Client'''.
# Wait a few seconds, then close the browser.
# In the console, the following message should appear: <span style="color:#14866d">''Credentials output as environment variables.''</span>
# '''Run''' <span style="color:#b32425">'''taskcluster task rerun'''</span> <span style="color:#14866d">'''TASK_ID'''</span> (take the TASK_ID from the job summary – go to Treeherder, click the job and on the left side of the window you have Task)
# After following these steps, the console should output either <span style="color:#14866d">''running''</span> or <span style="color:#14866d">''pending''</span>.
Confirm
79
edits

Navigation menu