RESOLVED FIXED 218643
REGRESSION(r268930): It broke the http server of run-benchmark
https://bugs.webkit.org/show_bug.cgi?id=218643
Summary REGRESSION(r268930): It broke the http server of run-benchmark
Carlos Alberto Lopez Perez
Reported 2020-11-05 20:09:44 PST
On https://build.webkit.org/builders/GTK-Linux-64-bit-Release-Perf/builds/10332/steps/benchmark-test/logs/stdio the benchmarks are all failing with: Traceback (most recent call last): File "/home/buildbot/worker/gtk-linux-64-release-perf-tests/build/Tools/Scripts/webkitpy/browserperfdash/browserperfdash_runner.py", line 169, in run runner.execute() File "/home/buildbot/worker/gtk-linux-64-release-perf-tests/build/Tools/Scripts/webkitpy/benchmark_runner/benchmark_runner.py", line 120, in execute self._run_benchmark(int(self._plan['count']), web_root) File "/home/buildbot/worker/gtk-linux-64-release-perf-tests/build/Tools/Scripts/webkitpy/benchmark_runner/benchmark_runner.py", line 90, in _run_benchmark result = self._run_one_test(web_root, self._plan['entry_point']) File "/home/buildbot/worker/gtk-linux-64-release-perf-tests/build/Tools/Scripts/webkitpy/benchmark_runner/webserver_benchmark_runner.py", line 43, in _run_one_test raise error AccessDenied: psutil.AccessDenied (pid=12593) This is caused because the http server launched via a subprocess exits as soon as is launched with an import error. So then the call to "psutil.Process(self._server_process.pid).connections()" tries to access the PID of a zombie in /proc causing the AccessDenied error. The http server exits with this error: Traceback (most recent call last): File "/home/clopez/webkit/webkit/Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/http_server/twisted_http_server.py", line 17, in <module> from webkitpy.autoinstalled import twisted ImportError: No module named webkitpy.autoinstalled Which in turn is caused because Tools/Scripts is not on PYTHONPATH and it can't find webkitpy.autoinstalled
Attachments
Patch (4.23 KB, patch)
2020-11-05 20:17 PST, Carlos Alberto Lopez Perez
ews-feeder: commit-queue-
Patch (6.12 KB, patch)
2020-11-05 20:48 PST, Carlos Alberto Lopez Perez
no flags
Patch (6.38 KB, patch)
2020-11-05 20:54 PST, Carlos Alberto Lopez Perez
no flags
Patch (6.38 KB, patch)
2020-11-06 06:20 PST, Carlos Alberto Lopez Perez
no flags
Carlos Alberto Lopez Perez
Comment 1 2020-11-05 20:17:18 PST
Carlos Alberto Lopez Perez
Comment 2 2020-11-05 20:48:45 PST
Created attachment 413395 [details] Patch v2: refactor the loop to avoid repeating the code twice
Carlos Alberto Lopez Perez
Comment 3 2020-11-05 20:54:44 PST
Created attachment 413396 [details] Patch cosmetic changes: remove empty line
Carlos Alberto Lopez Perez
Comment 4 2020-11-06 06:20:30 PST
Created attachment 413428 [details] Patch fix style errors
Jonathan Bedard
Comment 5 2020-11-06 08:17:50 PST
Comment on attachment 413428 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=413428&action=review > Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/simple_http_server_driver.py:39 > + for attempt in range(max_attempt): While these changes aren't required to fix the regression, they do seem to be an improvement to readability.
Carlos Alberto Lopez Perez
Comment 6 2020-11-06 08:46:36 PST
(In reply to Jonathan Bedard from comment #5) > Comment on attachment 413428 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=413428&action=review > > > Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/simple_http_server_driver.py:39 > > + for attempt in range(max_attempt): > > While these changes aren't required to fix the regression, they do seem to > be an improvement to readability. Right.. my first patch was not doing this changes.. but after I uploaded I looked at it and it looked ugly enough to have to repeat the code twice that I ended doing this small changes to try to improve the code quality Thanks for the review!
Carlos Alberto Lopez Perez
Comment 7 2020-11-06 09:08:12 PST
Comment on attachment 413428 [details] Patch Clearing flags on attachment: 413428 Committed r269514: <https://trac.webkit.org/changeset/269514>
Carlos Alberto Lopez Perez
Comment 8 2020-11-06 09:08:17 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 9 2020-11-06 09:09:25 PST
Note You need to log in before you can comment on or make changes to this bug.