Closed Bug 1382841 Opened 7 years ago Closed 6 years ago

Drop opening new window hack in mochitest

Categories

(Core :: DOM: Animation, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox57 --- wontfix
firefox60 --- fixed

People

(Reporter: hiro, Assigned: birtles)

References

Details

Attachments

(7 files)

Once bug 1328830 landed we can set preference values in mochitest.ini. yay!
I started looking into this but I'm having trouble getting the right diff.

Specifically I want to delete test_XXX and rename file_XXX to test_XXX (since file_XXX contains the important history).

However, regardless of whether I do `hg rename --force`, or simply `hg rm` followed by `hg mv` I end up with a diff that shows the test_XXX contents being deleted and then added to file_XXX. If I want this to be recorded as an actual rename it seems I need to do it in two steps (i.e. two changesets): one to delete test_XXX, and one to rename file_XXX to test_XXX.

Further, ideally I suppose that in the first patch we should *also* rename file_XXX to test_XXX_2 so that the tests keep running in the intermediate state.
Assignee: nobody → bbirtles
Status: NEW → ASSIGNED
Attachment #8899343 - Attachment description: Proof of concept - part 1 rename step → Proof of concept - part 1 delete step
Comment on attachment 8900117 [details]
Bug 1382841 - Rename test_XXX_to_rename.html files in dom/animation/test to test_XXX.html;

https://reviewboard.mozilla.org/r/171498/#review176624
Attachment #8900117 - Flags: review?(hikezoe) → review+
Comment on attachment 8900116 [details]
Bug 1382841 - Remove old test_XXX openers from dom/animation/test/**;

https://reviewboard.mozilla.org/r/171496/#review176628
Attachment #8900116 - Flags: review?(hikezoe) → review+
Comment on attachment 8900118 [details]
Bug 1382841 - Rename some test files in dom/animation/test/mozilla to use _ to separate words;

https://reviewboard.mozilla.org/r/171500/#review176630
Attachment #8900118 - Flags: review?(hikezoe) → review+
Comment on attachment 8900119 [details]
Bug 1382841 - Remove old test_XXX openers that just set the dom.animations-api.core.enabled pref from layout/style/test**;

https://reviewboard.mozilla.org/r/171502/#review176632
Attachment #8900119 - Flags: review?(hikezoe) → review+
Comment on attachment 8900120 [details]
Bug 1382841 - Rename test_XXX_to_rename.html files in layout/style/test to test_XXX.html;

https://reviewboard.mozilla.org/r/171504/#review176634
Attachment #8900120 - Flags: review?(hikezoe) → review+
I've yet to land this because it makes bug 1339648 perma-fail.
Depends on: 1339648
Priority: -- → P3
Looks like test_deferred_start.html needs the opener for timing :/
Even when I drop the change to test_deferred_start.html it fails.
Depends on: 1419226
What's more, all the tests that rely on prefs still seem to fail on Android.
Perhaps the artifact build didn't include bug 1393326?
test_deferred_start.html still times out without the opener it seems.
(Actually I made a mistake when I restored the opener for test_deferred_start.html)

It seems to pass with the opener:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=3391e11cfe9932d45419261ea14a177a47ab5304
I noticed that bug 1444177 failed twice (out of about ~40 runs) in the above try run.

It's possible this bug slightly increases the likelihood of that intermittent failing simply by some indirect means (e.g. affecting the load of the machine etc.). If that's the case, we should disable that subtest while we investigate it so I think it's ok to land this now.
Pushed by bbirtles@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/7582d9f9c6e3
Remove old test_XXX openers from dom/animation/test/**; r=hiro
https://hg.mozilla.org/integration/mozilla-inbound/rev/965de8e8fcca
Rename test_XXX_to_rename.html files in dom/animation/test to test_XXX.html; r=hiro
https://hg.mozilla.org/integration/mozilla-inbound/rev/f6e2ee0c603b
Rename some test files in dom/animation/test/mozilla to use _ to separate words; r=hiro
https://hg.mozilla.org/integration/mozilla-inbound/rev/41d5430e77dc
Remove old test_XXX openers that just set the dom.animations-api.core.enabled pref from layout/style/test**; r=hiro
https://hg.mozilla.org/integration/mozilla-inbound/rev/d6ccaacd9692
Rename test_XXX_to_rename.html files in layout/style/test to test_XXX.html; r=hiro
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: