Closed Bug 1037443 Opened 12 years ago Closed 11 years ago

Remove __force_skip__ statements from mozmill-tests

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect, P4)

defect

Tracking

(firefox32 fixed, firefox33 fixed, firefox34 fixed, firefox35 fixed, firefox-esr31 fixed)

RESOLVED FIXED
Tracking Status
firefox32 --- fixed
firefox33 --- fixed
firefox34 --- fixed
firefox35 --- fixed
firefox-esr31 --- fixed

People

(Reporter: andrei, Assigned: manu.jain13, Mentored)

Details

(Whiteboard: [lang=js][good first bug])

Attachments

(3 files, 3 obsolete files)

Since all disabling of tests is now done at manifest level, we should remove all __force_skip__ statements from the code.
QA Contact: mozmill-tests → hskupin
I am a newbie and willing to fix this bug. I found these two lines as per the following link: http://mxr.mozilla.org/mozilla-central/search?string=__force_skip__&find=&findi=&filter=&hitlimit=&tree=mozilla-central Please guide me what to do.
Attached patch 1037443.diff (obsolete) — Splinter Review
Removed all instances of __force_skip__ statements from mozmill. Is there anything else that needs to be done?
^Please ignore my patch. I didn't make any changes in mozmill-tests. Only in the mozilla-central repo.
Comment on attachment 8477915 [details] [diff] [review] 1037443.diff Hi Anuj, This is the mozmill-tests repository: http://hg.mozilla.org/qa/mozmill-tests There are a couple of __force_skip__ statements that will likely need to remain, for example the ones in http://hg.mozilla.org/qa/mozmill-tests/file/03dd84d656d3/firefox/tests/functional/restartTests/testRestartChangeArchitecture because they can _only_ be run under OSX We want the ones temporarily disabled because of some bug like: > setupModule.__force_skip__ = "Bug 930509 - Window has been found."; > teardownModule.__force_skip__ = "Bug 930509 - Window has been found."; from http://hg.mozilla.org/qa/mozmill-tests/file/03dd84d656d3/firefox/tests/functional/testDownloading/testCloseDownloadManager.js#l76
Attachment #8477915 - Attachment is obsolete: true
Flags: needinfo?(ug201210031)
Flags: needinfo?(kamikazeanuj)
Attached patch bug1037443.patch (obsolete) — Splinter Review
Is this correct?
Attachment #8487435 - Flags: review?(andrei.eftimie)
Comment on attachment 8487435 [details] [diff] [review] bug1037443.patch Review of attachment 8487435 [details] [diff] [review]: ----------------------------------------------------------------- Hi Manu, This is a good start, but there are a few more instances where this needs to be removed. I will assign this bug to you. I've done a quick search and I've found the following: > firefox/tests/functional/testDownloading/testOpenDownloadManager.js > firefox/tests/functional/testPreferences/testRestoreHomepageToDefault.js > firefox/tests/functional/testPreferences/testSetToCurrentPage.js > firefox/tests/functional/testPrivateBrowsing/testPrivateDownloadPanel.js > firefox/tests/functional/testToolbar/testHomeButton.js > firefox/tests/remote/restartTests/testAddons_RestartlessExtensionWorksAfterRestart/test1.js > firefox/tests/remote/restartTests/testAddons_RestartlessExtensionWorksAfterRestart/test2.js > firefox/tests/remote/restartTests/testDiscoveryPane_FeaturedModule/test1.js > firefox/tests/remote/restartTests/testDiscoveryPane_FirstTimeModule/test1.js > firefox/tests/remote/restartTests/testDiscoveryPane_installAddonWithEULA/test1.js > firefox/tests/remote/restartTests/testDiscoveryPane_installCollectionAddon/test1.js > firefox/tests/remote/restartTests/testDiscoveryPane_installPickOfMonthAddon/test1.js > firefox/tests/remote/restartTests/testDiscoveryPane_UpAndComingModule/test1.js > firefox/tests/remote/testDownloading/testDownloadStates.js
Attachment #8487435 - Flags: review?(andrei.eftimie) → review-
Assignee: nobody → manu.jain13
Status: NEW → ASSIGNED
Flags: needinfo?(ug201210031)
Flags: needinfo?(kamikazeanuj)
Attached patch bug_1037443.patch (obsolete) — Splinter Review
I've removed all _force_skip_ statements.
Attachment #8487435 - Attachment is obsolete: true
Attachment #8489554 - Flags: review?(andrei.eftimie)
Thanks Manu for the patch, this indeed works fine, and you got all instances that are being used atm. I have updated the patch because there was 1 easy to solve conflict (and updated the commit message). Landed: https://hg.mozilla.org/qa/mozmill-tests/rev/317bc75d3f99 (default)
Attachment #8489554 - Attachment is obsolete: true
Attachment #8489554 - Flags: review?(andrei.eftimie)
Attachment #8489861 - Flags: review+
Attachment #8489861 - Flags: checkin+
I initially thought of not backporting this, but upon further examination it might lead to more work in the future for other patches if they won't apply cleanly because we are touching multiple files here. So we should probably backport this. Manu, please try applying the landed patch on the rest of the branches (and check if there are other __force_skip__ statements that would need to be removed - we might have tests on other branches which are not available on default anymore). Report here if it applies correctly, and for the branches it wont, fix the conflicts, generate a new patch and upload it here. Thanks!
Andrei, can you tell how to apply the patch on other branches and how to fix the conflicts? Thanks!!
(In reply to manu.jain13 from comment #11) > Andrei, can you tell how to apply the patch on other branches and how to fix > the conflicts? Thanks!! Surely. First you should update the repository to have the landed patch locally: > hg pull -u Lets check what branches we have: > hg branches Lets try 'mozill-aurora' (which is now firefox 34): > hg checkout mozilla-aurora Now lets apply the patch on the currently checked-out branch: (in this case download the final patch I applied since it got a minor change, usually it should be the one you already have) > hg qimport %path/to/patch% Or if you have installed qimportbz (from https://hg.mozilla.org/hgcustom/version-control-tools/) > hg qimport bz:1037443 // this will import the patch directly from this bug Once we have the patch in our queue try to push it: > hg qpush If this works fine, the patch applies cleanly. For this bug I would do another search for __force_skip__ and make sure no other instances that we would like removed exist, run a testrun to make sur everything is fine, and post in this bug the results. If this won't apply cleanly the conflicts will be saved in .rej files. You should be able to see them easily with `hg status`. Apply the changes manually to the files, remove the .rej file, run a `hg qrefresh`, export a new patch and upload it here mentioning the branch for which it is.
Branch- Mozilla aurora patch.
Attachment #8491508 - Flags: review?(andrei.eftimie)
Branch- Mozilla esr31 patch.
Attachment #8491720 - Flags: review?(andrei.eftimie)
Comment on attachment 8491508 [details] [diff] [review] bug_1037443_branch=aurora.patch Review of attachment 8491508 [details] [diff] [review]: ----------------------------------------------------------------- Landed: https://hg.mozilla.org/qa/mozmill-tests/rev/5813895813a4 (mozilla-aurora) https://hg.mozilla.org/qa/mozmill-tests/rev/ef0055fa1d6e (mozilla-beta)
Attachment #8491508 - Flags: review?(andrei.eftimie)
Attachment #8491508 - Flags: review+
Attachment #8491508 - Flags: checkin+
Andrei, I've also attached esr-31 patch. Can you tell which branch is for firefox32, as there is no branch named firefox32. Thanks!!
(In reply to Manu Jain from comment #16) > Andrei, I've also attached esr-31 patch. Can you tell which branch is for > firefox32, as there is no branch named firefox32. Thanks!! I saw that Manu, I look into landing that today. This is how the branches currently correspond to Firefox versions: > default // 35 > mozilla-aurora // 34 > mozilla-beta // 33 > mozilla-release // 32 > mozilla-esr31 // 31 (esr) Each 6 weeks a new Firefox version comes out so they all get pushed down (expect the Extended Support Release, which is supported for ~1 year) There's nothing for you to do here right now, I will look into and land the patch for Release and ESR31, and hopefully we'll all be done :)
Comment on attachment 8491720 [details] [diff] [review] bug_1037443_mozilla-esr31.patch Review of attachment 8491720 [details] [diff] [review]: ----------------------------------------------------------------- Everything works fine on release and esr31. Landed: https://hg.mozilla.org/qa/mozmill-tests/rev/b6e8b90eef1a (mozilla-release) https://hg.mozilla.org/qa/mozmill-tests/rev/beb218205683 (mozilla-esr31)
Attachment #8491720 - Flags: review?(andrei.eftimie)
Attachment #8491720 - Flags: review+
Attachment #8491720 - Flags: checkin+
Thanks Manu for the work. If you wish to help out on anything else, let me know. Here is a list of simple tasks that are open in relation to Automation and Javascript: http://www.joshmatthews.net/bugsahoy/?automation=1&js=1&simple=1 This issue is fixed.
Status: ASSIGNED → RESOLVED
Closed: 11 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

Creator:
Created:
Updated:
Size: