WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
241081
[webkitpy] run-benchmark script fails to find the lsof command on Linux
https://bugs.webkit.org/show_bug.cgi?id=241081
Summary
[webkitpy] run-benchmark script fails to find the lsof command on Linux
Carlos Alberto Lopez Perez
Reported
2022-05-29 14:28:39 PDT
The lsof command is shipped on Linux typically on /usr/bin meanwhile on Mac is shipped on /usr/sbin The GTK perf bot is having issues with this and is causing the tests to fail.
Attachments
Patch
(2.08 KB, patch)
2022-05-29 14:49 PDT
,
Carlos Alberto Lopez Perez
no flags
Details
Formatted Diff
Diff
Patch for landing
(2.04 KB, patch)
2022-06-14 02:15 PDT
,
Carlos Alberto Lopez Perez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Carlos Alberto Lopez Perez
Comment 1
2022-05-29 14:49:57 PDT
Created
attachment 459842
[details]
Patch
Lauro Moura
Comment 2
2022-05-30 12:24:13 PDT
Comment on
attachment 459842
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=459842&action=review
Looks good. Minor suggestion inline.
> Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/simple_http_server_driver.py:71 > + lsof_path = shutil.which('lsof') if shutil.which('lsof') else '/usr/sbin/lsof'
Maybe `lsov_path = shutil.which('lsof') or '/usr/sbin/lsof'` to avoid the extra which call?
Lauro Moura
Comment 3
2022-05-30 12:24:56 PDT
(In reply to Lauro Moura from
comment #2
)
> Comment on
attachment 459842
[details]
>
> Maybe `lsov_path = shutil.which('lsof') or '/usr/sbin/lsof'` to avoid the > extra which call?
Obviously, I meant `lsof_path = ...`.
dewei_zhu
Comment 4
2022-05-30 16:15:02 PDT
Comment on
attachment 459842
[details]
Patch r=me
Radar WebKit Bug Importer
Comment 5
2022-06-05 14:29:12 PDT
<
rdar://problem/94408913
>
Carlos Alberto Lopez Perez
Comment 6
2022-06-14 02:12:26 PDT
(In reply to Lauro Moura from
comment #2
)
> Maybe `lsov_path = shutil.which('lsof') or '/usr/sbin/lsof'` to avoid the > extra which call?
Good idea, seems cleaner. I will land with this
Carlos Alberto Lopez Perez
Comment 7
2022-06-14 02:15:49 PDT
Created
attachment 460226
[details]
Patch for landing
EWS
Comment 8
2022-06-14 03:12:36 PDT
Committed
r295520
(
251525@main
): <
https://commits.webkit.org/251525@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 460226
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug