RESOLVED FIXED145582
streamline benchmark-runner browser
https://bugs.webkit.org/show_bug.cgi?id=145582
Summary streamline benchmark-runner browser
Stephanie Lewis
Reported 2015-06-02 17:50:10 PDT
Created attachment 254127 [details] patch Some minor changes to benchmark-runner browser. Add Caffeinated Don't block on getting output. Use system safari as default. Add xpc dyld path.
Attachments
patch (5.75 KB, patch)
2015-06-02 17:50 PDT, Stephanie Lewis
rniwa: review+
WebKit Commit Bot
Comment 1 2015-06-02 17:53:09 PDT
Attachment 254127 [details] did not pass style-queue: ERROR: Tools/ChangeLog:1: ChangeLog entry has no bug number [changelog/bugnumber] [5] Total errors found: 1 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Ryosuke Niwa
Comment 2 2015-06-02 18:06:11 PDT
Comment on attachment 254127 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=254127&action=review > Tools/Scripts/webkitpy/benchmark_runner/browser_driver/osx_browser_driver.py:32 > + process = subprocess.Popen(['open', '-a', appPath] + args) > + cls.launchCaffeinateForProcess(process.pid) Instead of having a helper function to launch caffinate, why don't we add a method e.g. launchProcessWithCaffinate that launches both the target process and caffeinate? > Tools/Scripts/webkitpy/benchmark_runner/browser_driver/osx_browser_driver.py:43 > + subprocess.Popen(["/usr/bin/caffeinate", "-disw", str(pid)]) Does caffeinate automatically terminate? > Tools/Scripts/webkitpy/benchmark_runner/browser_driver/osx_safari_driver.py:39 > + self.safariProcess = subprocess.Popen(args, env=env) > + > + OSXSafariDriver.launchCaffeinateForProcess(self.safariProcess.pid) That way, we can just call that function instead of Popen'ing and calling a separate helper function.
Stephanie Lewis
Comment 3 2015-06-02 18:08:38 PDT
(In reply to comment #2) > Comment on attachment 254127 [details] > patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=254127&action=review > > > Tools/Scripts/webkitpy/benchmark_runner/browser_driver/osx_browser_driver.py:32 > > + process = subprocess.Popen(['open', '-a', appPath] + args) > > + cls.launchCaffeinateForProcess(process.pid) > > Instead of having a helper function to launch caffinate, why don't we add a > method e.g. launchProcessWithCaffinate that launches both the target process > and caffeinate? > > > Tools/Scripts/webkitpy/benchmark_runner/browser_driver/osx_browser_driver.py:43 > > + subprocess.Popen(["/usr/bin/caffeinate", "-disw", str(pid)]) > > Does caffeinate automatically terminate? Yeah Caffeinate takes the pid of a process to watch and terminates when the process terminates. > > > Tools/Scripts/webkitpy/benchmark_runner/browser_driver/osx_safari_driver.py:39 > > + self.safariProcess = subprocess.Popen(args, env=env) > > + > > + OSXSafariDriver.launchCaffeinateForProcess(self.safariProcess.pid) > > That way, we can just call that function instead of Popen'ing and calling a > separate helper function.
Stephanie Lewis
Comment 4 2015-06-05 02:53:03 PDT
Note You need to log in before you can comment on or make changes to this bug.