Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View escapewindow's full-sized avatar

Aki Sasaki escapewindow

View GitHub Profile
@escapewindow
escapewindow / worker.diff
Last active August 18, 2020 22:27
try to clear modified later
diff --git a/src/core/worker.js b/src/core/worker.js
index d2c680c53..482c216ac 100644
--- a/src/core/worker.js
+++ b/src/core/worker.js
@@ -521,6 +521,9 @@ class WorkerMessageHandler {
annotationStorage,
filename,
}) {
+ const storageValues = annotationStorage
+ ? annotationStorage.getAll()
--- a/taskcluster/taskgraph/target_tasks.py
+++ b/taskcluster/taskgraph/target_tasks.py
@@ -621,18 +621,20 @@ def target_tasks_pine(full_task_graph, p
if standard_filter(task, parameters) or filter_out_shipping_phase(task, parameters):
return True
return [l for l, t in six.iteritems(full_task_graph.tasks) if filter(t)]
@_target_task('kaios_tasks')
def target_tasks_kaios(full_task_graph, parameters, graph_config):
@escapewindow
escapewindow / gist:19e81c290b665a6bf5c358222c16f654
Last active February 26, 2020 16:09
mac-notarize schema bustage
diff --git a/taskcluster/ci/config.yml b/taskcluster/ci/config.yml
--- a/taskcluster/ci/config.yml
+++ b/taskcluster/ci/config.yml
@@ -465,17 +465,20 @@ workers:
implementation: docker-worker
os: linux
worker-type: misc
mac-notarization:
diff --git a/grants.yml b/grants.yml
--- a/grants.yml
+++ b/grants.yml
@@ -1403,17 +1403,17 @@
- queue:create-task:highest:scriptworker-k8s/{trust_domain}-t-*
- queue:create-task:highest:scriptworker-prov-v1/{trust_domain}-{level}-*
- queue:create-task:highest:scriptworker-prov-v1/{trust_domain}-t-*
- queue:route:index.{trust_domain}.v2.xpi-manifest.*
to:
- project:
def test_foo(mocker):
"""Example test to change params per call to `bar`"""
params = [1, 2]
def fake_bar():
param = params.pop(0)
# use param
mocker.patch.object(module, "bar", new=fake_bar)
@escapewindow
escapewindow / staging-update.md
Last active June 26, 2019 21:41
staging update testing

Testing updates in a try staging release

update channel

To change the update channel of an already-built install, adjust $APPDIR/Contents/Resources/defaults/pref/channel-prefs.js to use pref("app.update.channel", $CHANNEL_NAME);

However, the cert used is baked into the updater based on channel name. Ideally we switch this channel name before the try staging release, or we may have to patch the updater cert (see below).

update cert

Essentially, if the try staging run has an update channel of, say, beta, the updater will expect the release mar cert but the MARs will be signed with the dep cert.

2019-03-07T04:54:32 INFO - build_task_dependencies signing ErvbaR2xRfObQlvMv4fAig
2019-03-07T04:54:32 INFO - find_sorted_task_dependencies signing ErvbaR2xRfObQlvMv4fAig
2019-03-07T04:54:32 INFO - found dependencies: [('signing:parent', 'bgqKgW4kSBi0-fgx14QmzQ'), ('signing:build', 'FkqSVkNRRFmHaHNLMulFnA')]
2019-03-07T04:54:33 DEBUG - signing:parent bgqKgW4kSBi0-fgx14QmzQ is docker-worker
2019-03-07T04:54:33 DEBUG - makedirs(/builds/scriptworker/work/cot/bgqKgW4kSBi0-fgx14QmzQ)
2019-03-07T04:54:33 INFO - build_task_dependencies signing:parent bgqKgW4kSBi0-fgx14QmzQ
2019-03-07T04:54:33 INFO - find_sorted_task_dependencies signing:parent bgqKgW4kSBi0-fgx14QmzQ
2019-03-07T04:54:33 INFO - found dependencies: [('signing:parent:parent', 'bgqKgW4kSBi0-fgx14QmzQ')]
2019-03-07T04:54:33 DEBUG - signing:build FkqSVkNRRFmHaHNLMulFnA is docker-worker
2019-03-07T04:54:33 DEBUG - makedirs(/builds/scriptworker/work/cot/FkqSVkNRRFmHaHNLMulFnA)
Thanks for the work so far! I know this is a trickier thing to port.
diff --git a/taskcluster/ci/docker-image/kind.yml b/taskcluster/ci/docker-image/kind.yml
--- a/taskcluster/ci/docker-image/kind.yml
+++ b/taskcluster/ci/docker-image/kind.yml
@@ -27,8 +27,10 @@ jobs:
index-task:
symbol: I(idx)
funsize-update-generator:
symbol: I(pg)
diff --git a/release/patcher-configs/mozEsr52-thunderbird-branch-patcher2.cfg b/release/patcher-configs/mozEsr52-thunderbird-branch-patcher2.cfg
--- a/release/patcher-configs/mozEsr52-thunderbird-branch-patcher2.cfg
+++ b/release/patcher-configs/mozEsr52-thunderbird-branch-patcher2.cfg
@@ -6,1315 +6,38 @@
<complete>
betatest-url http://archive.mozilla.org/pub/thunderbird/nightly/52.0.1-candidates/build1/update/%platform%/%locale%/thunderbird-52.0.1.complete.mar
esrtest-url http://archive.mozilla.org/pub/thunderbird/nightly/52.0.1-candidates/build1/update/%platform%/%locale%/thunderbird-52.0.1.complete.mar
path thunderbird/nightly/52.0.1-candidates/build1/update/%platform%/%locale%/thunderbird-52.0.1.complete.mar
url http://download.mozilla.org/?product=thunderbird-52.0.1-complete&os=%bouncer-platform%&lang=%locale%
</complete>
2,241d1
< "label": "balrog-beetmover-ar-signing-l10n-linux-nightly-1/opt",
< "label": "balrog-beetmover-ar-signing-l10n-linux64-nightly-1/opt",
< "label": "balrog-beetmover-ast-signing-l10n-linux-nightly-3/opt",
< "label": "balrog-beetmover-ast-signing-l10n-linux64-nightly-3/opt",
< "label": "balrog-beetmover-cs-signing-l10n-linux-nightly-1/opt",
< "label": "balrog-beetmover-cs-signing-l10n-linux64-nightly-1/opt",
< "label": "balrog-beetmover-de-signing-l10n-linux-nightly-4/opt",
< "label": "balrog-beetmover-de-signing-l10n-linux64-nightly-4/opt",
< "label": "balrog-beetmover-en-GB-signing-l10n-linux-nightly-2/opt",