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

Issue 1959563002: Use subprocess42 in recipe_engine to avoid threading madness. (Closed)

Created:
4 years, 7 months ago by iannucci
Modified:
4 years, 7 months ago
CC:
chromium-reviews, infra-reviews+recipes-py_chromium.org
Base URL:
https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Target Ref:
refs/heads/master
Project:
recipes-py
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Don't need a lock because we're single threaded now! #

Total comments: 11

Patch Set 3 : Address comments, improve linebuf, make subprocess42 an actual engine mode #

Total comments: 10

Patch Set 4 : whitespace #

Total comments: 1

Patch Set 5 : oops #

Patch Set 6 : *sigh* presubmit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+956 lines, -50 lines) Patch
M recipe_engine/run.py View 1 2 3 4 5 4 chunks +21 lines, -6 lines 0 comments Download
M recipe_engine/step_runner.py View 1 2 3 4 5 chunks +118 lines, -35 lines 0 comments Download
A recipe_engine/third_party/subprocess42.py View 1 chunk +598 lines, -0 lines 0 comments Download
M recipe_engine/unittests/run_test.py View 1 2 7 chunks +81 lines, -9 lines 0 comments Download
A recipe_engine/unittests/step_runner_test.py View 1 2 1 chunk +62 lines, -0 lines 0 comments Download
A recipes/engine_tests/bad_subprocess.py View 1 chunk +37 lines, -0 lines 0 comments Download
A recipes/engine_tests/bad_subprocess.expected/basic.json View 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
iannucci
4 years, 7 months ago (2016-05-06 03:38:04 UTC) #1
M-A Ruel
lgtm https://codereview.chromium.org/1959563002/diff/20001/recipe_engine/step_runner.py File recipe_engine/step_runner.py (right): https://codereview.chromium.org/1959563002/diff/20001/recipe_engine/step_runner.py#newcode23 recipe_engine/step_runner.py:23: if sys.platform.startswith('win'): if sys.platform == 'win32': https://codereview.chromium.org/1959563002/diff/20001/recipe_engine/step_runner.py#newcode33 recipe_engine/step_runner.py:33: ...
4 years, 7 months ago (2016-05-06 14:12:52 UTC) #2
iannucci
OK, PTAL * made linebuffer more efficient for very long lines (no quadradic allocation: some ...
4 years, 7 months ago (2016-05-06 17:52:01 UTC) #3
M-A Ruel
https://codereview.chromium.org/1959563002/diff/20001/recipe_engine/step_runner.py File recipe_engine/step_runner.py (right): https://codereview.chromium.org/1959563002/diff/20001/recipe_engine/step_runner.py#newcode33 recipe_engine/step_runner.py:33: ctypes.windll.kernel32.SetErrorMode(0x0002) On 2016/05/06 17:52:01, iannucci wrote: > > That's ...
4 years, 7 months ago (2016-05-06 17:57:51 UTC) #4
iannucci
https://codereview.chromium.org/1959563002/diff/40001/recipe_engine/step_runner.py File recipe_engine/step_runner.py (right): https://codereview.chromium.org/1959563002/diff/40001/recipe_engine/step_runner.py#newcode313 recipe_engine/step_runner.py:313: PIPE = subprocess.PIPE PIPE is actually always the same ...
4 years, 7 months ago (2016-05-06 18:02:33 UTC) #5
iannucci
On 2016/05/06 17:57:51, M-A Ruel wrote: > https://codereview.chromium.org/1959563002/diff/20001/recipe_engine/step_runner.py > File recipe_engine/step_runner.py (right): > > https://codereview.chromium.org/1959563002/diff/20001/recipe_engine/step_runner.py#newcode33 ...
4 years, 7 months ago (2016-05-06 18:03:17 UTC) #6
martiniss
lgtm https://codereview.chromium.org/1959563002/diff/40001/recipe_engine/run.py File recipe_engine/run.py (right): https://codereview.chromium.org/1959563002/diff/40001/recipe_engine/run.py#newcode306 recipe_engine/run.py:306: if '$recipe_engine' in properties: I don't think the ...
4 years, 7 months ago (2016-05-06 18:09:14 UTC) #7
iannucci
https://codereview.chromium.org/1959563002/diff/40001/recipe_engine/run.py File recipe_engine/run.py (right): https://codereview.chromium.org/1959563002/diff/40001/recipe_engine/run.py#newcode306 recipe_engine/run.py:306: if '$recipe_engine' in properties: On 2016/05/06 18:09:14, martiniss wrote: ...
4 years, 7 months ago (2016-05-06 18:18:04 UTC) #8
martiniss
https://codereview.chromium.org/1959563002/diff/40001/recipe_engine/unittests/run_test.py File recipe_engine/unittests/run_test.py (right): https://codereview.chromium.org/1959563002/diff/40001/recipe_engine/unittests/run_test.py#newcode67 recipe_engine/unittests/run_test.py:67: props.update(ENABLE_SUBPROCESS42) On 2016/05/06 at 18:18:04, iannucci wrote: > On ...
4 years, 7 months ago (2016-05-06 18:19:05 UTC) #9
estaab
lgtm
4 years, 7 months ago (2016-05-06 19:05:43 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1959563002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1959563002/80001
4 years, 7 months ago (2016-05-06 19:19:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1959563002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1959563002/100001
4 years, 7 months ago (2016-05-06 19:23:08 UTC) #16
commit-bot: I haz the power
4 years, 7 months ago (2016-05-06 19:26:07 UTC) #18
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://github.com/luci/recipes-py/commit/614e66740642550cba38bc78a2776866dae...

Powered by Google App Engine
This is Rietveld 408576698