The mechanics of our webkitpy FileLock are good, but the API is not. Move webkitpy's FileLock into webkitcorepy and clarify the API.
<rdar://problem/83168826>
Created attachment 438292 [details] Patch
Comment on attachment 438292 [details] Patch r=me
Created attachment 438703 [details] Patch for landing
Committed r282770 (241905@main): <https://commits.webkit.org/241905@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 438703 [details].
Comment on attachment 438703 [details] Patch for landing View in context: https://bugs.webkit.org/attachment.cgi?id=438703&action=review > Tools/Scripts/libraries/webkitcorepy/webkitcorepy/tests/file_lock_unittest.py:95 > + self.assertEqual(start_time + 30, int(time.time())) This check is too strict. Bug 249608 – webkitcorepy.tests.file_lock_unittest.FileLockTestCase.test_locked_timeout is randomly failing