Closed Bug 569615 Opened 15 years ago Closed 14 years ago

Inlude details of the target add-on in the test report

Categories

(Mozilla QA Graveyard :: Mozmill Automation, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

Attachments

(2 files, 1 obsolete file)

Now with the add-ons test-run in place we will have to make sure that all necessary data from the tests will be send to the report server.
Depends on: 564957
No longer blocks: 562822
Depends on: 562822
Component: Mozmill → Mozmill Tests
QA Contact: mozmill → mozmilltests
Move of Mozmill related project bugs to newly created components. You can filter out those emails by using "Mozmill-Tests-to-MozillaQA" as criteria.
Component: Mozmill Tests → Mozmill Automation
Product: Testing → Mozilla QA
QA Contact: mozmill-tests → mozmill-automation
Whiteboard: [mozmill-automation]
Version: Trunk → unspecified
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Summary: Send complete test results for add-on tests to the report server → Send complete test results for add-on tests to the Mozmill results dashboard
Blocks: 644961
Summary: Send complete test results for add-on tests to the Mozmill results dashboard → Inlude details of the target add-on in the test report
Attached patch Patch v1 (obsolete) (deleted) — Splinter Review
This patch adds the details of the add-on under test to the report. We only need the id, name, and version. All the other information we will retrieve via the Add-ons Manager within the tests in the future.
Attachment #521933 - Flags: review?(jhammel)
Comment on attachment 521933 [details] [diff] [review] Patch v1 + def get_text(element): I wouldn't put this as a sub-function as it really is outside of the function scope (getting details for the addon) and serves its own purpose(getting the text for an xml minidom node whereas better xml parsers would already have a function for this). + details = { + 'id' : 'n/a', + 'name': 'n/a', + 'version': 'n/a', + } Maybe use None for the keys or a non-true singleton class that stringifies to 'n/a' Other than that, looks good and much more robust than the way we do it in mozprofile. I haven't tested, but IIRC you have :) r=me
Attachment #521933 - Flags: review?(jhammel) → review+
We might want to upstream some/all of this to mozprofile. The way we parse install.rdf is fairly error-prone and I'd like to make it better (that said, abict it works on all use-cases in the wild that we've tried in its current incarnation). We might want an addons module within mozprofile where we put this sort of thing. This patch goes some ways towards implementing a (basic) RDF parser. Maybe we should go that way since we've already rolled so much of our own and we're nervous about taking dependencies (on e.g. a full rdf parser). Its my opinion that good software development practice is to consume software, but understand that in the current state of (e.g.) mozilla-central, this isn't as trivial as would necessarily make it convenient
(In reply to comment #3) > Comment on attachment 521933 [details] [diff] [review] > Patch v1 > + def get_text(element): > I wouldn't put this as a sub-function as it really is outside of the function > scope (getting details for the addon) and serves its own purpose(getting the It's the same as for the get_namespace_id method. So you say we should move both out to a separate module?
(In reply to comment #5) > (In reply to comment #3) > > Comment on attachment 521933 [details] [diff] [review] > > Patch v1 > > + def get_text(element): > > I wouldn't put this as a sub-function as it really is outside of the function > > scope (getting details for the addon) and serves its own purpose(getting the > > It's the same as for the get_namespace_id method. So you say we should move > both out to a separate module? Its hard for me to assess what exactly should be done, not really knowing the plans for this code. Ideally this sort of thing would go in mozprofile and you could just consume it. That aside, they should at least (IMHO) be free-standing functions since they don't rely on the state of the "closure" you're in and they are genuinely standalone methods.
Attached patch Patch v2 (deleted) — Splinter Review
Implemented latest review comments and created new rdf_parser module.
Attachment #521933 - Attachment is obsolete: true
Attachment #522490 - Flags: review?(jhammel)
Comment on attachment 522490 [details] [diff] [review] Patch v2 looks good!
Attachment #522490 - Flags: review?(jhammel) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
A regression has been regressed by that landing. Now the add-ons testrun is reported as report_type="mozmill-test". Patch upcoming.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch follow-up for report_type (deleted) — Splinter Review
Attachment #522775 - Flags: review?(jhammel)
Comment on attachment 522775 [details] [diff] [review] follow-up for report_type wfm :)
Attachment #522775 - Flags: review?(jhammel) → review+
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: