Closed Bug 2084272 Opened 1 month ago Closed 1 month ago

[meta] Fix the flakiness in browser/components/search/test/browser

Categories

(Firefox :: Search, task)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: florian, Assigned: florian)

References

(Blocks 1 open bug)

Details

(Keywords: meta)

Attachments

(1 external file)

Meta bug tracking the flakiness burndown of browser/components/search/test/browser.

Intermittent failures in this folder came from tests racing against async product behavior, two product bugs, and skip-if annotations that had outlived their cause.

Skip-if annotations

  • Re-enables 2 tests whose skip-if annotations (debug and artifact builds) no longer fail.

Test-only patches

  • browser_search_lastused_pref.js (bug 2084265) - The previous test's urlbar search could fall in the same second, so the timestamp pref did not increase. The test now clears the pref in add_setup.

  • browser_contentSearchUI_default.js (bug 2084263) - ensureIcon waited for the icon property to differ from "null", but an unset property is "", so it returned early. It now waits for the expected icon.

  • browser_search_telemetry_searchform.js (bug 2024061) - The test listened for the search form load only after the popup's hidden event, by which time the page had loaded. It also left text in the shared searchbar. Both promises are now created before the click, and the text is cleared.

Product fixes

  • browser_search_glean_serp_event_telemetry_categorization_enabled_by_pref.js (bug 1943499) - The test overrode the telemetry provider list before the slow startup SearchSERPTelemetry.init() finished and replaced it. init() calls made during initialization now share the pending one, and the test waits for it.

  • browser_searchbar_openpopup.js (bug 2084262) - SearchOneOffs.invalidateCache() ignored calls made during a rebuild, leaving stale one-off buttons visible. Invalidations that arrive mid-rebuild are now kept, and the Windows 11 25H2 skip is removed.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/292fda6f78be https://hg.mozilla.org/integration/autoland/rev/a439cc0cf14c Remove skip-if annotations that no longer fail in browser/components/search/test/browser, r=search-reviewers,scunnane.
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
QA Whiteboard: [search][qa-triage-done-c161/b160]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: