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

Issue 2444233002: Not wait cloudtail finish forerver on Windows. (Closed)

Created:
4 years, 1 month ago by Yoshisato Yanagisawa
Modified:
4 years, 1 month ago
Reviewers:
Vadim Sh., tikuta, ukai, shinyak
CC:
chromium-reviews, infra-reviews+build_chromium.org, kjellander-cc_chromium.org
Target Ref:
refs/heads/master
Project:
build
Visibility:
Public.

Description

Not wait cloudtail finish forerver on Windows. Let me provide better way of stopping cloudtail on Windows. 1. Use WaitForSingleObject to timeout in 10 seconds. 2. use handler to waitpid instead of pid. Also, handler is got before sending signal. 3. use signal.CTRL_C_EVENT if possible. BUG=656846 Committed: https://chromium.googlesource.com/chromium/tools/build/+/0d3a30427b4a190ca371310172455c0ea0c9064d

Patch Set 1 #

Total comments: 6

Patch Set 2 : add docstring, close handler, etc.. #

Total comments: 4

Patch Set 3 : revised with WaitForSingleObject instead. #

Total comments: 2

Patch Set 4 : fixed comments. #

Patch Set 5 : forget to write timeout. #

Patch Set 6 : added message to warn it passed 10 seconds. #

Total comments: 2

Patch Set 7 : fixed minor mistake. #

Patch Set 8 : fixed function comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -17 lines) Patch
M scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py View 1 2 3 4 5 6 7 2 chunks +62 lines, -17 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
Yoshisato Yanagisawa
4 years, 1 month ago (2016-10-25 05:38:45 UTC) #2
Yoshisato Yanagisawa
4 years, 1 month ago (2016-10-25 05:40:36 UTC) #4
Yoshisato Yanagisawa
Revised the code based on the comments by Vadim in https://codereview.chromium.org/2431223008/
4 years, 1 month ago (2016-10-25 05:41:08 UTC) #5
ukai
https://codereview.chromium.org/2444233002/diff/1/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py File scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py (right): https://codereview.chromium.org/2444233002/diff/1/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py#newcode58 scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py:58: def wait_termination_win(pid): doc string? https://codereview.chromium.org/2444233002/diff/1/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py#newcode63 scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py:63: handle = win32api.OpenProcess( ...
4 years, 1 month ago (2016-10-25 07:30:24 UTC) #6
Yoshisato Yanagisawa
https://codereview.chromium.org/2444233002/diff/1/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py File scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py (right): https://codereview.chromium.org/2444233002/diff/1/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py#newcode58 scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py:58: def wait_termination_win(pid): On 2016/10/25 07:30:24, ukai wrote: > doc ...
4 years, 1 month ago (2016-10-25 07:48:20 UTC) #7
Vadim Sh.
https://codereview.chromium.org/2444233002/diff/20001/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py File scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py (right): https://codereview.chromium.org/2444233002/diff/20001/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py#newcode84 scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py:84: os.waitpid(handle, 0) I think it would be simpler to ...
4 years, 1 month ago (2016-10-25 18:35:41 UTC) #8
Yoshisato Yanagisawa
https://codereview.chromium.org/2444233002/diff/20001/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py File scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py (right): https://codereview.chromium.org/2444233002/diff/20001/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py#newcode84 scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py:84: os.waitpid(handle, 0) On 2016/10/25 18:35:41, Vadim Sh. wrote: > ...
4 years, 1 month ago (2016-10-26 01:17:45 UTC) #10
Vadim Sh.
https://codereview.chromium.org/2444233002/diff/40001/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py File scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py (right): https://codereview.chromium.org/2444233002/diff/40001/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py#newcode90 scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py:90: ret = win32event.WaitForSingleObject(handle) I think you forgot to specify ...
4 years, 1 month ago (2016-10-26 01:21:16 UTC) #11
Yoshisato Yanagisawa
https://codereview.chromium.org/2444233002/diff/40001/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py File scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py (right): https://codereview.chromium.org/2444233002/diff/40001/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py#newcode90 scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py:90: ret = win32event.WaitForSingleObject(handle) On 2016/10/26 01:21:16, Vadim Sh. wrote: ...
4 years, 1 month ago (2016-10-26 01:23:14 UTC) #12
Vadim Sh.
lgtm, but it would be great if you can test it locally on Windows before ...
4 years, 1 month ago (2016-10-26 01:26:13 UTC) #13
tikuta
https://codereview.chromium.org/2444233002/diff/100001/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py File scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py (right): https://codereview.chromium.org/2444233002/diff/100001/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py#newcode69 scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py:69: instance of Exception: if raised unexpectedly. this statement can ...
4 years, 1 month ago (2016-10-26 01:34:05 UTC) #14
Yoshisato Yanagisawa
https://codereview.chromium.org/2444233002/diff/100001/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py File scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py (right): https://codereview.chromium.org/2444233002/diff/100001/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py#newcode69 scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py:69: instance of Exception: if raised unexpectedly. On 2016/10/26 01:34:05, ...
4 years, 1 month ago (2016-10-26 01:46:42 UTC) #15
tikuta
lgtm
4 years, 1 month ago (2016-10-26 02:08:27 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2444233002/140001
4 years, 1 month ago (2016-10-26 02:31:15 UTC) #19
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 02:40:57 UTC) #21
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/tools/build/+/0d3a30427b4a190ca371...

Powered by Google App Engine
This is Rietveld 408576698