Skip to content

Instantly share code, notes, and snippets.

View nthomas-mozilla's full-sized avatar

Nick Thomas nthomas-mozilla

View GitHub Profile
import json
import logging
# .DEBUG for lots more info
logging.basicConfig(level=logging.INFO)
from balrogclient.api import Release
r = Release('Firefox-61.0.1-build1', api_root='http://localhost:8080/api')
content, data_version = r.get_data()
diff --git a/auslib/web/admin/base.py b/auslib/web/admin/base.py
index 59fa9fa..9f82527 100644
--- a/auslib/web/admin/base.py
+++ b/auslib/web/admin/base.py
@@ -3,6 +3,8 @@ import re
import connexion
import logging
import auslib
+import gzip
+import io
{
"releases": {
"firefox-1.0": {
"build_number": 1,
"category": "major",
"date": "2004-11-09",
"description": null,
"is_security_driven": false,
"product": "firefox",
"version": "1.0"
release="60.0" product="Firefox" platform="Linux_x86-gcc3" build_id="20180426170554" locales="de en-US ru" channel="release-localtest" patch_types="complete partial" from="/firefox/releases/60.0b16/linux-i686/%locale%/firefox-60.0b16.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/60.0-candidates/build2/linux-i686/%locale%/firefox-60.0.tar.bz2" to_build_id="20180503143129" to_display_version="60.0" to_app_version="60.0" updater_package="/firefox/releases/60.0b16/linux-x86_64/%locale%/firefox-60.0b16.tar.bz2"
diff --git a/taskcluster/taskgraph-diff/taskgraph-diff.py b/taskcluster/taskgraph-diff/taskgraph-diff.py
--- a/taskcluster/taskgraph-diff/taskgraph-diff.py
+++ b/taskcluster/taskgraph-diff/taskgraph-diff.py
@@ -2,27 +2,32 @@
"""Diff the `mach taskgraph` output from two runs."""
from __future__ import print_function
import argparse
import dictdiffer
import json
import os
@nthomas-mozilla
nthomas-mozilla / release-tasks.diff
Created January 18, 2018 05:02
Firefox 52 and 58 release automation
diff --git a/releasetasks/templates/desktop/enUS.yml.tmpl b/releasetasks/templates/desktop/enUS.yml.tmpl
index 916ff15..078eb17 100644
--- a/releasetasks/templates/desktop/enUS.yml.tmpl
+++ b/releasetasks/templates/desktop/enUS.yml.tmpl
@@ -473,6 +473,8 @@
# explicitly set MAR channel name, ACCEPTED_MAR_CHANNEL_IDS is the corresponding variable in funsize.py
ACCEPTED_MAR_CHANNEL_IDS: {{ accepted_mar_channel_id }}
{% endif %}
+ MAR_TOOLS_URL: "https://queue.taskcluster.net/v1/task/{taskid}/artifacts/public/build/host/bin".format(
+ taskid=en_US_config["platforms"]["linux64"]["unsigned_task_id"])
@nthomas-mozilla
nthomas-mozilla / gecko.diff
Created January 18, 2018 04:59
funsize changes
diff --git a/taskcluster/docker/funsize-update-generator/scripts/funsize.py b/taskcluster/docker/funsize-update-generator/scripts/funsize.py
--- a/taskcluster/docker/funsize-update-generator/scripts/funsize.py
+++ b/taskcluster/docker/funsize-update-generator/scripts/funsize.py
@@ -161,19 +161,21 @@ class WorkEnv(object):
def download_buildsystem_bits(self, repo, revision):
prefix = "{repo}/raw-file/{revision}/tools/update-packaging"
prefix = prefix.format(repo=repo, revision=revision)
for f in ("make_incremental_update.sh", "common.sh"):
url = "{prefix}/{f}".format(prefix=prefix, f=f)
download(url, dest=os.path.join(self.workdir, f), mode=0o755)
diff --git a/release/updates/release-firefox-linux.cfg b/release/updates/release-firefox-linux.cfg
--- a/release/updates/release-firefox-linux.cfg
+++ b/release/updates/release-firefox-linux.cfg
@@ -1,131 +1,41 @@
-release="57.0.1" product="Firefox" platform="Linux_x86-gcc3" build_id="20171128222554" 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 ka kab kk km kn ko lij lt lv mai mk ml mr ms my 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 ur uz vi xh zh-CN zh-TW" channel="release-localtest" patch_types="complete partial" from="/firefox/releases/57.0.1/linux-i686/%locale%/firefox-57.0.1.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/57.0.2-candidates/build2/linux-i686/%locale%/firefox-57.0.
@nthomas-mozilla
nthomas-mozilla / info.md
Last active November 23, 2017 04:01
Balrog 57.0.1 plan

Freeze the current state for release

The six special rules which point to 57.0-build4 releases using channel release* will need to use release, so that we can set different mappings on the test channels.

--> Schedule rule updates for 682, 681, 680, 679, 678, 677 to set Channel: release

Ask for Release Management signoff after next section.

Add limits to suppress WNP for update from 57.0

release rules 682, 680 and 679 already have version limits of 56.0, <56.0, and <56.0 respectively, so no action needed. Rules 678 and 677 are unrestricted and could match requests from 57.0.

--- before 2017-11-08 15:13:55.000000000 +1300
+++ after-deved-only 2017-11-08 15:22:39.000000000 +1300
@@ -1,5495 +1,6551 @@
{
"ach": {
"52.4.1esr": {
"Linux": {
"filesize": 0
},
"OS X": {