Skip to content

Instantly share code, notes, and snippets.

View Callek's full-sized avatar

Justin Wood (Callek) Callek

  • Anaconda, Inc
  • MA, USA
View GitHub Profile
(dump_masters)[jwood@dev-master1.srv.releng.scl3.mozilla.com dump_masters]$ cat diff_dump.txt | sed 's/\(.\{1,120\}\).*/\1/'
--- old_dump.txt 2015-02-02 17:42:11.525048438 -0800
+++ new_dump.txt 2015-02-02 17:31:47.622048441 -0800
@@ -298815,16 +298815,71 @@
SetBuildProperty {'doStepIf': <bound method NightlyBuildFactory.previousMarExists of <buildbotcustom.process.factor
SendChangeStep {'branch': 'alder-linux64_gecko-opt-unittest', 'command': None, 'comments': <WithProperties "%(comme
MockCommand {'command': ['python', 'mozharness/scripts/b2g_desktop_multilocale.py', '--config-file', 'multi_loca
C {'command': ['make', 'upload', 'AB_CD=multi'], 'description': ['make', 'upload'], 'descriptionDone': None, 'env':
SetBuildProperty {'doStepIf': <bound method NightlyBuildFactory.previousMarExists of <buildbotcustom.process.factor
C {'command': ['make', '-k', 'check'], 'description': None, 'descriptionDone': None, 'env': {'CCACHE_COMPRESS': '1'
(dump_masters)[jwood@dev-master1.srv.releng.scl3.mozilla.com dump_masters]$ cat diff_dump.txt | grep -U8 "^-" | sed 's/\(.\{1,12
0\}\).*/\1/'
--- old_dump.txt 2015-02-02 17:42:11.525048438 -0800
+++ new_dump.txt 2015-02-02 17:31:47.622048441 -0800
@@ -298815,16 +298815,71 @@
SetBuildProperty {'doStepIf': <bound method NightlyBuildFactory.previousMarExists of <buildbotcustom.process.factor
SendChangeStep {'branch': 'alder-linux64_gecko-opt-unittest', 'command': None, 'comments': <WithProperties "%(comme
MockCommand {'command': ['python', 'mozharness/scripts/b2g_desktop_multilocale.py', '--config-file', 'multi_loca
C {'command': ['make', 'upload', 'AB_CD=multi'], 'description': ['make', 'upload'], 'descriptionDone': None, 'env':
SetBuildProperty {'doStepIf': <bound method NightlyBuildFactory.previousMarExists of <buildbotcustom.process.factor
$ python tmp.py
Before, apikey:
foo
None
None
Before, username/password:
None
foo
bar
(relengapi)callek@Centaurus:~/mozilla/obj/relengapi/src$ git diff
diff --git a/relengapi/blueprints/slaveloan/model.py b/relengapi/blueprints/slaveloan/model.py
index 4a50318..cea89bc 100644
--- a/relengapi/blueprints/slaveloan/model.py
+++ b/relengapi/blueprints/slaveloan/model.py
@@ -64,6 +64,8 @@ class Loans(db.declarative_base('relengapi')):
id = sa.Column(sa.Integer, primary_key=True)
status = sa.Column(sa.String(50), nullable=False)
bug_id = sa.Column(sa.Integer, nullable=True)
+ requested_machine = sa.Column(sa.String(255), nullable=True)
(relengapi)callek@Centaurus:~/mozilla/obj/relengapi/src$ git diff
diff --git a/relengapi/blueprints/slaveloan/model.py b/relengapi/blueprints/slaveloan/model.py
index 4a50318..cea89bc 100644
--- a/relengapi/blueprints/slaveloan/model.py
+++ b/relengapi/blueprints/slaveloan/model.py
@@ -64,6 +64,8 @@ class Loans(db.declarative_base('relengapi')):
id = sa.Column(sa.Integer, primary_key=True)
status = sa.Column(sa.String(50), nullable=False)
bug_id = sa.Column(sa.Integer, nullable=True)
+ requested_machine = sa.Column(sa.String(255), nullable=True)
diff --git a/mozilla/project_branches.py b/mozilla/project_branches.py
--- a/mozilla/project_branches.py
+++ b/mozilla/project_branches.py
@@ -136,120 +136,121 @@ PROJECT_BRANCHES = {
'lock_platforms': True,
'platforms': {
# Limit to win64 for Bug 1164935
'win64': {},
'win64-debug': {},
},
Index: /home/callek/mozilla/git/ship-it/docker-compose.yml
index bbb6202..6cfa8a8 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,7 +1,21 @@
shipit:
build: ./
- command: python kickoff-web.py -d sqlite:///update.db --username=admin --password=password --host=0.0.0.0 --port=5000 --verbose
+ command: python kickoff-web.py -d mysql://shipit:shipitpw@shipitdb/shipit --username=admin --password=password --host=0.0.0.0 --port=5000 --verbose
ports:
@Callek
Callek / log
Created February 24, 2016 15:03
callek@Centaurus:~/mozilla/git/ship-it$ docker-compose up
Recreating shipit_shipitdb_1...
Recreating shipit_shipit_1...
Attaching to shipit_shipitdb_1, shipit_shipit_1
shipitdb_1 | 2016-02-24T15:02:31.774118Z 0 [Note] mysqld (mysqld 5.7.11) starting as process 1 ...
shipitdb_1 | 2016-02-24T15:02:31.776977Z 0 [Note] InnoDB: PUNCH HOLE support available
shipitdb_1 | 2016-02-24T15:02:31.776993Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
shipitdb_1 | 2016-02-24T15:02:31.776997Z 0 [Note] InnoDB: Uses event mutexes
shipitdb_1 | 2016-02-24T15:02:31.777000Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
shipitdb_1 | 2016-02-24T15:02:31.777013Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.8
test-platform.yml:
tier (optional):
demote: reduces the jobs tier by 1, if the job was already tier 3 it will not be ran.
promote: increases the jobs tier by 1 (if the job was specified as tier 1, it won't change)
@Callek
Callek / CHANGED
Created June 28, 2016 00:51
Bug 1281004 example 2
This creates expliict tierN lists for all-tests
It also implements a new $inherit magic attribute in the test definition (tests.yml). This magic attribute
is *only* allowed one deep, so no 30 levels of inheritence. All attributes in the parent test can be overridden
by the "child" version.
It has broader potential uses than the tier example here, but could become a tangled mess of annoyance.