⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 278670 in webkit


Ignore:
Timestamp:
Jun 9, 2021, 1:54:31 PM (5 years ago)
Author:
Dewei Zhu
Message:

HTTP server should run with the same python executable as run-benchmark script.
https://bugs.webkit.org/show_bug.cgi?id=226834

Reviewed by Jonathan Bedard.

'SimpleHTTPServerDriver._ensure_http_server_dependencies' will not work if the
python version used by run-benchmark is not the same as the one invokes http server.

Remove python modules no longer needed by http server.

  • Scripts/webkitpy/benchmark_runner/http_server_driver/simple_http_server_driver.py:

(SimpleHTTPServerDriver.serve):
(SimpleHTTPServerDriver._ensure_http_server_dependencies):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r278668 r278670  
     12021-06-09  Dewei Zhu  <dewei_zhu@apple.com>
     2
     3        HTTP server should run with the same python executable as run-benchmark script.
     4        https://bugs.webkit.org/show_bug.cgi?id=226834
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        'SimpleHTTPServerDriver._ensure_http_server_dependencies' will not work if the
     9        python version used by run-benchmark is not the same as the one invokes http server.
     10
     11        Remove python modules no longer needed by http server.
     12
     13        * Scripts/webkitpy/benchmark_runner/http_server_driver/simple_http_server_driver.py:
     14        (SimpleHTTPServerDriver.serve):
     15        (SimpleHTTPServerDriver._ensure_http_server_dependencies):
     16
    1172021-06-09  Fujii Hironori  <Hironori.Fujii@sony.com>
    218
  • trunk/Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/simple_http_server_driver.py

    r278638 r278670  
    55import re
    66import subprocess
     7import sys
    78import time
    89
     
    3334            interface_args.extend(['--interface', self._ip])
    3435        self._server_port = 0
    35         self._server_process = subprocess.Popen(["python", http_server_path, web_root] + interface_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     36        self._server_process = subprocess.Popen([sys.executable, http_server_path, web_root] + interface_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    3637        max_attempt = 7
    3738        retry_sequence = map(lambda attempt: attempt != max_attempt - 1, range(max_attempt))
     
    107108    def _ensure_http_server_dependencies(self):
    108109        _log.info('Ensure dependencies of http server is satisfied')
    109         from pkg_resources import require, VersionConflict, DistributionNotFound
    110110        from webkitpy.autoinstalled import twisted
Note: See TracChangeset for help on using the changeset viewer.