Closed Bug 1919171 Opened 6 months ago Closed 5 months ago

Intermittent mozilla.components.browser.state.engine.middleware.PdfStateMiddlewareTest.GIVEN already viewing a pdf and the page is updated WHEN cannot infer whether still viewing a pdf THEN inform about exiting from a pdf | java.lang.AssertionError: No ac

Categories

(Fenix :: General, defect, P5)

All
Android
defect

Tracking

(firefox134 fixed)

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

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

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

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


[task 2024-09-16T22:50:42.668Z]   SUCCESS
[task 2024-09-16T22:50:42.668Z] 
[task 2024-09-16T22:50:42.668Z]   TEST: GIVEN already viewing a pdf and the page is updated WHEN cannot infer whether still viewing a pdf THEN inform about exiting from a pdf
[task 2024-09-16T22:50:42.768Z]   TEST-UNEXPECTED-FAIL | mozilla.components.browser.state.engine.middleware.PdfStateMiddlewareTest.GIVEN already viewing a pdf and the page is updated WHEN cannot infer whether still viewing a pdf THEN inform about exiting from a pdf | java.lang.AssertionError: No action of type class mozilla.components.browser.state.action.ContentAction$ExitedPdfViewer found
[task 2024-09-16T22:50:42.768Z] 
[task 2024-09-16T22:50:42.768Z] 
[task 2024-09-16T22:50:42.768Z] SUITE: mozilla.components.browser.state.engine.middleware.SessionPrioritizationMiddlewareTest
[task 2024-09-16T22:50:42.768Z]   TEST: GIVEN a linked session WHEN CheckForFormDataAction with adjustPriority = false THEN do nothing
[task 2024-09-16T22:50:42.768Z]   SUCCESS

Hi Petru, can you please take a look at this intermittent?

Flags: needinfo?(petru)
Assignee: nobody → petru
Status: NEW → ASSIGNED
Flags: needinfo?(petru)

The system under test functions with:

  • dispatching an action in coroutineA
  • handling it in a middleware which launches another coroutine - coroutineB from which
    it dispatches another action. In this time coroutineA might have completed.
  • another middleware needs to handle this last action

So we need to ensure all store actions have been processed before checking this in tests.

Pushed by plingurar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/aaf5e96dae8d Ensure all dispatched actions are processed before test assertions r=android-reviewers,tchoh
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: