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 Sep 15, 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 3885 100.0 252 15.42 56.0
mach try fuzzy 1740 44.8 138 12.61 40.9
mach try chooser 600 15.4 69 8.7 96.8
mach try auto 537 13.8 88 6.1 60.3
mach try again 408 10.5 48 8.5 53.7
other 157 4.0 11 14.27 0.0
mach try syntax 146 3.8 22 6.64 69.9
mach try empty 124 3.2 19 6.53 5.9
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.