Open Bug 1906608 Opened 10 months ago Updated 4 days ago

Intermittent browser/components/translations/tests/browser/browser_translations_full_page_panel_engine_destroy_pending.js | single tracking bug

Categories

(Firefox :: Translations, defect, P5)

defect

Tracking

()

REOPENED

People

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

Details

(Keywords: intermittent-failure, intermittent-testcase)

Attachments

(1 file)

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


[task 2024-07-08T09:42:40.304Z] 09:42:40     INFO - TEST-PASS | browser/components/translations/tests/browser/browser_translations_full_page_panel_engine_destroy_pending.js | The icon presents the locale. - 
[task 2024-07-08T09:42:40.306Z] 09:42:40     INFO - TEST-PASS | browser/components/translations/tests/browser/browser_translations_full_page_panel_engine_destroy_pending.js | The expected language tag "en" is shown. - 
[task 2024-07-08T09:42:40.307Z] 09:42:40     INFO - TEST-PASS | browser/components/translations/tests/browser/browser_translations_full_page_panel_engine_destroy_pending.js | undefined assertion name - 
[task 2024-07-08T09:42:40.309Z] 09:42:40     INFO - TEST-PASS | browser/components/translations/tests/browser/browser_translations_full_page_panel_engine_destroy_pending.js | undefined assertion name - 
[task 2024-07-08T09:42:40.311Z] 09:42:40     INFO - Action: addTab(https://example.com/browser/toolkit/components/translations/tests/browser/translations-tester-en.html)
[task 2024-07-08T09:42:40.312Z] 09:42:40     INFO - Source: browser/components/translations/tests/browser/browser_translations_full_page_panel_engine_destroy_pending.js:39:49
[task 2024-07-08T09:42:40.314Z] 09:42:40     INFO - Buffered messages logged at 09:42:18
[task 2024-07-08T09:42:40.315Z] 09:42:40     INFO - Destroy the engine process
[task 2024-07-08T09:42:40.317Z] 09:42:40     INFO - Mutate the page's content to re-trigger a translation.
[task 2024-07-08T09:42:40.318Z] 09:42:40     INFO - Wait for a second to ensure the mutation takes.
[task 2024-07-08T09:42:40.320Z] 09:42:40     INFO - Action: switchTab(tab, spanish tab)
[task 2024-07-08T09:42:40.321Z] 09:42:40     INFO - Source: browser/components/translations/tests/browser/browser_translations_full_page_panel_engine_destroy_pending.js:56:9
[task 2024-07-08T09:42:40.323Z] 09:42:40     INFO - The engine downloads should be requested again.
[task 2024-07-08T09:42:40.324Z] 09:42:40     INFO - Resolving 1 mocked downloads for "test-translation-wasm-1"
[task 2024-07-08T09:42:40.326Z] 09:42:40     INFO - Buffered messages logged at 09:42:20
[task 2024-07-08T09:42:40.327Z] 09:42:40     INFO - Resolving 3 mocked downloads for "test-translation-models-0"
[task 2024-07-08T09:42:40.329Z] 09:42:40     INFO - Buffered messages finished
[task 2024-07-08T09:42:40.331Z] 09:42:40     INFO - TEST-UNEXPECTED-FAIL | browser/components/translations/tests/browser/browser_translations_full_page_panel_engine_destroy_pending.js | The mutated content should be translated. - "NEW TEXT FOR THE H1 [es to en]" == "New text for the H1" - 
[task 2024-07-08T09:42:40.332Z] 09:42:40     INFO - Stack trace:
[task 2024-07-08T09:42:40.333Z] 09:42:40     INFO - chrome://mochitests/content/browser/toolkit/components/translations/tests/browser/translations-test.mjs:assertTranslationResult:127
[task 2024-07-08T09:42:40.335Z] 09:42:40     INFO - GECKO(1863) | console.log: Translations: "Discarding translations, innerWindowId:" 111669149697
[task 2024-07-08T09:42:40.336Z] 09:42:40     INFO - GECKO(1863) | console.log: Translations: "Force shutdown of the engine \"es,en\""
[task 2024-07-08T09:44:12.125Z] 09:44:12     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-07-08T09:44:12.127Z] 09:44:12     INFO - TEST-UNEXPECTED-FAIL | browser/components/translations/tests/browser/browser_translations_full_page_panel_engine_destroy_pending.js | Test timed out - 
[task 2024-07-08T09:44:12.142Z] 09:44:12     INFO - GECKO(1863) | Completed ShutdownLeaks collections in process 1863
[task 2024-07-08T09:44:12.145Z] 09:44:12     INFO - TEST-START | Shutdown
[task 2024-07-08T09:44:12.148Z] 09:44:12     INFO - Browser Chrome Test Summary
[task 2024-07-08T09:44:12.149Z] 09:44:12     INFO - Passed:  2467
[task 2024-07-08T09:44:12.150Z] 09:44:12     INFO - Failed:  2
[task 2024-07-08T09:44:12.151Z] 09:44:12     INFO - Todo:    0
[task 2024-07-08T09:44:12.153Z] 09:44:12     INFO - Mode:    e10s
[task 2024-07-08T09:44:12.154Z] 09:44:12     INFO - *** End BrowserChrome Test Results ***
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---

There were a couple of test cases that were manually calling resolveDownloads()
but not awaiting its completion. This should hopefully fix the intermittent
test failures associated with this bug.

Assignee: nobody → enordin
Pushed by enordin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e7f67b975fd3 Ensure resolveDownloads() is awaited in Translations tests r=translations-reviewers,gregtatum

Backed out for causing junit failures.

Flags: needinfo?(enordin)

I believe that I have fixed the issue on Android.

The junit tests are looking clean on the latest try run:
https://treeherder.mozilla.org/jobs?repo=try&revision=7c264c26e8f32892043d8cf66def5662c8fd3b97


Going to try re-landing.

Flags: needinfo?(enordin)
Pushed by enordin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/99b161ea26b0 Ensure resolveDownloads() is awaited in Translations tests r=translations-reviewers,gregtatum
Status: REOPENED → RESOLVED
Closed: 8 months ago5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch

@Erik, could you take another look at this failure?
It seems the latest patch didn't fixed it.
Here is a recent failure log -> https://treeherder.mozilla.org/logviewer?job_id=487376659&repo=mozilla-central&lineNumber=4536

Status: RESOLVED → REOPENED
Flags: needinfo?(enordin)
Resolution: FIXED → ---
Target Milestone: 135 Branch → ---

I was hoping this would have fixed it. I will keep looking into this.

Flags: needinfo?(enordin)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: