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
[callek@lyra type-fest]$ rg -i -C6 Error
readme.md
160-
161- submitContactForm({
162- email: 'ex@mple.com',
163- message: 'Hi! Could you tell me more about…',
164- });
165-
166: // TypeScript error: missing property 'message'
167- submitContactForm({
$ hg diff
diff --git taskcluster/ci/test/awsy.yml taskcluster/ci/test/awsy.yml
--- taskcluster/ci/test/awsy.yml
+++ taskcluster/ci/test/awsy.yml
@@ -33,16 +33,19 @@ job-defaults:
.*-devedition/.*: [] # don't run on devedition
(linux|win|mac)(?!.*shippable).*/opt: []
default: ['integration', 'mozilla-central', 'mozilla-beta', 'mozilla-release']
fission-run-on-projects:
by-test-platform:
@Callek
Callek / WIP_Patch.diff
Created July 1, 2020 20:51
Implicitly Run Tasks
diff --git taskcluster/taskgraph/util/attributes.py taskcluster/taskgraph/util/attributes.py
--- taskcluster/taskgraph/util/attributes.py
+++ taskcluster/taskgraph/util/attributes.py
@@ -2,16 +2,17 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import absolute_import, print_function, unicode_literals
import re
This file has been truncated, but you can view the full file.
--- clean_routes.txt 2020-05-12 21:02:54.565760379 -0400
+++ dirty_routes.txt 2020-05-12 20:41:54.011147377 -0400
@@ -153,23 +153,20 @@
"index.gecko.cache.level-1.docker-images.v2.image_builder.pushdate.2017.10.31.20171031195649"
"index.gecko.cache.level-1.docker-images.v2.index-task.hash.07818f0eae2acd742ae2929f72836311342be2e20c902734501341afdc2c4e78"
"index.gecko.cache.level-1.docker-images.v2.index-task.latest"
"index.gecko.cache.level-1.docker-images.v2.index-task.pushdate.2017.10.31.20171031195649"
"index.gecko.cache.level-1.docker-images.v2.lint.hash.ec90772db0b7efe9d2a93fd1ae2fc73e1a3530f0d7f11fd60478ca89ab35b791"
"index.gecko.cache.level-1.docker-images.v2.lint.latest"
"index.gecko.cache.level-1.docker-images.v2.lint.pushdate.2017.10.31.20171031195649"
$ cat new.Firefox-75.0b10-build1-No-Wnp.json | jq
{
"Product": "Firefox",
"blob": {
"schema_version": 9,
"name": "Firefox-75.0b10-build1-No-WNP",
"hashFunction": "sha512",
"platforms": {
"Linux_x86-gcc3": {
"OS_BOUNCER": "linux",
# to_unicode {{{1
def to_unicode(line: AnyStr) -> str:
"""Avoid ``b'line'`` type messages in the logs.
Args:
line (str): The bytecode or unicode string.
Returns:
str: the unicode-decoded string, if ``line`` was a bytecode string.
Otherwise return ``line`` unmodified.
@Callek
Callek / foo.py
Last active January 27, 2020 23:57
mypy confusion
import functools
from typing import Any, Awaitable, Callable, Dict, Optional, Type, TypeVar, cast
async def retry_async(func: Callable[..., Awaitable[Any]], *args: Any, **kwargs: Any) -> Any:
return await func(*args, **kwargs)
def retry_async_decorator(retry_exceptions: Optional[Type[BaseException]]=Exception, sleeptime_kwargs: Optional[Dict[str, Any]]=None) -> Callable[..., Awaitable[Any]]:
"""Decorate a function by wrapping ``retry_async`` around.
@Callek
Callek / tmp.txt
Created September 17, 2018 16:55
Finished processing dependencies for scriptworker==16.0.1
py36 runtests: commands[1] | py.test --cov-config .coveragerc --cov=scriptworker --cov-report term-missing scriptworker/test/test_cot_verify.py
==================================================== test session starts =====================================================
platform linux -- Python 3.6.6, pytest-3.8.0, py-1.6.0, pluggy-0.7.1 -- /data/.tox/py36/bin/python
cachedir: .pytest_cache
Using --random-order-bucket=module
Using --random-order-seed=260725
rootdir: /data, inifile: tox.ini
plugins: xdist-1.23.0, random-order-0.8.0, mock-1.10.0, forked-0.2, cov-2.6.0, asyncio-0.9.0
  • project:releng:balrog:action:*

    • Tells balrogscript to ...
    • Conflicts: with project:releng:...
    • Branch Restrictions: None
      • all-release-branches(:link to def:) - as of Scriptworker X.y
  • project:releng:balrog:action:*

    • Tells balrogscript to ...
    • Conflicts: with project:releng:...
    • Branch Restrictions: None
@Callek
Callek / 58.0 go live.md
Last active January 23, 2018 00:22
58 Balrog Changes
Rule ID Summary of rule Action
682 WNP win64 migration rule Schedule deletion
680 WNP osx bz2 rule Schedule Deletion
679 WNP bz2 rule Schedule Deletion
678 WNP lzma osx Schedule Deletion
677 WNP rule Change Locales to set A (below)
Change Version to <58.0
Set background rate to whatever relman says in GO e-mail
Set blob to 'Firefox-58.0-build6-WNP'