This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blinkt; sys_platform == "linux" | |
google-api-python-client | |
google-auth-httplib2 | |
google-auth-oauthlib | |
python-dateutil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mach b/mach | |
--- a/mach | |
+++ b/mach | |
@@ -17,9 +17,6 @@ py2commands=" | |
jsshell-bench | |
marionette-test | |
jstests | |
- mozharness | |
- raptor | |
- raptor-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mach browsertime --setup | |
0:01.27 Downloading artifact to local cache: /Users/dhunt/.mozbuild/cache/browsertime/8745c3584f51f06e-ImageMagick-x86_64-apple-darwin18.7.0.tar.gz | |
0:02.00 Downloading... 0.0 % | |
0:02.47 Downloading... 5.0 % | |
0:02.61 Downloading... 10.0 % | |
0:02.73 Downloading... 15.1 % | |
0:02.82 Downloading... 20.0 % | |
0:02.91 Downloading... 25.1 % | |
0:02.99 Downloading... 30.0 % | |
0:03.08 Downloading... 35.1 % |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
import json | |
import statistics | |
pathlist = Path(Path.cwd()).glob("*.json") | |
for path in sorted(pathlist): | |
print(f"\n{path}") | |
print("=" * len(str(path))) | |
with open(path) as f: | |
data = json.load(f) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dataclasses import asdict, dataclass | |
import json | |
import os | |
import sys | |
from jsonschema import validate | |
# import requests | |
@dataclass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
with open("/Users/dhunt/Desktop/wpt.json") as f: | |
data = json.load(f) | |
for test in data: | |
location = test["data"]["location"] | |
request_headers = test["data"]["runs"]["1"]["firstView"]["requests"][0]["headers"]["request"] | |
user_agent = next(filter(lambda x: x.startswith("User-Agent:"), request_headers)) | |
print(f"location: {location}") | |
print(f"- user-agent: {user_agent}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/build/virtualenv_packages.txt b/build/virtualenv_packages.txt | |
--- a/build/virtualenv_packages.txt | |
+++ b/build/virtualenv_packages.txt | |
@@ -77,4 +77,5 @@ mozilla.pth:third_party/python/pyasn1 | |
mozilla.pth:third_party/python/pyasn1-modules | |
mozilla.pth:third_party/python/rsa | |
mozilla.pth:third_party/python/PyECC | |
+mozilla.pth:toolkit/components/telemetry/tests/marionette/harness | |
optional:packages.txt:comm/build/virtualenv_packages.txt | |
diff --git a/testing/marionette/mach_commands.py b/testing/marionette/mach_commands.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
failure { | |
script { | |
if (env.BRANCH_NAME == 'master') { | |
slackSend( | |
color: 'danger', | |
message: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})") | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mach python-test mozbase | |
Build configuration changed. Regenerating backend. | |
No build detected, test metadata may be incomplete. | |
No handlers could be found for logger "mozbuild.frontend.reader" | |
0:09.78 /Users/dhunt/workspace/firefox/testing/mozbase/manifestparser/tests/test_chunking.py | |
0:10.39 Traceback (most recent call last): | |
0:10.39 File "/Users/dhunt/workspace/firefox/testing/mozbase/manifestparser/tests/test_chunking.py", line 310, in <module> | |
0:10.39 mozunit.main() | |
0:10.39 File "/Users/dhunt/workspace/firefox/config/mozunit/mozunit/mozunit.py", line 240, in main | |
0:10.39 sys.exit(pytest.main(args)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pytest.fixture | |
def test_job(eleven_job_blobs, create_jobs): | |
eleven_job_blobs[0]['job']['result'] = 'testfailed' | |
return create_jobs(eleven_job_blobs[0:1])[0] | |
@pytest.fixture(name='log') | |
def fixture_log(test_job): | |
JobLog.objects.create( | |
job=test_job, |