When run under sudo, kill-old-prosess has an incorrect temporary directory path. We need to hard-code /var/folders and use maxdepth 4 to find the right set of files to delete.
Created attachment 436321 [details]
Comment on attachment 436321 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=436321&action=review
> + * CISupport/kill-old-processes:
should probably add a comment explaining why hardcoding is necessary
I r+ed but did you try sudo -u? I think that would be a more correct solution
(In reply to Stephanie Lewis from comment #4)
> I r+ed but did you try sudo -u? I think that would be a more correct solution
I didn't, but also, `sudo -u` is a more difficult solution to this particular problem, because it's Buildbot that's invoking this script with sudo, so we would need a Buildbot restart.
Created attachment 436323 [details]
Committed r281515 (240888@main): <https://commits.webkit.org/240888@main>
All reviewed patches have been landed. Closing bug and clearing flags on attachment 436323 [details].