- 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
.
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> |
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 |
#! /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.
The Mozilla Phonebook now shows staff levels by name in the "Official Job Title" field. This marks an improvement in transparency of levels within the organization!
Some of the technical details in this post, such as where to find your level, are out of date but preserved here.
The sections below on leveling-up and mis-leveling remain as relevant now as when this Gist was first written.
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 |
#!/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 |
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(): |