Skip to content

Instantly share code, notes, and snippets.

View lightsofapollo's full-sized avatar

James Lal lightsofapollo

View GitHub Profile
Taskgraph creation error Error: You didn't give the task-graph scopesallowing it define tasks on the queue.
{
"message": "You didn't give the task-graph scopesallowing it define tasks on the queue.",
"error": [
{
"message": "Authorization Failed",
"error": {
"message": "Authorization Failed",
"error": {
"info": "None of the scope-sets was satisfied",
{
"scopes": [
"docker-worker:cache:sources-mozilla-central",
"docker-worker:cache:sources-gaia",
"docker-worker:cache:build-b2g-desktop-objects",
"docker-worker:cache:build-mulet-linux-objects",
"queue:define-task:aws-provisioner/b2gtest",
"queue:create-task:aws-provisioner/b2gtest",
"queue:define-task:aws-provisioner/b2gbuild",
"queue:create-task:aws-provisioner/b2gbuild"

Caches

We should be using as many caches as possible so what about something like this:

Create some json file (we can move this into the tree at some point?)

{
  "repository": "url"
}

From mozharness the workflow would be like this:

  • job starts
  • create task
  • claim task you just created
  • [keep reclaiming task]
  • attach artifacts to task
  • mark task as completed success/fail
  • job ends
suiteSetup(function(done) {
requrie('magicfoobar', function() {
// you have magic foobar
done()
});
});
var co = require('co');
var childProc = require('child_process');
var fs = require('co-fs');
var fsPath = require('path');
var debug = require('debug')('adbsync');
var format = require('util').format;
function exec(cmd) {
return function(callback) {
childProc.exec(cmd, callback);
I/Gecko ( 4144): 1414714825425 Marionette INFO marionette enabled via build flag and pref
D/nfcd ( 212): Socket connected
D/nfcd ( 212): void* NfcService::eventLoop(): NFCService msg=11
D/nfcd ( 212): processNotificaton notification=2000
D/nfcd ( 212): void NfcIpcSocket::writeToOutgoingQueue(uint8_t*, size_t) enter, data=0xb8b9ee68, dataLen=20
D/nfcd ( 212): Writing 20 bytes to gecko
W/GeckoConsole( 4144): [JavaScript Error: "TypeError: classInfo.interfaces is undefined" {file: "resource://gre/modules/XPCOMUtils.jsm" line: 136}]
I/GeckoConsole( 4144): While creating services from category 'profile-after-change', could not create service for entry 'timeservice', contract ID '@qti.qualcomm.com/timeservice;1'
I/Gecko ( 4144): 1414714825741 Marionette INFO marionette-server.js loaded
I/Gecko ( 4144): 1414714825960 Marionette INFO B2G emulator: no
var spawn = require('child_process').spawn;
var child = spawn('adb', ['logcat']);
function logGecko(data) {
if (data.toString().indexOf('Gecko') !== -1) {
process.stdout.write(data.toString());
}
}
child.stdout.on('data', logGecko);
FROM ubuntu:14.04
RUN useradd xfoo
RUN mkdir -p /home/xfoo && chown -R xfoo:xfoo /home/xfoo
RUN mkdir -p /home/xfoo/gaia && chown -R xfoo:xfoo /home/xfoo/gaia
USER xfoo
mach ci-docker-run -e REPOSITORY=https://hg.mozilla.org/mozilla-central -e REVISION=xxxx builder build-b2g-desktop.sh