Closed Bug 1906093 Opened 5 months ago Closed 4 months ago

Create a singleton per task id

Categories

(Core :: Machine Learning, enhancement)

Firefox 130
enhancement

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: tarek, Assigned: tarek)

References

(Regressed 1 open bug)

Details

Attachments

(1 file)

For now we want to make sure that we only create one worker per task to avoid loading many workers in memory

Attachment #9411084 - Attachment description: Bug 1906093 - Create a singleton tied to the engineId field to aoid creating several engines - r?gregtatum → Bug 1906093 - added engineId to avoid duplicated engines - r?gregtatum
Attachment #9411084 - Attachment description: Bug 1906093 - added engineId to avoid duplicated engines - r?gregtatum → WIP: Bug 1906093 - added engineId to avoid duplicated engines - r?gregtatum
Attachment #9411084 - Attachment description: WIP: Bug 1906093 - added engineId to avoid duplicated engines - r?gregtatum → Bug 1906093 - added engineId to avoid duplicated engines - r?gregtatum
Pushed by tziade@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e8bb74db1fd8 added engineId to avoid duplicated engines - r=gregtatum

Backed out for causing mochitest failures on browser_ml_engine.js

[task 2024-07-31T09:15:30.965Z] 09:15:30     INFO - TEST-PASS | toolkit/components/ml/tests/browser/browser_ml_engine.js | The engine process is still active. - 
[task 2024-07-31T09:15:30.966Z] 09:15:30     INFO - Buffered messages finished
[task 2024-07-31T09:15:30.967Z] 09:15:30     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/ml/tests/browser/browser_ml_engine.js | Uncaught exception in test bound test_ml_dupe_engines - InvalidStateError: JSWindowActorParent.sendAsyncMessage: JSWindowActorParent cannot send at the moment
[task 2024-07-31T09:15:30.967Z] 09:15:30     INFO - Stack trace:
[task 2024-07-31T09:15:30.967Z] 09:15:30     INFO - #setupPortCommunication@resource://gre/actors/MLEngineParent.sys.mjs:437:25
[task 2024-07-31T09:15:30.967Z] 09:15:30     INFO - MLEngine@resource://gre/actors/MLEngineParent.sys.mjs:425:33
[task 2024-07-31T09:15:30.967Z] 09:15:30     INFO - getEngine@resource://gre/actors/MLEngineParent.sys.mjs:124:22
[task 2024-07-31T09:15:30.967Z] 09:15:30     INFO - async*createEngine@chrome://global/content/ml/EngineProcess.sys.mjs:482:23
[task 2024-07-31T09:15:30.967Z] 09:15:30     INFO - async*test_ml_dupe_engines@chrome://mochitests/content/browser/toolkit/components/ml/tests/browser/browser_ml_engine.js:405:31
[task 2024-07-31T09:15:30.967Z] 09:15:30     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1145:26
[task 2024-07-31T09:15:30.967Z] 09:15:30     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1217:18
[task 2024-07-31T09:15:30.967Z] 09:15:30     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1358:14
[task 2024-07-31T09:15:30.967Z] 09:15:30     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1134:14
[task 2024-07-31T09:15:30.968Z] 09:15:30     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-07-31T09:15:30.968Z] 09:15:30     INFO - Leaving test bound test_ml_dupe_engines
[task 2024-07-31T09:15:30.968Z] 09:15:30     INFO - Entering test bound test_ml_engine_override_options
[task 2024-07-31T09:15:30.969Z] 09:15:30     INFO - GECKO(5695) | console.log: ML:EngineParent: "Mocking remote settings in MLEngineParent."
[task 2024-07-31T09:15:30.969Z] 09:15:30     INFO - Get the engine
[task 2024-07-31T09:15:30.970Z] 09:15:30     INFO - GECKO(5695) | console.debug: ML:EngineParent: "Creating a new engine"
[task 2024-07-31T09:15:30.970Z] 09:15:30     INFO - Check the inference process is running
[task 2024-07-31T09:15:30.971Z] 09:15:30     INFO - TEST-PASS | toolkit/components/ml/tests/browser/browser_ml_engine.js | true == true - 
Flags: needinfo?(tziade)
Flags: needinfo?(tziade)
Version: unspecified → Firefox 130
Pushed by tziade@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e2834f6fca5a added engineId to avoid duplicated engines - r=gregtatum
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
Regressions: 1912639
Regressions: 1913768
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: