WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
69976
Kill old run-webkit-tests processes in kill-process on Mac
https://bugs.webkit.org/show_bug.cgi?id=69976
Summary
Kill old run-webkit-tests processes in kill-process on Mac
Ryosuke Niwa
Reported
2011-10-12 16:57:01 PDT
We should kill all python instances executing run-webkit-tests.
Attachments
adds a new system call to kill-old-processes
(1.40 KB, patch)
2011-10-12 17:00 PDT
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Fixed indentation and typo
(1.39 KB, patch)
2011-10-12 17:22 PDT
,
Ryosuke Niwa
dpranke
: review-
Details
Formatted Diff
Diff
new patch
(1.38 KB, patch)
2011-10-12 17:41 PDT
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
new patch 2
(1.59 KB, patch)
2011-10-12 17:43 PDT
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2011-10-12 17:00:17 PDT
Created
attachment 110771
[details]
adds a new system call to kill-old-processes
Eric Seidel (no email)
Comment 2
2011-10-12 17:04:35 PDT
Comment on
attachment 110771
[details]
adds a new system call to kill-old-processes Um. You want to call this once for each task? Makes no sense.
Tony Chang
Comment 3
2011-10-12 17:08:13 PDT
What about the buildbot process?
Ryosuke Niwa
Comment 4
2011-10-12 17:08:25 PDT
(In reply to
comment #2
)
> (From update of
attachment 110771
[details]
) > Um. You want to call this once for each task? Makes no sense.
I don't quite get what you mean. We need to kill all python instances running run-webkit-tests (in particular child processes created by manager.py). How else can we accomplish this?
Ryosuke Niwa
Comment 5
2011-10-12 17:09:02 PDT
(In reply to
comment #3
)
> What about the buildbot process?
The
bug 63651
will enable kill-old-processes on Mac so this will be a buildbot step.
Tony Chang
Comment 6
2011-10-12 17:09:52 PDT
(In reply to
comment #5
)
> (In reply to
comment #3
) > > What about the buildbot process? > > The
bug 63651
will enable kill-old-processes on Mac so this will be a buildbot step.
I mean, buildbot is a python process. You probably don't want to kill it.
Ryosuke Niwa
Comment 7
2011-10-12 17:11:07 PDT
(In reply to
comment #6
)
> (In reply to
comment #5
) > > (In reply to
comment #3
) > > > What about the buildbot process? > > > > The
bug 63651
will enable kill-old-processes on Mac so this will be a buildbot step. > > I mean, buildbot is a python process. You probably don't want to kill it.
Right, that's why I'm explicitly looking for python process with run-webkit-test string: grep -P '.+/Python .+(run_webkit_tests|run-webkit-tests)'
Tony Chang
Comment 8
2011-10-12 17:12:48 PDT
Comment on
attachment 110771
[details]
adds a new system call to kill-old-processes View in context:
https://bugs.webkit.org/attachment.cgi?id=110771&action=review
> Tools/BuildSlaveSupport/kill-old-processes:80 > + # Kill all instances of pyhton executing run-webkit-tests
typo: pyhton
Eric Seidel (no email)
Comment 9
2011-10-12 17:16:27 PDT
Comment on
attachment 110771
[details]
adds a new system call to kill-old-processes View in context:
https://bugs.webkit.org/attachment.cgi?id=110771&action=review
> Tools/BuildSlaveSupport/kill-old-processes:81 > + os.system("aux | grep -P '.+/Python .+(run_webkit_tests|run-webkit-tests)' | grep -v grep | awk '{print $2}' | xargs kill")
You're runing this in a loop. Once for every "task" in the array. WHy?
Ryosuke Niwa
Comment 10
2011-10-12 17:17:56 PDT
Comment on
attachment 110771
[details]
adds a new system call to kill-old-processes View in context:
https://bugs.webkit.org/attachment.cgi?id=110771&action=review
>> Tools/BuildSlaveSupport/kill-old-processes:81 >> + os.system("aux | grep -P '.+/Python .+(run_webkit_tests|run-webkit-tests)' | grep -v grep | awk '{print $2}' | xargs kill") > > You're runing this in a loop. Once for every "task" in the array. WHy?
Oh oops, that's definitely a typo! Will fix. This is why I hate python :(
Ryosuke Niwa
Comment 11
2011-10-12 17:22:05 PDT
Created
attachment 110776
[details]
Fixed indentation and typo
Dirk Pranke
Comment 12
2011-10-12 17:32:41 PDT
Comment on
attachment 110776
[details]
Fixed indentation and typo View in context:
https://bugs.webkit.org/attachment.cgi?id=110776&action=review
> Tools/BuildSlaveSupport/kill-old-processes:81 > + os.system("aux | grep -P '.+/Python .+(run_webkit_tests|run-webkit-tests)' | grep -v grep | awk '{print $2}' | xargs kill")
presumably this should be "ps aux" at the beginning?
Dirk Pranke
Comment 13
2011-10-12 17:34:12 PDT
(In reply to
comment #12
)
> (From update of
attachment 110776
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=110776&action=review
> > > Tools/BuildSlaveSupport/kill-old-processes:81 > > + os.system("aux | grep -P '.+/Python .+(run_webkit_tests|run-webkit-tests)' | grep -v grep | awk '{print $2}' | xargs kill") > > presumably this should be "ps aux" at the beginning?
Also, if you add this, can you remove 'httpd' from tasksToKill? NRWT should restart httpd itself correctly on the next run, if it started the last one.
Ryosuke Niwa
Comment 14
2011-10-12 17:41:46 PDT
Created
attachment 110780
[details]
new patch
Ryosuke Niwa
Comment 15
2011-10-12 17:43:06 PDT
Created
attachment 110781
[details]
new patch 2 Oops, wrong file.
WebKit Review Bot
Comment 16
2011-10-12 18:33:05 PDT
Comment on
attachment 110781
[details]
new patch 2 Clearing flags on attachment: 110781 Committed
r97330
: <
http://trac.webkit.org/changeset/97330
>
WebKit Review Bot
Comment 17
2011-10-12 18:33:10 PDT
All reviewed patches have been landed. Closing bug.
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