Closed Bug 864430 Opened 13 years ago Closed 13 years ago

update compare.py to pull xperf data from datazilla

Categories

(Testing :: Talos, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jmaher, Assigned: jmaher)

References

Details

Attachments

(1 file)

In compare.py we have previously compared one build to another build. It is time that we introduce datazilla into the picture. In doing this there are a lot of updates. Right now we have a need to pull xperf data from datazilla. I feel as though my current patch is sloppy, but getting a lot of the basic code in place for a good toolchain around pulling data from our databases.
Assignee: nobody → jmaher
Status: NEW → ASSIGNED
Attachment #740399 - Flags: review?(jhammel)
Comment on attachment 740399 [details] [diff] [review] use datazilla in compare.py, print xperf datazilla if requested (1.0) +branch_map['Try'] = {'pgo': {'id': 23, 'name': 'Try'}, + 'nonpgo': {'id': 113, 'name': 'Try'}} +branch_map['Firefox'] = {'pgo': {'id': 1, 'name': 'Firefox'}, + 'nonpgo': {'id': 94, 'name': 'Firefox-Non-PGO'}} +branch_map['Inbound'] = {'pgo': {'id': 63, 'name': 'Mozilla-Inbound'}, + 'nonpgo': {'id': 131, 'name': 'Mozilla-Inbound-Non-PGO'}} +branch_map['Cedar'] = {'pgo': {'id': 26, 'name': 'Cedar'}, + 'nonpgo': {'id': 26, 'name': 'Cedar'}} Ugh :( It'd be really nice to not have to have this sort of magic talos-side. Hopefully with treeherder we can move towards a canon +test_map['tp5o'] = {'id': 255, 'tbplname': 'tp5o_paint'} and again +platform_map['OSX10.8'] = 24 etc. I'd not be opposed to a ticket to either A. (ideally) move away from magic numbers; or B. have all the magic numbers and other such mappings in one place. +def getDatazillaPlatform(os, platform, osversion, product): Not sure if this should live here? Fine for now, but.... I don't know. Feels like datazilla_client and/or mozinfo (and/or other) would make a better long term home. + platform = 'OSX10.7' + elif osversion.startswith('OS X 10.8'): + platform = 'OSX10.8' + return platform Please check if platform is not None here and set platform=None at the top of function. +def getDatazillaCSET(revision, branchid): This probably belongs in datazilla_client. We can put here for now, but if so we should probably file a bug (i mean, github issue, sigh) and then file a bug to port this to use datazilla_client + if os.path.exists("%s.json" % revision): + response = open('%s.json' % revision, 'r') Please interpolate this string once. + if 'svg' not in suite and \ + 'kraken' not in suite and \ + 'sunspider' not in suite and \ + 'dromaeo' not in suite and \ + testrun['testrun']['options']['tpmozafterpaint']: Lord magic on high! Awful :( We should at least mark this with a big comment telling why and that this is a hack to be fixed. +def getDatazillaData(branchid): Again, not sure this ultimately belongs here. Overall, I'm not sure what to do here. I'm going to give an r+ with the intent of "if we need this now, this is a pretty sloppy hack but if it works, fine". compare.py is, iirc, a quick hack to allow developers to compare results until we get the datazilla story straight. It is hard to maintain as is and I'm not sure how it really relates to datazilla. Longer term, I'm not sure what the plan is, but there is datazilla_client and whatever metrics package that i'm not sure what the link is to specifically to talk to datazilla that should be used or compare.py deprecated in favor of. My opinion, of course, but I would hate to see us spending a lot of time on something that isn't a path forward
Attachment #740399 - Flags: review?(jhammel) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: