Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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.

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

@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 = {