Closed
Bug 568008
Opened 15 years ago
Closed 15 years ago
[mozmill] Update Mozmill tests which are affected by the new Litmus test data location
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect)
Mozilla QA Graveyard
Mozmill Tests
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: whimboo, Assigned: u279076)
References
Details
(Whiteboard: [mozmill-test-failure])
Attachments
(6 files, 2 obsolete files)
11.77 KB,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
11.88 KB,
patch
|
Details | Diff | Splinter Review | |
20.95 KB,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
31.24 KB,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
16.08 KB,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
33.23 KB,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
Last week we have moved the litmus test data from the Litmus dev repository (http://hg.mozilla.org/webtools/litmus/) to our own test data repository (http://hg.mozilla.org/qa/litmus-data/). Some of our Mozmill tests are referencing testcases at the old location.
Anthony, can you please check which scripts we have to update? Also for any test modules we will have to create a local version of the minimized test data in our mozmill repository, which we can load via httpd.
Reporter | ||
Comment 1•15 years ago
|
||
Please take this with higher priority as other open test failures.
Reporter | ||
Comment 2•15 years ago
|
||
Anthony, please move all local test data files to the central place under firefox/files. That way we can have a 1:1 relationship between the Litmus test data files and our Mozmill versions.
Here is a quick pass of what scripts are affected and how:
grep -r "testcase_files" .
./firefox/testPopups/testPopupsAllowed.js: var url = "https://litmus.mozilla.org/testcase_files/firefox/5918/index.html";
./firefox/testPopups/testPopupsBlocked.js: var url = "https://litmus.mozilla.org/testcase_files/firefox/5918/index.html";
./firefox/testPrivateBrowsing/testDisabledPermissions.js: "https://litmus.mozilla.org/testcase_files/firefox/5918/index.html",
./firefox/testPrivateBrowsing/testDisabledPermissions.js: "https://litmus.mozilla.org/testcase_files/firefox/cookies/cookie_single.html"
./firefox/testSearch/testAddMozSearchProvider.js: url : "https://litmus.mozilla.org/testcase_files/firefox/search/mozsearch.html"};
This patch does a few different things:
1. Creates the necessary local litmus-data structure and files
2. Updates the four test files which were using the old litmus-data:
* testPopupAllowed
* testPopupBlocked
* testDisabledPermissions
* testAddMozSearchPlugin
3. Resolves failures in the above tests related to moving of Litmus Data
Attachment #449741 -
Flags: review?(hskupin)
Sorry, had some debugging code in that last patch. Resubmitting with debugging code removed.
Attachment #449741 -
Attachment is obsolete: true
Attachment #449744 -
Flags: review?(hskupin)
Attachment #449741 -
Flags: review?(hskupin)
Reporter | ||
Updated•15 years ago
|
Attachment #449744 -
Flags: review?(hskupin) → review+
Reporter | ||
Comment 6•15 years ago
|
||
Comment on attachment 449744 [details] [diff] [review]
Patch v1
>\ No newline at end of file
Somehow all test files don't have an empty line at the end. I will add those before I check them into our repository.
Please create a specific patch for mozilla1.9.1 based on the one I will upload in a second.
Anthony, please also update all of our existing tests which already make use of the httpd server. All those test files should be moved to the firefox/test-files folder. Use 'hg mv' for it. We can check this in as a follow-up.
Reporter | ||
Comment 7•15 years ago
|
||
Reporter | ||
Comment 8•15 years ago
|
||
Comment on attachment 449899 [details] [diff] [review]
Updated patch (trunk, mozilla1.9.2) [checked-in]
Landed on default and 1.9.2:
http://hg.mozilla.org/qa/mozmill-tests/rev/1844482c24e5
http://hg.mozilla.org/qa/mozmill-tests/rev/095705fe76d6
Attachment #449899 -
Attachment description: Updated patch (trunk, mozilla1.9.2) → Updated patch (trunk, mozilla1.9.2) [checked-in]
I found an inconsistency across branches:
// Include necessary modules
var RELATIVE_ROOT = '../../shared-modules';
Some tests include the comment, some do not. This causes patch failures when the comment exists on one branch but not another. This patch includes the requested revisions plus adds this comment to all files which are missing it.
Attachment #449912 -
Flags: review?(hskupin)
Assignee | ||
Comment 10•15 years ago
|
||
I'll be adding the comment inconsistency mentioned in the previous comment to DEFAULT via the httpd patch.
Assignee | ||
Comment 11•15 years ago
|
||
Just FYI, here is the grep I used to identify files missing the comment:
grep -r -l "var RELATIVE_ROOT" `grep -r -L "// Include necessary modules" .`
Assignee | ||
Comment 12•15 years ago
|
||
This patch fixes the commenting inconsistency with INCLUDED MODULES on DEFAULT branch.
This also moves any existing local test files to the new firefox/test-files location to create consistency with litmus-date.
Finally, this updates any affected tests by the previously mentioned move.
Attachment #449919 -
Flags: review?(hskupin)
Reporter | ||
Comment 13•15 years ago
|
||
Comment on attachment 449912 [details] [diff] [review]
Patch v2 (1.9.1) [checked-in]
Landed on 1.9.1 as:
http://hg.mozilla.org/qa/mozmill-tests/rev/6e3f4586bb19
Attachment #449912 -
Attachment description: Patch v2 (1.9.1) → Patch v2 (1.9.1) [checked-in]
Attachment #449912 -
Flags: review?(hskupin) → review+
Reporter | ||
Comment 14•15 years ago
|
||
Comment on attachment 449919 [details] [diff] [review]
Follow-up - moving test files internally (default)
>rename from firefox/testPrivateBrowsing/files/geolocation.html
>rename to firefox/test-files/geolocation/geolocation.html
Please use position.html as name so that we are in sync with the litmus-data repository.
>rename from firefox/testAddons/files/plugin.html
>rename to firefox/test-files/plugins/plugin.html
Please rename it to default_plugin.html.
>- controller.open(localTestFolder + 'openinnewtab_target.html?id=' + i);
>+ controller.open(localTestFolder + '/tabbedbrowsing/openinnewtab_target.html?id=' + i);
Please split it up into two lines.
With those changes, r=me.
Attachment #449919 -
Attachment description: Patch v2 (default) → Follow-up - moving test files internally (default)
Attachment #449919 -
Flags: review?(hskupin) → review+
Assignee | ||
Comment 15•15 years ago
|
||
Here's a patch with the latest nits addressed. There is one anomaly in this patch:
>rename from firefox/testAddons/files/plugin.html
>rename to firefox/test-files/plugins/plugin.html
Please rename it to default_plugin.html.
For some reason, the hg mv registers in a patch as a deletion of plugin.html and a creation of default_plugin.html (not a "rename").
I think this is minor and should still apply ok.
Attachment #450206 -
Flags: review?(hskupin)
Reporter | ||
Comment 16•15 years ago
|
||
Comment on attachment 450206 [details] [diff] [review]
Patch v3 [checked-in]
> >rename from firefox/testAddons/files/plugin.html
> >rename to firefox/test-files/plugins/plugin.html
> Please rename it to default_plugin.html.
>
> For some reason, the hg mv registers in a patch as a deletion of plugin.html
> and a creation of default_plugin.html (not a "rename").
>
> I think this is minor and should still apply ok.
That's fine. We really don't loose any important information here. A test would be more critical.
Please use another commit message the next time when you create a follow-up for the same branch.
Attachment #450206 -
Flags: review?(hskupin) → review+
Reporter | ||
Updated•15 years ago
|
Attachment #449919 -
Attachment is obsolete: true
Reporter | ||
Updated•15 years ago
|
Attachment #450206 -
Attachment description: Patch v3 → Patch v3 [checked-in]
Reporter | ||
Comment 17•15 years ago
|
||
Comment on attachment 450206 [details] [diff] [review]
Patch v3 [checked-in]
Landed on default and 1.9.2:
http://hg.mozilla.org/qa/mozmill-tests/rev/2e25ec611a52
http://hg.mozilla.org/qa/mozmill-tests/rev/1857ec9e8826
So only a patch for 1.9.1 is remaining before we can call this fixed.
Assignee | ||
Comment 18•15 years ago
|
||
> Please use another commit message the next time when you create a follow-up for
the same branch.
How? I'll use this for the 1.9.1 follow up patch.
Reporter | ||
Comment 19•15 years ago
|
||
Same as what you did initially. Run 'hg qrefresh -m "message". See the message I have used for the check-in and which you should use for 1.9.1 too.
Reporter | ||
Comment 20•15 years ago
|
||
Anthony, while working with Jeff on bug 570596, I have seen that we accidentally have two slashes right after the port number. The reason is how we define the local test folder and add the test file itself:
const localTestFolder = collector.addHttpResource('../test-files');
controller.open(localTestFolder + "/tabbedbrowsing/openinnewtab.html");
To behave correctly we have to use the following method:
const localTestFolder = collector.addHttpResource('../test-files/');
controller.open(localTestFolder + "tabbedbrowsing/openinnewtab.html");
Please make sure in your remaining patch for 1.9.1 that this is included and also create another follow-up for default and 1.9.2.
Assignee | ||
Comment 21•15 years ago
|
||
Here is a revision to DEFAULT which should fix the "localhost:port//folder/file.html" issue.
Attachment #450683 -
Flags: review?(hskupin)
Reporter | ||
Comment 22•15 years ago
|
||
Comment on attachment 450683 [details] [diff] [review]
httpd path updates (default, mozilla1.9.2)
r=me
Landed on default and mozilla1.9.2 as:
http://hg.mozilla.org/qa/mozmill-tests/rev/be04885ffef8
http://hg.mozilla.org/qa/mozmill-tests/rev/f2834e5103c1
Please combine the remaining work for mozilla1.9.1 in a single patch.
Attachment #450683 -
Attachment description: Patch v3.1 (default) → httpd path updates (default, mozilla1.9.2)
Attachment #450683 -
Flags: review?(hskupin) → review+
Assignee | ||
Comment 23•15 years ago
|
||
This patch combines all the default/mozilla1.9.2 changes for mozilla1.9.1.
Attachment #450708 -
Flags: review?(hskupin)
Reporter | ||
Comment 24•15 years ago
|
||
Comment on attachment 450708 [details] [diff] [review]
Patch v3 (1.9.1)
> * Contributor(s):
>+ * Anthony Hughes <ahughes@mozilla.com>
> * Henrik Skupin <hskupin@mozilla.com>
Even that I have said I want to check-in those changes, I can't. The list of contributors isn't sorted alphabetically and if "(Original Author)" hasn't been explicitly added, the first entry shows the original author. That said please don't add yourself always implicitly as original author of the tests.
While you have to check that please also make sure to only add yourself to a test when you have made a real code contribution.
With all those updates r=me.
Attachment #450708 -
Flags: review?(hskupin) → review+
Assignee | ||
Comment 25•15 years ago
|
||
You told me on skype this would not be an issue, provided I did not do this in the future. Blocking this checkin because you don't think I've contributed enough to be called a "contributor" unnecessarily blocks progress. I need this before working on all other failures and you wanted this patch checked in early this week. You not checking this in means you've delayed checkin a week from the original timeline; resulting in this being a failed goal.
You should not be blocking on something so trivial this close to the end of the quarter.
I emplore you to check this is tonight to get the necessary changes in place. If you do that, I'll follow up with a patch to remove the line I added to the license block; if it's that important to you.
As I spoke with you on skype, any further revisions to this will not come from me until Monday.
Assignee | ||
Comment 26•15 years ago
|
||
(In reply to comment #24)
> (From update of attachment 450708 [details] [diff] [review])
> > * Contributor(s):
> >+ * Anthony Hughes <ahughes@mozilla.com>
> > * Henrik Skupin <hskupin@mozilla.com>
>
> Even that I have said I want to check-in those changes, I can't. The list of
> contributors isn't sorted alphabetically and if "(Original Author)" hasn't been
> explicitly added, the first entry shows the original author. That said please
> don't add yourself always implicitly as original author of the tests.
>
> While you have to check that please also make sure to only add yourself to a
> test when you have made a real code contribution.
>
> With all those updates r=me.
Have re-read this, I think I misinterpreted your English. I always thought the contributor list was alphabetic. In fact, I've advised other contributors to that effect. The list is in order of contribution I suppose.
Please check in this patch as is. It's important that we get the fixes checked in ASAP. I'll submit a follow-up to this bug which corrects the order of the contributors list to all tests I've contributed to.
I don't think this should block checking in fixes.
Comment 27•15 years ago
|
||
Henrik, I'm going to have side with Anthony on this. If we are spending time on the correct order of the contributor comment, this is not a good use of time and resources. Lets focus on correct functionality 1st. Thanks Matt.
Reporter | ||
Comment 28•15 years ago
|
||
Sorry, but the request I have made is a normal for the review process. I don't wanna discuss anything here on the bug. But I have made those updates in 2 minutes. No idea why this would have been affected any of your goals done by next week.(In reply to comment #26)
> (In reply to comment #24)
> Please check in this patch as is. It's important that we get the fixes checked
> in ASAP. I'll submit a follow-up to this bug which corrects the order of the
> contributors list to all tests I've contributed to.
>
> I don't think this should block checking in fixes.
We have a review process and it would be nice when you can respect it. Starting a discussion like above has probably been taken longer as to quickly fix the patch.
As said above, fixed in under 2 minutes and checked-in:
http://hg.mozilla.org/qa/mozmill-tests/rev/9fea9dc4adaf
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 29•15 years ago
|
||
Thanks for checking it in.
Reporter | ||
Comment 30•15 years ago
|
||
I had to land a follow-up breakage fix for testDisableEnablePlugin.js because it was only half-wise patched. Should be fixed now on all branches:
http://hg.mozilla.org/qa/mozmill-tests/rev/09523a42d459
http://hg.mozilla.org/qa/mozmill-tests/rev/90ce586727e0
http://hg.mozilla.org/qa/mozmill-tests/rev/507d3aa49e8a
Reporter | ||
Comment 32•15 years ago
|
||
Mass move of Mozmill Test related project bugs to newly created components. You can filter out those emails by using "Mozmill-Tests-to-MozillaQA" as criteria.
Component: Mozmill → Mozmill Tests
Product: Testing → Mozilla QA
QA Contact: mozmill → mozmill-tests
Version: Trunk → unspecified
Updated•6 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•