Skip to content

Instantly share code, notes, and snippets.

View nthomas-mozilla's full-sized avatar

Nick Thomas nthomas-mozilla

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
### 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:
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)
# 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)?$",
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
from datetime import datetime, timedelta
import argparse
import json
import taskcluster
def get_namespaces(route):
global index
payload = {}
results = []
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
$ 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)
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
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