Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(523)

Issue 6627013: Correctly kill 'git daemon' child process, fixing a lot of testing issues. (Closed)

Created:
9 years, 9 months ago by M-A Ruel
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Bernhard Bauer
Visibility:
Public.

Description

Correctly kill 'git daemon' child process, fixing a lot of testing issues. Add code to wait for the bound port to open and close correctly, removing race conditions. BUG=test reliability TEST=better Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76966

Patch Set 1 #

Total comments: 13

Patch Set 2 : Address review comments #

Patch Set 3 : try to stabilize #

Patch Set 4 : Fixed race condition #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -48 lines) Patch
M tests/fake_repos.py View 1 2 3 10 chunks +139 lines, -43 lines 4 comments Download
M tests/gclient_smoketest.py View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M tests/scm_unittest.py View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
M-A Ruel
I have more changes following to improve reliability
9 years, 9 months ago (2011-03-04 18:08:16 UTC) #1
Evan Martin
http://codereview.chromium.org/6627013/diff/1/tests/fake_repos.py File tests/fake_repos.py (right): http://codereview.chromium.org/6627013/diff/1/tests/fake_repos.py#newcode38 tests/fake_repos.py:38: def addKill(): The capitalization style of this doesn't match ...
9 years, 9 months ago (2011-03-04 18:13:13 UTC) #2
M-A Ruel
Updated. http://codereview.chromium.org/6627013/diff/1/tests/fake_repos.py File tests/fake_repos.py (right): http://codereview.chromium.org/6627013/diff/1/tests/fake_repos.py#newcode38 tests/fake_repos.py:38: def addKill(): On 2011/03/04 18:13:13, Evan Martin wrote: ...
9 years, 9 months ago (2011-03-04 18:53:30 UTC) #3
Evan Martin
LGTM (not sure if you wanted dpranke to look, sorry for hijacking the review)
9 years, 9 months ago (2011-03-04 18:57:08 UTC) #4
commit-bot: I haz the power
Can't apply patch for file tests/gclient_smoketest.py. patching file tests/gclient_smoketest.py Hunk #1 FAILED at 257. Hunk ...
9 years, 9 months ago (2011-03-04 18:58:43 UTC) #5
M-A Ruel
On 2011/03/04 18:58:43, commit-bot wrote: > Can't apply patch for file tests/gclient_smoketest.py. > patching file ...
9 years, 9 months ago (2011-03-04 19:00:14 UTC) #6
Dirk Pranke
LGTM, with the minor nits noted. http://codereview.chromium.org/6627013/diff/4002/tests/fake_repos.py File tests/fake_repos.py (right): http://codereview.chromium.org/6627013/diff/4002/tests/fake_repos.py#newcode66 tests/fake_repos.py:66: return kill_pid(process.pid) I'd ...
9 years, 9 months ago (2011-03-04 21:15:16 UTC) #7
commit-bot: I haz the power
Change committed as 76966
9 years, 9 months ago (2011-03-04 21:16:13 UTC) #8
M-A Ruel
http://codereview.chromium.org/6627013/diff/4002/tests/fake_repos.py File tests/fake_repos.py (right): http://codereview.chromium.org/6627013/diff/4002/tests/fake_repos.py#newcode66 tests/fake_repos.py:66: return kill_pid(process.pid) On 2011/03/04 21:15:17, dpranke wrote: > I'd ...
9 years, 9 months ago (2011-03-04 21:18:21 UTC) #9
Dirk Pranke
9 years, 9 months ago (2011-03-04 21:27:04 UTC) #10
On Fri, Mar 4, 2011 at 1:18 PM,  <maruel@chromium.org> wrote:
>
> http://codereview.chromium.org/6627013/diff/4002/tests/fake_repos.py
> File tests/fake_repos.py (right):
>
> http://codereview.chromium.org/6627013/diff/4002/tests/fake_repos.py#newcode66
> tests/fake_repos.py:66: return kill_pid(process.pid)
> On 2011/03/04 21:15:17, dpranke wrote:
>>
>> I'd likely just change kill_pid to take process as an argument for
>
> consistency
>>
>> w/ kill_win()
>
> I can't because I need to kill 'git-daemon' child process by pid.
>

Ah, right, sorry.

-- Dirk

Powered by Google App Engine
This is Rietveld 408576698