- pull
master
and push tomain
- update the default branch in GitHub settings (under "branches")
- copy the branch protection settings (manually) from master to main
- update automation to look at
main
instead ofmaster
and make a PR- also fix any links -- look for
github.com/taskcluster/$REPO/
- also fix any links -- look for
- change community-tc-config if necessary
- delete branch protection for master, push a new history-free commit there with a README (something like https://github.com/taskcluster/taskcluster/commit/5d2ef402861dee513bdf94c704dcbf6bad12bce3)
- re-enable branch protection for master, require linear commits, and include administrators
- for any open PRs, click "edit" and change the base branch to
main
Run this as python3 gcloud-tail.py FILTER
. The result is in JSON format, with one line per log message.
You can process the results with jq
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import sys | |
def common(row): | |
row['tz'] = row['Time Availability'].split('(')[0] | |
rv = ''' | |
<li><em>Avaialble as:</em> {ml}</li> | |
<li><em>Time Availability:</em> {tz}</li> | |
<li><em>Organizational Level:</em> {org}</li> | |
<li><em>Organization:</em> {Organization}</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import sys | |
import os | |
import urllib.request | |
def main(): | |
rootUrl = os.environ["TASKCLUSTER_ROOT_URL"] | |
workerPoolId = sys.argv[1] | |
apiUrl = rootUrl + "/api/worker-manager/v1/workers/" + workerPoolId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import re | |
import sys | |
import json | |
import urllib.request | |
import argparse | |
import subprocess | |
# get config | |
try: |
- See the 30-second guide
I've been using this for almost ten years now, so here are some of the ways I have set it up to be most productive.
See my taskrc
below for implementation details.
In general, I've had the most success by keeping lists of tasks short and to the point, avoiding the anxiety of seeing 100 tasks and feeling like I'm going to drown.
New year, new links:
I don't work at Mozilla any longer, but I'm happy to keep this up-to-date. Please reach out (same username on gmail) with any updates!
Actions:
name | actionPerm | access | scopes | in-tree | custom in tools | custom in treeherder | notes |
---|---|---|---|---|---|---|---|
retrigger | generic | all | push | yes | yes | yes | bug |
edit and retrigger | generic | all | push | no | yes | yes | treeherder redirects to task-creator |
add-new-jobs | generic | all | push | yes | |||
run-all-talos | generic | all | push | yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script expects AWS credentials: | |
# SIGNIN_AWS_ACCESS_KEY_ID | |
# SIGNIN_AWS_SECRET_ACCESS_KEY | |
# Or it will use the credentials set up with `aws configure` if those are not set. | |
# | |
# It optionally epects the TOTP entry name in your yubikey | |
# SIGNIN_AWS_YUBIKEY_OATH_NAME | |
# Put these environment variables into your .bashrc.local (or .bashrc, if you |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import difflib | |
import sys | |
import re | |
def relabel(graph): | |
'restore the original labels, based on task.metadata.name' | |
newgraph = {} | |
changes = {} | |
for old, t in graph.iteritems(): |
NewerOlder