Example #1
0
from mozci.sources.buildjson import _fetch_data, BUILDS_DAY_FILE

jobs = _fetch_data(BUILDS_DAY_FILE % "2015-03-03")

for job in jobs:
    req_id = sorted(job.get("request_ids", []))
    prop_req_id = sorted(job["properties"].get("request_ids", []))

    if prop_req_id == [] and req_id != []:
        print "It is very rare that this will happen - %s" % job

    if len(prop_req_id) < len(req_id):
        print "It is even more rare that this will happen - %s" % job

    if req_id == [] and prop_req_id == [] and "Nightly" not in job["reason"]:
        print "Both request ids are empty - %s" % job

    if req_id != prop_req_id:
        print "Different req_ids - %s" % job
Example #2
0
from mozci.sources.buildjson import _fetch_data, BUILDS_DAY_FILE
from mozci.utils.tzone import pacific_time as pt
from mozci.utils.tzone import utc_time as ut

builds = _fetch_data(BUILDS_DAY_FILE % "2015-02-23")

endtimes_list = []
for job in builds:
    endtimes_list.append(job["endtime"])

endtimes_list.sort()
print "%s %s %s" % (endtimes_list[0], ut(endtimes_list[0]), pt(
    endtimes_list[0]))
print "%s %s %s" % (endtimes_list[-1], ut(
    endtimes_list[-1]), pt(endtimes_list[-1]))
from mozci.sources.buildjson import _fetch_data, BUILDS_DAY_FILE


jobs = _fetch_data(BUILDS_DAY_FILE % "2015-03-03")

for job in jobs:
    req_id = sorted(job.get("request_ids", []))
    prop_req_id = sorted(job["properties"].get("request_ids", []))

    if prop_req_id == [] and req_id != []:
        print "It is very rare that this will happen - %s" % job

    if len(prop_req_id) < len(req_id):
        print "It is even more rare that this will happen - %s" % job

    if req_id == [] and prop_req_id == [] and "Nightly" not in job["reason"]:
        print "Both request ids are empty - %s" % job

    if req_id != prop_req_id:
        print "Different req_ids - %s" % job
from mozci.sources.buildjson import _fetch_data, BUILDS_DAY_FILE
from mozci.utils.tzone import pacific_time as pt
from mozci.utils.tzone import utc_time as ut

builds = _fetch_data(BUILDS_DAY_FILE % "2015-02-23")

endtimes_list = []
for job in builds:
    endtimes_list.append(job["endtime"])

endtimes_list.sort()
print "%s %s %s" % (endtimes_list[0], ut(endtimes_list[0]), pt(endtimes_list[0]))
print "%s %s %s" % (endtimes_list[-1], ut(endtimes_list[-1]), pt(endtimes_list[-1]))