Skip to content

Instantly share code, notes, and snippets.

View davehunt's full-sized avatar

Dave Hunt davehunt

View GitHub Profile
@davehunt
davehunt / sp3.py
Last active July 26, 2023 13:27
Add [sp3] to whiteboard for all bugs blocking the speedometer3 meta bug
# TODO exclude intermittents?
from datetime import datetime, timedelta
import re
import bugzilla
PROD_URL = "bugzilla.mozilla.org"
PROD_API_KEY = ""
bzapi = bugzilla.Bugzilla(PROD_URL, api_key=PROD_API_KEY)
@davehunt
davehunt / safari.patch
Created July 7, 2022 19:38
Enable Raptor Browsertime tests on Safari (macOS)
diff --git a/testing/mozharness/external_tools/performance-artifact-schema.json b/testing/mozharness/external_tools/performance-artifact-schema.json
--- a/testing/mozharness/external_tools/performance-artifact-schema.json
+++ b/testing/mozharness/external_tools/performance-artifact-schema.json
@@ -12,7 +12,8 @@
"fennec",
"geckoview",
"refbrow",
- "fenix"
+ "fenix",
+ "safari"
from datetime import datetime, timedelta, time, timezone
import calendar
import bugzilla
from dateutil.relativedelta import relativedelta
PROD_URL = "bugzilla.mozilla.org"
bzapi = bugzilla.Bugzilla(PROD_URL)
@davehunt
davehunt / alt-serverplayback.py
Created November 4, 2021 13:16
mitmproxy server playback with 404s and reversed flow
import hashlib
import typing
import urllib
import mitmproxy.types
from mitmproxy import command, hooks
from mitmproxy import ctx, http
from mitmproxy import exceptions
from mitmproxy import flow
from mitmproxy import io
diff -r /Users/dave/workspace/moz-current-tests/before.txt /Users/dave/workspace/moz-current-tests/after.txt
343,345d342
< browsertime-mobile-fenix-youtube-playback-h264-sfr-wr-e10s
< No tests satisfying criteria
<
349,351d345
< browsertime-mobile-fenix-youtube-playback-hfr-wr-e10s
< No tests satisfying criteria
<
355,357d348
221,226d220
< browsertime-tp6-chrome-facebook-redesign
< No tests satisfying criteria
<
< browsertime-tp6-chrome-facebook-redesign-e10s
< No tests satisfying criteria
<
365,370d358
< browsertime-tp6-chromium-facebook-redesign
< No tests satisfying criteria
*** /Users/dave/workspace/moz-current-tests/before.txt 2021-03-22 19:14:46.000000000
--- /Users/dave/workspace/moz-current-tests/after.txt 2021-03-22 19:14:55.000000000
***************
*** 1,60 ****
--- 1,65 ----
Report Breakdown
browsertime-benchmark-firefox-ares6-e10s
test-linux1804-64-shippable-qr/opt: mozilla-beta, trunk
test-linux1804-64-shippable/opt: mozilla-beta, trunk
*** /Users/dave/workspace/moz-current-tests/before.txt 2021-03-18 20:05:00.000000000
--- /Users/dave/workspace/moz-current-tests/after.txt 2021-03-18 20:02:33.000000000
***************
*** 6,70 ****
test-macosx1015-64-shippable-qr/opt: mozilla-beta, trunk
test-windows10-64-shippable-qr/opt: mozilla-beta, trunk
test-windows10-64-shippable/opt: mozilla-beta, trunk
browsertime-benchmark-firefox-ares6-fis-e10s
test-linux1804-64-shippable-qr/opt: mozilla-central
diff -r /Users/dave/workspace/mozilla-unified/tasks-before-pageload-removal.json /Users/dave/workspace/mozilla-unified/tasks-after-pageload-removal.json
1669562c1669562
< "test-android-hw-g5-7-0-arm7-api-16-shippable/opt-browsertime-tp6m-profiling-geckoview-cold-amazon-e10s": {
---
> "test-android-hw-g5-7-0-arm7-api-16-shippable/opt-browsertime-tp6m-profiling-geckoview-amazon-e10s": {
1669569c1669569
< "raptor_try_name": "browsertime-tp6m-profiling-geckoview-cold-amazon",
---
> "raptor_try_name": "browsertime-tp6m-profiling-geckoview-amazon",
1669581c1669581
diff -r /Users/dave/workspace/mozilla-unified/tasks-selected-old.txt /Users/dave/workspace/mozilla-unified/tasks-selected.txt
0a1,253
> test-android-hw-g5-7-0-arm7-api-16-shippable/opt-browsertime-tp6m-live-fenix-allrecipes-wr-e10s
> test-android-hw-g5-7-0-arm7-api-16-shippable/opt-browsertime-tp6m-live-fenix-amazon-wr-e10s
> test-android-hw-g5-7-0-arm7-api-16-shippable/opt-browsertime-tp6m-live-fenix-bing-search-restaurants-wr-e10s
> test-android-hw-g5-7-0-arm7-api-16-shippable/opt-browsertime-tp6m-live-fenix-bing-wr-e10s
> test-android-hw-g5-7-0-arm7-api-16-shippable/opt-browsertime-tp6m-live-fenix-booking-wr-e10s
> test-android-hw-g5-7-0-arm7-api-16-shippable/opt-browsertime-tp6m-live-fenix-cnn-wr-e10s
> test-android-hw-g5-7-0-arm7-api-16-shippable/opt-browsertime-tp6m-live-fenix-ebay-kleinanzeigen-search-wr-e10s
> test-android-hw-g5-7-0-arm7-api-16-shippable/opt-browsertime-tp6m-live-fenix-ebay-kleinanzeigen-wr-e10s