Skip to content

Commit

Permalink
Bug 1566182: Annotate mochitests that fail with Fission enabled. r=mccr8
Browse files Browse the repository at this point in the history
My preference was to annotate most of the failing tests with `fail-if` so that
if they start passing, the `fail-if` needs to be removed and they need to keep
passing. That doesn't work for tests that timeout, or which trigger failures
from their cleanup functions, however, so those tests need skip-if. And tests
with fail in their cleanup functions likely leave the browser in an
inconsistent state for subsequent tests, anyway, so really should be skipped
regardless.

There are some remaining tests which still fail because of crashes. I chose
not to skip them here, but to fix the crashes in separate bugs instead.

Differential Revision: https://phabricator.services.mozilla.com/D38247

--HG--
extra : rebase_source : 39ba8fec2e882cfe577c5f2b58ab7e4b461f1178
  • Loading branch information
kmaglione committed Jul 15, 2019
1 parent 6e99764 commit 0962c2b
Show file tree
Hide file tree
Showing 105 changed files with 563 additions and 146 deletions.
3 changes: 2 additions & 1 deletion browser/base/content/test/about/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ prefs =
browser.newtabpage.activity-stream.improvesearch.handoffToAwesomebar=false

[browser_aboutCertError.js]
skip-if = fission
[browser_aboutCertError_clockSkew.js]
[browser_aboutCertError_exception.js]
[browser_aboutCertError_mitm.js]
Expand All @@ -26,4 +27,4 @@ skip-if = os == "mac" || (os == "linux" && (!debug || bits == 64)) || (os == 'wi
[browser_aboutSupport.js]
[browser_aboutSupport_newtab_security_state.js]
[browser_bug435325.js]
skip-if = verify && !debug && os == 'mac'
skip-if = fission || (verify && !debug && os == 'mac')
1 change: 1 addition & 0 deletions browser/base/content/test/favicons/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ prefs =
support-files =
file_favicon_change.html
[browser_favicon_change_not_in_document.js]
fail-if = fission
support-files =
file_favicon_change_not_in_document.html
[browser_multiple_icons_in_short_timeframe.js]
Expand Down
18 changes: 15 additions & 3 deletions browser/base/content/test/general/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ support-files =
[browser_addKeywordSearch.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_alltabslistener.js]
fail-if = fission
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_backButtonFitts.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
Expand Down Expand Up @@ -98,16 +99,19 @@ skip-if = true # bug 428712
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_bug431826.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
skip-if = fission
[browser_bug432599.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_bug441778.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
skip-if = fission
[browser_bug455852.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_bug462289.js]
skip-if = toolkit == "cocoa"
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_bug462673.js]
fail-if = fission
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_bug477014.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
Expand Down Expand Up @@ -157,6 +161,7 @@ skip-if = toolkit != "cocoa" # Because of tests for supporting pasting from Serv
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_bug575561.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
skip-if = fission
[browser_bug575830.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_bug577121.js]
Expand Down Expand Up @@ -189,6 +194,7 @@ skip-if = (verify && debug && (os == 'linux'))
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_bug633691.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
skip-if = fission
[browser_bug647886.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_bug664672.js]
Expand Down Expand Up @@ -220,6 +226,7 @@ uses-unsafe-cpows = true
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_bug839103.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
skip-if = fission
[browser_bug882977.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_bug970746.js]
Expand Down Expand Up @@ -306,7 +313,7 @@ support-files = test_offline_gzip.html gZipOfflineChild.cacheManifest gZipOfflin
[browser_plainTextLinks.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_printpreview.js]
skip-if = os == 'win' # Bug 1384127
skip-if = fission || os == 'win' # Bug 1384127
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_private_browsing_window.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
Expand Down Expand Up @@ -353,6 +360,7 @@ support-files =
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_ssl_error_reports.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
skip-if = fission
[browser_star_hsts.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_storagePressure_notification.js]
Expand All @@ -365,6 +373,7 @@ skip-if = verify
[browser_tab_detach_restore.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_tab_drag_drop_perwindow.js]
fail-if = fission
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_tab_dragdrop.js]
skip-if = debug || (os == 'linux') || (os == 'mac') || (os == 'win' && asan) # Bug 1312436, Bug 1388973
Expand All @@ -381,6 +390,7 @@ support-files =
close_beforeunload_opens_second_tab.html
close_beforeunload.html
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
skip-if = fission
[browser_tabs_isActive.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_tabs_owner.js]
Expand All @@ -391,6 +401,7 @@ run-if = e10s
[browser_typeAheadFind.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_unknownContentType_title.js]
fail-if = fission
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_unloaddialogs.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
Expand All @@ -408,11 +419,13 @@ skip-if = (os == "win" && !debug)
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_web_channel.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
skip-if = fission
[browser_zbug569342.js]
skip-if = e10s || debug # Bug 1094240 - has findbar-related failures
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_addCertException.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
skip-if = fission
[browser_blockHPKP.js]
skip-if = verify && !debug
uses-unsafe-cpows = true
Expand All @@ -429,13 +442,12 @@ support-files =
[browser_domFullscreen_fullscreenMode.js]
tags = fullscreen
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_newTabDrop.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_newWindowDrop.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_newwindow_focus.js]
skip-if = (os == "linux" && !e10s) # Bug 1263254 - Perma fails on Linux without e10s for some reason.
skip-if = fission || (os == "linux" && !e10s) # Bug 1263254 - Perma fails on Linux without e10s for some reason.
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_bug1299667.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
1 change: 1 addition & 0 deletions browser/base/content/test/performance/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ support-files =
[browser_appmenu.js]
skip-if = asan || debug || (os == 'win' && bits == 32) || (os == 'win' && processor == 'aarch64') # Bug 1382809, bug 1369959, Win32 because of intermittent OOM failures, bug 1533141 for aarch64
[browser_preferences_usage.js]
fail-if = fission
skip-if = !debug
[browser_startup.js]
[browser_startup_content.js]
Expand Down
1 change: 1 addition & 0 deletions browser/base/content/test/permissions/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ support-files=
dummy.js
[browser_reservedkey.js]
[browser_temporary_permissions.js]
fail-if = fission
support-files =
temporary_permissions_subframe.html
../webrtc/get_user_media.html
Expand Down
5 changes: 4 additions & 1 deletion browser/base/content/test/plugins/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ support-files =
[browser_bug743421.js]
tags = blocklist
[browser_bug744745.js]
fail-if = fission
[browser_bug787619.js]
[browser_bug797677.js]
[browser_bug812562.js]
tags = blocklist
[browser_bug818118.js]
[browser_bug820497.js]
fail-if = fission
[browser_clearplugindata.js]
tags = blocklist
[browser_CTP_context_menu.js]
Expand Down Expand Up @@ -98,8 +100,9 @@ skip-if = (os == 'win' && processor == 'aarch64') # bug 1533164
[browser_globalplugin_crashinfobar.js]
skip-if = !crashreporter
[browser_pluginCrashCommentAndURL.js]
skip-if = !crashreporter
skip-if = fission || !crashreporter
[browser_pluginCrashReportNonDeterminism.js]
skip-if = !crashreporter
[browser_private_clicktoplay.js]
[browser_subframe_access_hidden_plugins.js]
fail-if = fission
2 changes: 1 addition & 1 deletion browser/base/content/test/popupNotifications/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ skip-if = (os == "linux" && (debug || asan))
[browser_popupNotification_2.js]
skip-if = (os == "linux" && (debug || asan))
[browser_popupNotification_3.js]
skip-if = (os == "linux" && (debug || asan)) || verify
skip-if = fission || (os == "linux" && (debug || asan)) || verify
[browser_popupNotification_4.js]
skip-if = (os == "linux" && (debug || asan))
[browser_popupNotification_5.js]
Expand Down
1 change: 1 addition & 0 deletions browser/base/content/test/popups/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ support-files =
popup_blocker_10_popups.html
skip-if = (os == 'linux') || (e10s && debug) # Frequent bug 1081925 and bug 1125520 failures
[browser_popup_frames.js]
fail-if = fission
support-files =
popup_blocker.html
popup_blocker_a.html
Expand Down
8 changes: 7 additions & 1 deletion browser/base/content/test/siteIdentity/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ support-files =
file_bug906190.js
file_bug906190.sjs
[browser_bug1045809.js]
fail-if = fission
tags = mcb
support-files =
file_bug1045809_1.html
Expand All @@ -46,10 +47,12 @@ support-files =
[browser_getSecurityInfo.js]
support-files =
dummy_iframe_page.html
skip-if = fission
[browser_identity_UI.js]
[browser_identityBlock_focus.js]
support-files = ../permissions/permissions.html
[browser_identityPopup_clearSiteData.js]
skip-if = fission
[browser_identityPopup_custom_roots.js]
[browser_identityPopup_focus.js]
[browser_identityPopup_telemetry.js]
Expand All @@ -59,6 +62,7 @@ support-files =
!/toolkit/components/passwordmgr/test/browser/form_basic.html
!/toolkit/components/passwordmgr/test/browser/insecure_test.html
!/toolkit/components/passwordmgr/test/browser/insecure_test_subframe.html
skip-if = fission
[browser_mcb_redirect.js]
tags = mcb
support-files =
Expand All @@ -68,7 +72,7 @@ support-files =
test_mcb_redirect.js
test_mcb_redirect.sjs
[browser_mixed_content_cert_override.js]
skip-if = verify
skip-if = fission || verify
tags = mcb
support-files =
test-mixedcontent-securityerrors.html
Expand All @@ -81,6 +85,7 @@ tags = mcb
support-files =
test-mixedcontent-securityerrors.html
[browser_mixedContentFramesOnHttp.js]
fail-if = fission
tags = mcb
support-files =
file_mixedContentFramesOnHttp.html
Expand Down Expand Up @@ -110,6 +115,7 @@ tags = mcb
support-files =
test_no_mcb_for_onions.html
[browser_check_identity_state.js]
skip-if = fission
[browser_iframe_navigation.js]
support-files =
iframe_navigation.html
Expand Down
7 changes: 6 additions & 1 deletion browser/base/content/test/tabs/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ support-files =
file_about_child.html
file_about_parent.html
[browser_e10s_switchbrowser.js]
fail-if = fission
[browser_e10s_about_process.js]
[browser_e10s_mozillaweb_process.js]
[browser_e10s_chrome_process.js]
Expand Down Expand Up @@ -60,16 +61,19 @@ skip-if = os == 'mac' # Skipped because macOS keyboard support requires changing
[browser_multiselect_tabs_using_Shift.js]
[browser_navigatePinnedTab.js]
[browser_new_file_whitelisted_http_tab.js]
fail-if = fission
skip-if = !e10s # Test only relevant for e10s.
[browser_new_tab_insert_position.js]
skip-if = (debug && os == 'linux' && bits == 32) #Bug 1455882, disabled on Linux32 for almost permafailing
support-files = file_new_tab_page.html
[browser_new_tab_in_privilegedabout_process_pref.js]
fail-if = fission
skip-if = !e10s # Pref and test only relevant for e10s.
[browser_privilegedmozilla_process_pref.js]
fail-if = fission
skip-if = !e10s # Pref and test only relevant for e10s.
[browser_new_web_tab_in_file_process_pref.js]
skip-if = !e10s # Pref and test only relevant for e10s.
skip-if = fission || !e10s # Pref and test only relevant for e10s.
[browser_newwindow_tabstrip_overflow.js]
[browser_open_newtab_start_observer_notification.js]
[browser_opened_file_tab_navigated_to_web.js]
Expand Down Expand Up @@ -103,3 +107,4 @@ skip-if = os == 'mac'
[browser_visibleTabs_contextMenu.js]
[browser_tabswitch_window_focus.js]
support-files = open_window_in_new_tab.html
skip-if = fission
3 changes: 2 additions & 1 deletion browser/base/content/test/trackingUI/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ support-files =
[browser_trackingUI_background_tabs.js]
[browser_trackingUI_categories.js]
[browser_trackingUI_cookies_subview.js]
skip-if = fission
[browser_trackingUI_cryptominers.js]
[browser_trackingUI_fetch.js]
support-files =
Expand All @@ -28,7 +29,7 @@ support-files =
[browser_trackingUI_open_preferences.js]
[browser_trackingUI_pbmode_exceptions.js]
[browser_trackingUI_report_breakage.js]
skip-if = os == 'linux' && (debug || asan) # Bug 1546797
skip-if = fission || os == 'linux' && (debug || asan) # Bug 1546797
[browser_trackingUI_state.js]
skip-if = serviceworker_e10s # see https://bugzilla.mozilla.org/show_bug.cgi?id=1511303#c1
[browser_trackingUI_state_all_disabled.js]
Expand Down
6 changes: 4 additions & 2 deletions browser/base/content/test/webrtc/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,24 @@ support-files =
head.js

[browser_devices_get_user_media.js]
skip-if = (os == "linux" && debug) # linux: bug 976544
skip-if = fission || (os == "linux" && debug) # linux: bug 976544
[browser_devices_get_user_media_anim.js]
[browser_devices_get_user_media_default_permissions.js]
[browser_devices_get_user_media_in_frame.js]
skip-if = debug # bug 1369731
[browser_devices_get_user_media_multi_process.js]
fail-if = fission
skip-if = debug && (os == "win" || os == "mac") # bug 1393761
[browser_devices_get_user_media_paused.js]
skip-if = (os == "win" && !debug) || (os =="linux" && !debug && bits == 64) #Bug 1440900
[browser_devices_get_user_media_screen.js]
skip-if = (os == 'linux') # Bug 1503991
[browser_devices_get_user_media_tear_off_tab.js]
skip-if = fission
[browser_devices_get_user_media_unprompted_access.js]
[browser_devices_get_user_media_unprompted_access_in_frame.js]
[browser_devices_get_user_media_unprompted_access_tear_off_tab.js]
skip-if = (os == "win" && bits == 64) # win8: bug 1334752
skip-if = fission || (os == "win" && bits == 64) # win8: bug 1334752
[browser_devices_get_user_media_unprompted_access_queue_request.js]
[browser_webrtc_hooks.js]
[browser_devices_get_user_media_queue_request.js]
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ tags = openwindow
[browser_windowOpen.js]
tags = openwindow
[browser_serviceworkers.js]
skip-if = fission
[browser_broadcastchannel.js]
[browser_blobUrl.js]
[browser_middleClick.js]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ skip-if = (verify && debug && (os == 'mac'))
[browser_policy_extensions.js]
[browser_policy_downloads.js]
[browser_policy_extensionsettings.js]
skip-if = fission
[browser_policy_firefoxhome.js]
[browser_policy_override_postupdatepage.js]
[browser_policy_search_engine.js]
Expand Down
2 changes: 2 additions & 0 deletions browser/components/extensions/test/browser/browser-common.ini
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ skip-if = os == "linux" && debug && bits == 32 # Bug 1350189
[browser_ext_tabs_discard.js]
skip-if = !e10s
[browser_ext_tabs_discarded.js]
fail-if = fission
[browser_ext_tabs_duplicate.js]
[browser_ext_tabs_events.js]
skip-if = true # Bug 1521363
Expand Down Expand Up @@ -219,6 +220,7 @@ skip-if = (verify && !debug && (os == 'mac'))
[browser_ext_tabs_printPreview.js]
[browser_ext_tabs_query.js]
[browser_ext_tabs_readerMode.js]
skip-if = fission
[browser_ext_tabs_reload.js]
[browser_ext_tabs_reload_bypass_cache.js]
[browser_ext_tabs_saveAsPDF.js]
Expand Down
2 changes: 2 additions & 0 deletions browser/components/extensions/test/browser/browser-remote.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ support-files =
file_inspectedwindow_reload_target.sjs

[browser_ext_contentscript_nontab_connect.js]
skip-if = fission
[browser_ext_devtools_inspectedWindow.js]
[browser_ext_devtools_inspectedWindow_eval_bindings.js]
[browser_ext_devtools_inspectedWindow_reload.js]
[browser_ext_devtools_network.js]
skip-if = fission
[browser_ext_devtools_page.js]
[browser_ext_devtools_page_incognito.js]
[browser_ext_devtools_panel.js]
Expand Down
1 change: 1 addition & 0 deletions browser/components/newtab/test/browser/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ skip-if = (os == "linux") # Test setup only implemented for OSX and Windows
[browser_topsites_contextMenu_options.js]
[browser_topsites_section.js]
[browser_asrouter_cfr.js]
skip-if = fission
[browser_asrouter_bookmarkpanel.js]
Loading

0 comments on commit 0962c2b

Please sign in to comment.