Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Halberstadt ahal

View GitHub Profile
View gist:670b149525bff0b6658c1a1a3cbb264c
from typing import Callable, Type
def register() -> Callable:
def wrap(cls: Type) -> Type :
return cls
return wrap
@ahal
ahal / last-month.md
Last active Jul 7, 2020
`mach try auto` decision task statuses
View last-month.md
Status Count Percent
completed 566 89.8
failed 61 9.7
canceled 2 0.3
claim-expired 1 0.2
@ahal
ahal / try_usage_last_month.md
Last active Jul 27, 2020
How try selectors are used over various time intervals
View try_usage_last_month.md
Method Pushes Percent Users Push / User Hours / Push
total 5557 100.0 279 19.92 48.6
mach try fuzzy 2392 43.0 160 14.95 29.2
mach try auto 696 12.5 94 7.4 57.3
mach try chooser 688 12.4 87 7.91 93.5
mach try again 643 11.6 59 10.9 39.3
mach try syntax 409 7.4 55 7.44 75.4
other 274 4.9 7 39.14 0.0
mach try empty 209 3.8 21 9.95 14.7
View scheduling-braindump.md

It's late and I'm tired, but I was lying in bed thinking about test scheduling (yeah, yeah), and had a moment of clarity. This is my attempt to write my thoughts down before falling asleep and losing them all.

We've been trying to think of ways to integrate code coverage into our scheduling algorithms somehow. The problem is that we don't have a reliable way of mapping test paths to chunks. Chunks vary by platform and even within the same platform tests can move around between chunks from one push to another. My realization is that to date we have been thinking of code coverage (or machine learning) reduction as something that happens during the optimization phase. Here are the full set of

View diagram.diff
diff --git a/tools/lint/docs/usage.rst b/tools/lint/docs/usage.rst
--- a/tools/lint/docs/usage.rst
+++ b/tools/lint/docs/usage.rst
@@ -1,14 +1,28 @@
Running Linters Locally
=======================
Using the Command Line
----------------------
View rst_error.txt
Traceback (most recent call last):
File "/home/ahal/dev/mozilla-central/python/mozlint/mozlint/roller.py", line 39, in _run_worker
res = func(paths, config, **lintargs) or []
File "/home/ahal/dev/mozilla-central/python/mozlint/mozlint/types.py", line 50, in __call__
return self._lint(paths, config, **lintargs)
File "/home/ahal/dev/mozilla-central/python/mozlint/mozlint/types.py", line 134, in _lint
return func(files, config, **lintargs)
File "/home/ahal/dev/mozilla-central/tools/lint/rst/__init__.py", line 100, in lint
filename, lineno, error, level, message = parse_with_split(errors)
File "/home/ahal/dev/mozilla-central/tools/lint/rst/__init__.py", line 65, in parse_with_split
View code-review.diff
diff --git a/tools/lint/license.yml b/tools/lint/license.yml
--- a/tools/lint/license.yml
+++ b/tools/lint/license.yml
@@ -1,28 +1,44 @@
---
license:
description: License Check
include:
- .
exclude:
View gist:aa0b07b21ec4f743999d9e5aaf71acb8
Poetry
======
* Version: 0.12.11
* Python: 3.6.8
Virtualenv
==========
View gist:0a3487f5646b36c0e93adb32a7203629
try_usage:
recipe: try_usage
from: now-week
to: now
try_usage:
command:
adr try_usage --from now-week --to now
@ahal
ahal / compute-hours-month.md
Last active Jan 17, 2019
Total Opt Compute Hours by Branch from 2018-12-17 to 2019-01-17
View compute-hours-month.md
Branch Total Compute Hours Percentage
total 422461 100.0
autoland 203398 48.1
mozilla-inbound 126464 29.9
mozilla-central 92599 21.9
You can’t perform that action at this time.