Skip to content

Instantly share code, notes, and snippets.

@ahal
ahal / structured_log_consumer.py
Last active August 29, 2015 14:13
Consume structured mochitest logs from pulse
import json
import sys
import traceback
import requests
from mozillapulse.consumers import NormalizedBuildConsumer
def run(args=sys.argv[1:]):
pulse_args = {

[["Pushes", "Backouts", "Backout Rate"], [527, 50, 9.49]]

@ahal
ahal / testing-components-info.ipynb
Last active January 8, 2018 22:49
Bugzilla component info for the Testing product
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahal
ahal / index.html
Last active July 11, 2018 17:03
Sample Patch
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Diff to HTML by rtfpessoa</title>
<!--
Diff to HTML (template.html)
Author: rtfpessoa
-->
@ahal
ahal / comments.py
Last active July 12, 2018 15:07
misc
def getTestManifest(self, options):
if isinstance(options.manifestFile, TestManifest):
manifest = options.manifestFile
elif options.manifestFile and os.path.isfile(options.manifestFile):
manifestFileAbs = os.path.abspath(options.manifestFile)
assert manifestFileAbs.startswith(SCRIPT_DIR)
manifest = TestManifest([options.manifestFile], strict=False)
elif (options.manifestFile and
os.path.isfile(os.path.join(SCRIPT_DIR, options.manifestFile))):
manifestFileAbs = os.path.abspath(
@ahal
ahal / example-views.json
Last active September 5, 2018 13:41
Taskcluster views.json proposal
{
"taskGroupId": "<taskGroupId>",
"views": [
{
"type": "subtask",
"tasks": ["<task id>", "<task id>", "..."],
"context": {
"description": "Linux64 opt Mochitest",
"symbol": "M",
{
"from":"treeherder",
"limit":10,
"select":[
"build.date",
"job.type.name",
"action.request_time",
"build.revision12",
"failure.notes.text"
],
@ahal
ahal / example_recipe.py
Created October 24, 2018 13:35
Recipe Definition Example
DEFINITION = {
"name": "example_recipe",
"arguments": [ ... ],
"queries": [
{
"name": "query_name_1",
"callback": process_query_1,
},
{
"name": "query_name_2",
Method Pushes Percent Users Push / User
total 8438 100.0 314 26.87
mach try syntax 3601 42.7 220 16.37
vanilla try syntax 2468 29.2 74 33.35
mach try fuzzy 1923 22.8 91 21.13
mach try again 204 2.4 18 11.33
mach try release 110 1.3 20 5.5
mach try empty 88 1.0 17 5.18
other 44 0.5 16 2.75
Test Suite Platform Build Type Status Timestamp
accessible/tests/mochitest/actions/test_anchors.html mochitest-a11y maxosx64 opt OK 1543317176.259
accessible/tests/mochitest/actions/test_anchors.html mochitest-a11y maxosx64 debug OK 1543342455.13
accessible/tests/mochitest/actions/test_aria.html mochitest-a11y maxosx64 opt OK 1543317176.259
accessible/tests/mochitest/actions/test_aria.html mochitest-a11y maxosx64 debug OK 1543342455.13
accessible/tests/mochitest/actions/test_controls.html mochitest-a11y maxosx64 opt OK 1543317176.259
accessible/tests/moch