Skip to content

Instantly share code, notes, and snippets.

View gregarndt's full-sized avatar

Greg Arndt gregarndt

  • Redox
  • Chicago, IL
View GitHub Profile
This file has been truncated, but you can view the full file.
$ mach taskcluster-graph --project mozilla-b2g44_v2_5 --message "useful message" --head-repository http://hg.mozilla.org/releases/mozilla-b2g44_v2_5 --head-rev tip --owner garndt@mozilla.com --dry-run
Querying URL for pushdate: http://hg.mozilla.org/releases/mozilla-b2g44_v2_5/json-pushes?changeset=tip
{
"scopes": [
"queue:define-task:aws-provisioner-v1/garndt-tester",
"queue:route:index.gecko.v1.mozilla-b2g44_v2_5.latest.linux.aries.debug",
"docker-worker:cache:workspace-emulator-jb-opt",
"queue:route:index.gecko.v1.mozilla-b2g44_v2_5.revision.linux.tip.nexus-4-user.opt",
"docker-worker:cache:build-flame-kk-debug",
"queue:route:index.gecko.v1.mozilla-b2g44_v2_5.revision.linux.tip.mulet.opt",
Nov 02 14:35:48 mozilla-taskcluster-staging app/worker.1: Mon, 02 Nov 2015 20:35:48 GMT superagent POST https://treeherder.allizom.org/api/project/try/resultset/ -> 200
Nov 02 14:35:54 mozilla-taskcluster-staging app/worker.1: Mon, 02 Nov 2015 20:35:54 GMT superagent POST https://treeherder.allizom.org/api/project/holly/resultset/ -> 403
Nov 02 14:37:20 mozilla-taskcluster-staging app/worker.1: Mon, 02 Nov 2015 20:37:19 GMT superagent POST https://treeherder.allizom.org/api/project/pine/resultset/ -> 403
Nov 02 14:38:13 mozilla-taskcluster-staging app/worker.1: Mon, 02 Nov 2015 20:38:12 GMT superagent POST https://treeherder.allizom.org/api/project/b2g-inbound/resultset/ -> 403
Nov 02 14:40:49 mozilla-taskcluster-staging app/worker.1: Mon, 02 Nov 2015 20:40:48 GMT superagent POST https://treeherder.allizom.org/api/project/mozilla-inbound/resultset/ -> 200
[
{
"message": "Authorization Failed",
"error": {
"message": "Authorization Failed",
"error": {
"info": "None of the scope-sets was satisfied",
"scopesets": [
[
"docker-worker:image:taskclusterprivate/tester-device:0.0.7",
@gregarndt
gregarndt / error.yml
Last active September 12, 2016 21:26
error message for failed decision task
metadata:
name: 'Error Message Task'
description: |
There was an error creating the decision task.
owner: "{{owner}}"
source: "{{{source}}"
tasks:
taskId: '{{#as_slugid}}decision-task{{/as_slugid}}'
task:
--- a/test/integration/file_artifact_test.js
+++ b/test/integration/file_artifact_test.js
@@ -164,7 +164,7 @@ suite('artifact extration tests', () => {
),
artifacts: {
// Name -> Source
- 'my-missing.txt': {
+ 'public/my-missing.txt': {
type: 'file',
path: '/this-file-is-missing.txt',
@gregarndt
gregarndt / sources.list
Created September 25, 2015 19:28
build-test sources.list
root@d0f20d8a4f5b:/etc/apt# cat sources.list
deb http://puppetagain.pub.build.mozilla.org/data/repos/apt/ubuntu/ precise main restricted universe
deb http://puppetagain.pub.build.mozilla.org/data/repos/apt/ubuntu/ precise-security main restricted universe
deb http://puppetagain.pub.build.mozilla.org/data/repos/apt/releng/ precise main
deb http://puppetagain.pub.build.mozilla.org/data/repos/apt/puppetlabs precise dependencies main
deb http://archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://archive.ubuntu.com/ubuntu/ precise main restricted
## Major bug fix updates produced after the final release of the
@gregarndt
gregarndt / get_bad_instances.py
Last active September 8, 2015 02:31
Retrieves a list of bad instance names maping to a list of ips
import sys
from boto.ec2 import connect_to_region
import requests
pastebin = sys.argv[1]
bad_ips = requests.get(pastebin).content.split()
regions = ['us-east-1', 'us-west-1', 'us-west-2']
@gregarndt
gregarndt / test_regex.py
Created August 25, 2015 14:56
test treeherder taskcluster error parsing
import re
RE_ERR_MATCH = re.compile((
r"^error: TEST FAILED"
r"|^g?make(?:\[\d+\])?: \*\*\*"
r"|^Remote Device Error:"
r"|^[A-Za-z.]+Error: "
r"|^[A-Za-z.]*Exception: "
r"|^remoteFailed:"
r"|^rm: cannot "
[taskcluster:info] taskId: XGGQFBJrRMatwv8VDfqnEg, workerId: i-7f2390a4
[taskcluster:info] using cache "build-mulet-linux-mozilla-inbound-workspace" -> /home/worker/workspace
[taskcluster:info] using cache "tooltool-cache" -> /home/worker/tools/tooltool-cache
[taskcluster:info] using cache "tc-vcs" -> /home/worker/.tc-vcs
[taskcluster:info] === Start Task ===
some stuff
[taskcluster-vcs:error] Whoops
more stuff
[taskcluster] taskId: XGGQFBJrRMatwv8VDfqnEg, workerId: i-7f2390a4
[taskcluster] using cache "build-mulet-linux-mozilla-inbound-workspace" -> /home/worker/workspace
[taskcluster] using cache "tooltool-cache" -> /home/worker/tools/tooltool-cache
[taskcluster] using cache "tc-vcs" -> /home/worker/.tc-vcs
some crap
[taskcluster] Successful task run with exit code: 0 completed in 692.345 seconds