Skip to content

Instantly share code, notes, and snippets.

View gregarndt's full-sized avatar

Greg Arndt gregarndt

  • Redox
  • Chicago, IL
View GitHub Profile
package main
import (
"fmt"
"sync"
"github.com/snaury/tdigest-go"
)
type Aggregator struct {

Keybase proof

I hereby claim:

  • I am gregarndt on github.
  • I am gregarndt (https://keybase.io/gregarndt) on keybase.
  • I have a public key ASDJp2hP09-kbWbCJBi5w9saQP-mFH2xRUZpp61XXkdOEgo

To claim this, I am signing this object:

@gregarndt
gregarndt / gist:1227ca15b1329018b640
Created March 2, 2016 15:42
generic life cycle
* Steps are calls to other things to do stuff. Steps cannot be called in parallel
* Each phase relies on the output from the previous phase
* Cancellations can happen at any time during the phases from something external
* I think that an abort at any phase should drop down to Stop and continue on
* Stop and Finish phases should clean up things created in previous phases
** If Stop/Finish run without one of the previous phases running, then it should
not panic if that resource is not available to clean up
Phases:
Prepare
Task LifeCycle
Claim Task
New Task Context
Parse Payloads
Unmarshal JSON Payload
Parse Engine Payload
Parse Plugin Payload
New TaskPlugin
Prepare
Plugin.Prepare
@gregarndt
gregarndt / rawmessage.go
Created January 20, 2016 16:32
raw message nil
func (self *Routes) ServeHTTP(res http.ResponseWriter, req *http.Request) {
payload := (*json.RawMessage)(nil)
if req.Body != nil {
body, err := ioutil.ReadAll(req.Body)
// If we fail to create a request notify the client.
if err != nil {
res.WriteHeader(500)
fmt.Fprintf(res, "Failed to generate request (could not read http body) - %s", err)
return
This file has been truncated, but you can view the full file.
$ mach taskcluster-graph --project='mozilla-central' --message='some message' --owner='garndt@mozilla.com' --head-repository https://hg.mozilla.org/mozilla-central --head-rev tip
Querying URL for pushdate: https://hg.mozilla.org/mozilla-central/json-pushes?changeset=tip
{
"scopes": [
"queue:route:index.gecko.v1.mozilla-central.latest.linux.linux32.opt",
"docker-worker:cache:workspace-emulator-jb-opt",
"docker-worker:cache:build-aries-debug",
"docker-worker:cache:build-aries-spark-ota-debug-objdir-gecko-mozilla-central",
"queue:route:index.buildbot.revisions.tip.mozilla-central.android-api-11-b2gdroid",
"docker-worker:cache:build-nexus-4-user-objdir-gecko-mozilla-central",
import assert from 'assert';
import DockerWorker from '../dockerworker';
import TestWorker from '../testworker';
suite('allow ptrace', () => {
let worker;
setup(async () => {
worker = new TestWorker(DockerWorker);
await worker.launch();
});
import assert from 'assert';
import DockerWorker from '../dockerworker';
import TestWorker from '../testworker';
suite('allow ptrace', () => {
let worker;
setup(async () => {
worker = new TestWorker(DockerWorker);
await worker.launch();
});
- [TC] B2G Emulator ICS (Debug)
- [TC] B2G Emulator ICS (Opt)
- [TC] B2G Emulator JB (Debug)
- [TC] B2G JB Emulator: (Opt)
- [TC] B2G Emulator KK (Debug)
- [TC] B2G KK Emulator (Opt)
- [TC] B2G KK X86 Emulator (Debug)
- [TC] B2G KK X86 Emulator (Opt)
- [TC] B2G Emulator L (Debug)
- [TC] B2G L Emulator (Opt)
@gregarndt
gregarndt / readme.md
Last active November 19, 2015 22:41

Docker Images for use in TaskCluster

This folder contains various docker images used in taskcluster as well as other misc docker images which may be useful for hacking on gecko.

Organization

Each folder describes a single docker image. We have two types of image sthat can be defined:

  1. Task Images (build-on-push)