Closed Bug 1906816 Opened 4 months ago Closed 4 months ago

devtools test might run into race on process kill with forkserver

Categories

(DevTools :: Framework, defect)

defect

Tracking

(firefox130 fixed)

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: gerard-majax, Assigned: gerard-majax)

References

Details

Attachments

(1 file)

From backout https://bugzilla.mozilla.org/show_bug.cgi?id=1896054#c11

TEST-UNEXPECTED-FAIL | devtools/client/framework/test/browser_toolbox_many_toggles.js | uncaught exception - NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProcessToolsService.kill] at manyTogglesWithContentProcessDestructionsInBackground/interval<@chrome://mochitests/content/browser/devtools/client/framework/test/browser_toolbox_many_toggles.js:33:20

it looks like we have the following cinematic of execution where when we enable forkserver, kill(PID) is done twice (as without forkserver) but the second one returns ESRCH.

Upon all investigation, I have not been able to prove those process would be left hanging around and it rather suggests they are disappearing a little bit faster than they used to, enough that we still see them in https://searchfox.org/mozilla-central/rev/ab488b411ff15c2e11dbd4d6be0455bb64bc8fc1/devtools/client/framework/test/browser_toolbox_many_toggles.js#27-29 but that by the time we kill https://searchfox.org/mozilla-central/rev/ab488b411ff15c2e11dbd4d6be0455bb64bc8fc1/devtools/client/framework/test/browser_toolbox_many_toggles.js#33 they are gone.

Component: Security: Process Sandboxing → General
Product: Core → DevTools
Depends on: 1906801

The Bugbug bot thinks this bug should belong to the 'DevTools::Framework' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Framework
Pushed by alissy@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c8352c374507 Do not fail devtools many toggles test when process died r=ochameau,devtools-reviewers
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: