Closed Bug 2028249 Opened 8 months ago Closed 7 months ago

Almost perma | browser/components/aiwindow/ui/test/browser/browser_smartwindow_tab_switching.js | | test_ask_button_close_persists_across_tab_switches - Sidebar should remain closed after switching back | single tracking bug

Categories

(Core :: Machine Learning: Frontend, defect, P5)

defect

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox150 --- fixed
firefox151 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: omarg)

References

Details

(Keywords: intermittent-failure, intermittent-testcase, Whiteboard: [collect_confirm_failure][genai])

Attachments

(2 external files)

Filed by: asilaghi [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=557071039&repo=autoland&task=aGT0jYMcTT2i11fWuIktSw.0
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/aGT0jYMcTT2i11fWuIktSw/runs/0/artifacts/public/logs/live_backing.log


[task 2026-03-31T18:54:40.359+00:00] 18:54:40     INFO - TEST-PASS | browser/components/aiwindow/ui/test/browser/browser_smartwindow_tab_switching.js | test_ask_button_close_persists_across_tab_switches - Sidebar should be closed after Ask button toggle - true == true
[task 2026-03-31T18:54:40.359+00:00] 18:54:40     INFO - Buffered messages finished
[task 2026-03-31T18:54:40.361+00:00] 18:54:40     INFO - TEST-UNEXPECTED-FAIL | browser/components/aiwindow/ui/test/browser/browser_smartwindow_tab_switching.js | test_ask_button_close_persists_across_tab_switches - Sidebar should remain closed after switching back to tab where user closed it - false == true
[task 2026-03-31T18:54:40.361+00:00] 18:54:40     INFO - chrome://mochitests/content/browser/browser/components/aiwindow/ui/test/browser/browser_smartwindow_tab_switching.js:test_ask_button_close_persists_across_tab_switches:932
[task 2026-03-31T18:54:40.361+00:00] 18:54:40     INFO - chrome://mochikit/content/browser-test.js:handleTask:1376
[task 2026-03-31T18:54:40.361+00:00] 18:54:40     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1466
[task 2026-03-31T18:54:40.361+00:00] 18:54:40     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1617
[task 2026-03-31T18:54:40.361+00:00] 18:54:40     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1356
[task 2026-03-31T18:54:40.361+00:00] 18:54:40     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1060
[task 2026-03-31T18:54:40.634+00:00] 18:54:40     INFO - Leaving test test_ask_button_close_persists_across_tab_switches
[task 2026-03-31T18:54:40.635+00:00] 18:54:40     INFO - Entering test test_tab_with_no_state_should_keep_sidebar
[task 2026-03-31T18:54:40.636+00:00] 18:54:40     INFO - Opening new AI Window
[task 2026-03-31T18:54:41.376+00:00] 18:54:41     INFO - GECKO(1521) | [Parent 1521: Main Thread]: I/SlowChromeEvent Please do not use mouseenter/leave events in chrome. They are slower than mouseover/out! chrome://browser/content/tabbrowser/tabs.js:53:12
[task 2026-03-31T18:54:41.993+00:00] 18:54:41     INFO - Console message: [JavaScript Warning: "Window.fullScreen attribute is deprecated and will be removed in the future." {file: "chrome://browser/content/browser.js" line: 404}]
[task 2026-03-31T18:54:44.078+00:00] 18:54:44     INFO - Waiting for AI window attr
[task 2026-03-31T18:54:44.078+00:00] 18:54:44     INFO - Promising focus
[task 2026-03-31T18:54:44.114+00:00] 18:54:44     INFO - TEST-PASS | browser/components/aiwindow/ui/test/browser/browser_smartwindow_tab_switching.js | test_tab_with_no_state_should_keep_sidebar - Sidebar should be opened by AIWindowUI.openSidebar() - true == true

Hi @Ed Lee :Mardak
This is almost perma fails on autoland and the backfills leads nowhere. It also fails with https://bugzilla.mozilla.org/show_bug.cgi?id=2026433. Could you please check this? Thanks!

Flags: needinfo?(edilee)
See Also: → 2026433

omar, you mentioned bug 2024781's current patch also fixes up some intermittent? were you running into this bug's failures?

potentially this started with bug 2024758 landing late march 30th? https://treeherder.mozilla.org/jobs?repo=autoland&selectedTaskRun=bi1Icq4ZSMe6lPfOEsyniA.0&revision=c35c78d37f57766115ca2e8e6deeb6388db1a2e4

Flags: needinfo?(edilee) → needinfo?(ogonzalez)
See Also: → 2024781, 2024758

Yes I ran into issues with this test in bug 2024781 and updated tests there that I think should fix test_ask_button_close_persists_across_tab_switches - Sidebar should remain closed after switching back

Flags: needinfo?(ogonzalez)
Assignee: nobody → ogonzalez
Depends on: 2024781
Whiteboard: [collect_confirm_failure] → [collect_confirm_failure][genai]

(In reply to :omarg from comment #5)

Yes I ran into issues with this test in bug 2024781 and updated tests there that I think should fix test_ask_button_close_persists_across_tab_switches - Sidebar should remain closed after switching back

Hi, the failure change into:

test_ask_button_close_persists_across_navigation - Sidebar should remain closed after navigating when user explicitly closed it - false == true 
Flags: needinfo?(ogonzalez)

@agoloman is there some log somewhere that I can see? from what build was this error? I relanded bug 2024781 yesterday but I don't think it's made it into nightly yet?

https://lando.moz.tools/D290761/landings/34069/

Flags: needinfo?(ogonzalez)

Hi @omarg

This is the log failure for Build: macosx1015-64-qr https://treeherder.mozilla.org/logviewer?job_id=557854997&repo=autoland&task=FWIK3EbISiucPRQ_Q4ApBA.0&lineNumber=5827 . But this fails on all platforms. This is for Windows

Flags: needinfo?(ogonzalez)

thank you @Silaghi investigating now

Flags: needinfo?(ogonzalez)
Pushed by ogonzalez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f3335b15ec8b https://hg.mozilla.org/integration/autoland/rev/0bd049fbd566 Stabilize tests in browser_smartwindow_tab_switching r=ai-frontend-reviewers,Mardak

I think this patch fixes Bug 2019745 and Bug 2026433

Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch

Please nominate this for Release uplift when you get a chance.

Flags: needinfo?(ogonzalez)

@RyanVM is that firefox-release option? I've only done one uplift so far so want to make sure I do the right thing

Flags: needinfo?(ogonzalez)

Uplift request submitted.

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: Requested by RyanVM, I believe uplifting patch enables running tests on platforms that have been disabled, including Windows.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing: N/A
  • Risk associated with taking this patch: low
  • Explanation of risk level: Enabled tests that were previously failing intermittently
  • String changes made/needed?: No
  • Is Android affected?: no
Attachment #9574405 - Flags: approval-mozilla-release?
Attachment #9574405 - Flags: approval-mozilla-release? → approval-mozilla-release+
QA Whiteboard: [qa-triage-done-c152/b151]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: