Summary: | [webkitcorepy] TaskPool shouldn't fork when 1 process is needed | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jonathan Bedard <jbedard> | ||||||
Component: | Tools / Tests | Assignee: | Jonathan Bedard <jbedard> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | aakash_jain, dewei_zhu, ews-watchlist, glenn, slewis, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=226234 | ||||||||
Attachments: |
|
Description
Jonathan Bedard
2021-06-01 11:35:43 PDT
Created attachment 430279 [details]
Patch
Created attachment 430409 [details]
Patch
Comment on attachment 430409 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=430409&action=review r=me with comment. > Tools/Scripts/libraries/webkitcorepy/webkitcorepy/task_pool.py:373 > from mock import patch Should we ensure we always import this or it's not needed in the case of no-fork? (In reply to dewei_zhu from comment #4) > Comment on attachment 430409 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=430409&action=review > > r=me with comment. > > > Tools/Scripts/libraries/webkitcorepy/webkitcorepy/task_pool.py:373 > > from mock import patch > > Should we ensure we always import this or it's not needed in the case of > no-fork? Not needed in the case of no-fork. The reason for including it in the fork case, for those who are curious, is that autoinstalling a package on a child process is racey. This is something we should consider resolving with a file lock (because independently running Python processes have a similar problem), but it hasn't been much of a problem in practice, so we haven't done anything to fix it. Committed r278380 (238407@main): <https://commits.webkit.org/238407@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 430409 [details]. |