Skip to content

Instantly share code, notes, and snippets.

View gregarndt's full-sized avatar

Greg Arndt gregarndt

  • Redox
  • Chicago, IL
View GitHub Profile
{
"workerType": "ami-test",
"created": "2015-08-05T19:21:00.737Z",
"deadline": "2015-08-05T20:21:00.737Z",
"priority": "normal",
"schedulerId": "task-graph-scheduler",
"payload": {
"image": "ubuntu:14.04",
"maxRunTime": 3600,
"features": {
bash-4.1# cat decision.sh
#! /bin/bash -ex
DEST=/home/worker/source/gecko
test $GECKO_BASE_REPOSITORY # e.g. https://hg.mozilla.org/mozilla-central
test $GECKO_HEAD_REPOSITORY # e.g. https://hg.mozilla.org/try
test $GECKO_HEAD_REF # <cset>
test $GECKO_HEAD_REV # <cset>
[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
[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
@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 "
@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 / 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
--- 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 / 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:
[
{
"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",