Closed Bug 1927595 Opened 1 year ago Closed 1 year ago

[Isolated Process] Fix GeckoViewTest Priority Tests for Isolated Processes

Categories

(GeckoView :: General, defect, P3)

All
Android
defect

Tracking

(firefox140 fixed)

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: olivia, Assigned: olivia)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid] [geckoview] )

Attachments

(1 file)

When running in Isolated Process mode, GeckoViewTest has failing tests at:

  • setPriorityHint
  • processPriorityTest
  • setTabActiveKeepsTabAtHighPriority

Because it cannot access the file /proc/<PID>/oom_score to calculate a priority score for the tests because it is checking the score of other processes. Likely need to find an alternate calculation for the test or make the test privledged or accept that this test will only run in this mode, where the file access is available.

I tend to think it makes more sense to accept this as a condition of the test, so I wouldn't consider it blocking isolated process, but might be a nice-to-have, if we can find an alternate way to access this info.

Severity: -- → S3
Priority: -- → P3
Whiteboard: [fxdroid] [geckoview]

I'm going to see if we can find a new way to formulate these tests that doesn't rely on privileged process information.

Assignee: nobody → ohall

Issue was getContentProcessesOomScore was attempting to read other process's oom scores.

This patch:

  • Adjusts getContentProcessesOomScore to read the oom score through the test privileged uiAutomation
  • Opens tests in GeckoViewTest gated by isolated process
  • Runs ktlint on GeckoViewTest
Pushed by ohall@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3c804cd87495 Open GeckoViewTest Priority Tests for Isolated Processes r=geckoview-reviewers,m_kato
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: