Closed Bug 586792 Opened 14 years ago Closed 14 years ago

Automation scripts should create canonical test paths before sending data to brasstacks

Categories

(Mozilla QA Graveyard :: Mozmill Automation, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: whimboo, Assigned: whimboo)

Details

Attachments

(2 files)

Right now we are sending full (absolute) paths in our reports up to brasstacks. That makes it hard to identify the same test modules. That said we should post-process the report data we get from Mozmill.
Attached patch WIP v1Splinter Review
This WIP introduces canonical path to our test results. It modifies the test path accordingly to the given root path (-t option) and the chosen test-run. It will not modify the "root_path" of the report.

Here some paths and the final results:

General tests
=============
c:\\test\\firefox\\nox\\mozmill-tests\\firefox\\testLayout\\testNavigateFTP.js
=> firefox/testLayout/testNavigateFTP.js

/test/nox/mozmill-tests/firefox/restartTests/testDefaultBookmarks/test1.js
=> firefox/restartTests/testDefaultBookmarks/test1.js

Addons tests
============
/test/firefox/nox/mozmill-tests/addons/toolbar@google.com/tests/testStart.js
=> addons/toolbar@google.com/tests/testStart.js

Update tests
============
/test/mozmill-tests/firefox/softwareUpdate/testDirectUpdate/test1.js
=> softwareUpdate/testDirectUpdate/test1.js

This patch has to work with Mozmill 1.4.1 and Mozmill 1.4.2. We have to keep the backward compatibility for now.

Geo, it would be great if you could test it with 1.4.1 at least on one platform and run tests with 1.4.2 on all platforms (win, linux, and mac). You can write the report to a file for Mozmill 1.4.2 (--report=file://filename) or send to brasstacks for Mozmill 1.4.1 (--report=http://brasstacks.mozilla.com/couchdb/mozmill). Sending to brasstacks for Mozmill 1.4.2 doesn't work at the moment due to bug 582979.
Attachment #465839 - Flags: feedback?(gmealer)
Geo, can you please make sure to check if this is what we want to have for our dashboard? I would like to push it as soon as possible. Thanks.
Still in progress testing, but summarizing the IRC conversation we just had:

I raised a concern that putting this functionality in at the execution script level tightly couples our process to these execution scripts.  Alternate execution methods (for example, mozmill --report) won't properly massage the paths.

My suggestions was that if the process needs to be path-dependent, we handle this on the couchapp side as a data massaging task there instead.  That way, any reporter would be treated the same way.

Per Henrik, this code will basically work on the couchapp side too, so I'm continuing to test it out.
Another good point is that we are more flexible on the couchapp side. The only requirement we will have when following that way is, that we need an update design doc which handles those transformations on the server side.
Thanks Geo. At the moment I'm tempted to move this code into the automation script itself until we have a working solution in the couchapp. That will make sure that all reports send via the script will have the correct path. Once bug 592652 has been fixed we can remove this code from the automation script.

Landed as:
http://hg.mozilla.org/qa/mozmill-automation/rev/c9d625e6961c
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment on attachment 465839 [details] [diff] [review]
WIP v1

Ah, forgot the review. Andrew can you please check? I will still leave it in our repository because we need it starting from today with the upgrade to Mozmill 1.5.
Attachment #465839 - Flags: review?(halbersa)
Attachment #465839 - Flags: feedback?(gmealer)
Attachment #465839 - Flags: feedback+
Well, after talking with jchris from couchio and checking our current code of the dashboard we already convert the path on the couchdb side. Another result from the talk with jchris was that we shouldn't worry about the absolute paths when uploading the results. We can simply strip of unwanted parts of the path while creating the view or using the show function. That way we are more flexible with changes in the future. Patch upcoming...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch backout patchSplinter Review
This will backout most of the latest changes except the little report_type fix.
Attachment #471978 - Flags: review?(gmealer)
Comment on attachment 471978 [details] [diff] [review]
backout patch

Compared this patch to previous, questioned hskupin on any differences.  Looks great!
Attachment #471978 - Flags: review?(gmealer) → review+
Landed as with the removal of "import re":
http://hg.mozilla.org/qa/mozmill-automation/rev/21fccffb5256

Closing as wontfix in favor of the couchdb relaxation.
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → WONTFIX
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
Attachment #465839 - Flags: review?(ahalberstadt) → review?
Attachment #465839 - Flags: review?
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: