Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am nthomas-mozilla on github. | |
* I am nrthomas (https://keybase.io/nrthomas) on keybase. | |
* I have a public key ASAYs9NkooQb2mn0NxgxY9bUJbt6cAin-8HDdPZTWlnU8Ao | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Local notes | |
=========== | |
These are variations to https://wiki.mozilla.org/ReleaseEngineering/How_To/Setup_Personal_Development_Master for OS X. | |
My masters live in ~/masters, eg ~/masters/build1 | |
First time setup | |
* installed mysql with homebrew, because pip needs it for MySQL-python in the venv. Also python. | |
* virtualenv is installed globally by pip (ie in /usr/local/bin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# detect problems | |
from boto.s3.connection import S3Connection | |
conn = S3Connection(anon=True) | |
bucket = conn.get_bucket('net-mozaws-prod-delivery-archive') | |
exclusions = [ | |
r"^.*tests.*$", | |
r"^.*crashreporter.*$", | |
r"^.*[^k]\.zip(\.asc)?$", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/release/updates/beta-firefox-linux.cfg b/release/updates/beta-firefox-linux.cfg | |
--- a/release/updates/beta-firefox-linux.cfg | |
+++ b/release/updates/beta-firefox-linux.cfg | |
@@ -1,65 +1,42 @@ | |
release="47.0" product="Firefox" platform="Linux_x86-gcc3" build_id="20160523113146" locales="ach af an ar as ast az be bg bn-BD bn-IN br bs ca cak cs cy da de dsb el en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa ff fi fr fy-NL ga-IE gd gl gn gu-IN he hi-IN hr hsb hu hy-AM id is it ja kk km kn ko lij lt lv mai mk ml mr ms nb-NO nl nn-NO or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta te th tr uk uz vi xh zh-CN zh-TW" channel="beta-localtest" patch_types="complete partial" from="/firefox/releases/47.0b8/linux-i686/%locale%/firefox-47.0b8.tar.bz2" aus_server="https://aus5.mozilla.org" ftp_server_from="https://archive.mozilla.org/pub" ftp_server_to="https://archive.mozilla.org/pub" to="/firefox/candidates/47.0b9-candidates/build1/linux-i686/%locale%/firefox-47.0b9.tar.bz2" | |
release="47.0" prod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime, timedelta | |
import argparse | |
import json | |
import taskcluster | |
def get_namespaces(route): | |
global index | |
payload = {} | |
results = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [], | |
"source": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python | |
Python 2.7.12 (default, Oct 11 2016, 05:24:00) | |
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> | |
>>> from datetime import datetime, timedelta | |
>>> from boto.ec2 import connect_to_region | |
>>> connection = connect_to_region('us-west-2') | |
>>> | |
>>> start_time = datetime.utcnow() - timedelta(hours=6) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python 2.7.12 (default, Oct 11 2016, 05:24:00) | |
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> from datetime import datetime, timedelta | |
>>> from boto.ec2 import connect_to_region | |
>>> connection = connect_to_region('us-west-2') | |
>>> | |
>>> start_time = datetime.utcnow() - timedelta(hours=6) | |
>>> start_time = start_time.isoformat() + "Z" | |
>>> import logging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def hasPermission(self, username, thing, action, product=None, transaction=None): | |
perm = self.getPermission(username, "admin", transaction=transaction) | |
if perm: | |
options = perm["options"] | |
if options and options.get("products") and product not in options["products"]: | |
# Supporting product-wise admin permissions. If there are no options | |
# with admin, we assume that the user has admin access over all | |
# products. | |
return False | |
return True |
OlderNewer