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

Issue 2480193002: Stop to use contextmanager for goma.build_with_goma (Closed)

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

Description

Stop to use contextmanager for goma.build_with_goma build_with_goma receives ninja_command and builds use it. This is followup CL of https://codereview.chromium.org/2466793002/ * fix pdfium.py and chromium.py for this interface change BUG=656540 Committed: https://chromium.googlesource.com/chromium/tools/build/+/27cea7cd1caf1c472b4f55dfe648c52bf0642500

Patch Set 1 #

Patch Set 2 : 1 -> true #

Total comments: 2

Patch Set 3 : use env_update #

Total comments: 8

Patch Set 4 : update #

Total comments: 6

Patch Set 5 : fix #

Patch Set 6 : rebase #

Patch Set 7 : use env_update size #

Patch Set 8 : rebase #

Patch Set 9 : fix pylint #

Total comments: 9

Patch Set 10 : rebase and use env_update in pdfium #

Patch Set 11 : modify ninja_command if not None #

Patch Set 12 : change build_with_goma #

Patch Set 13 : make CL smaller #

Patch Set 14 : make smaller #

Patch Set 15 : rebase #

Patch Set 16 : rebase #

Patch Set 17 : rebase #

Patch Set 18 : comment update #

Patch Set 19 : fix comment #

Patch Set 20 : fix for goma disable #

Patch Set 21 : rebase #

Patch Set 22 : rebase #

Patch Set 23 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -201 lines) Patch
M scripts/slave/recipe_modules/chromium/api.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +9 lines, -18 lines 0 comments Download
M scripts/slave/recipe_modules/goma/api.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 6 chunks +53 lines, -30 lines 0 comments Download
M scripts/slave/recipe_modules/goma/example.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +6 lines, -14 lines 0 comments Download
M scripts/slave/recipe_modules/goma/example.expected/linux.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +4 lines, -45 lines 0 comments Download
M scripts/slave/recipe_modules/goma/example.expected/mac.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +4 lines, -45 lines 0 comments Download
M scripts/slave/recipe_modules/goma/example.expected/win.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +4 lines, -45 lines 0 comments Download
M scripts/slave/recipe_modules/goma/example.expected/win_goma_disabled.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +13 lines, -0 lines 0 comments Download
M scripts/slave/recipes/pdfium.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 110 (86 generated)
tikuta
PTAL.
4 years, 1 month ago (2016-11-07 08:57:56 UTC) #7
shinyak
https://codereview.chromium.org/2480193002/diff/20001/scripts/slave/recipe_modules/goma/example.expected/linux_goma_disabled.json File scripts/slave/recipe_modules/goma/example.expected/linux_goma_disabled.json (right): https://codereview.chromium.org/2480193002/diff/20001/scripts/slave/recipe_modules/goma/example.expected/linux_goma_disabled.json#newcode192 scripts/slave/recipe_modules/goma/example.expected/linux_goma_disabled.json:192: "500" -j500 for goma disabled? weird.
4 years, 1 month ago (2016-11-07 11:28:14 UTC) #11
tikuta
https://codereview.chromium.org/2480193002/diff/20001/scripts/slave/recipe_modules/goma/example.expected/linux_goma_disabled.json File scripts/slave/recipe_modules/goma/example.expected/linux_goma_disabled.json (right): https://codereview.chromium.org/2480193002/diff/20001/scripts/slave/recipe_modules/goma/example.expected/linux_goma_disabled.json#newcode192 scripts/slave/recipe_modules/goma/example.expected/linux_goma_disabled.json:192: "500" On 2016/11/07 11:28:14, shinyak wrote: > -j500 for ...
4 years, 1 month ago (2016-11-07 11:35:24 UTC) #14
ukai
https://codereview.chromium.org/2480193002/diff/40001/scripts/slave/recipe_modules/chromium/api.py File scripts/slave/recipe_modules/chromium/api.py (right): https://codereview.chromium.org/2480193002/diff/40001/scripts/slave/recipe_modules/chromium/api.py#newcode286 scripts/slave/recipe_modules/chromium/api.py:286: command += ['-j', self.m.goma.recommended_goma_jobs] might be better to add ...
4 years, 1 month ago (2016-11-08 04:11:57 UTC) #17
tikuta
https://codereview.chromium.org/2480193002/diff/40001/scripts/slave/recipe_modules/chromium/api.py File scripts/slave/recipe_modules/chromium/api.py (right): https://codereview.chromium.org/2480193002/diff/40001/scripts/slave/recipe_modules/chromium/api.py#newcode286 scripts/slave/recipe_modules/chromium/api.py:286: command += ['-j', self.m.goma.recommended_goma_jobs] On 2016/11/08 04:11:57, ukai wrote: ...
4 years, 1 month ago (2016-11-09 05:31:12 UTC) #20
ukai
presubmit failed? https://codereview.chromium.org/2480193002/diff/60001/scripts/slave/recipe_modules/chromium/api.py File scripts/slave/recipe_modules/chromium/api.py (right): https://codereview.chromium.org/2480193002/diff/60001/scripts/slave/recipe_modules/chromium/api.py#newcode297 scripts/slave/recipe_modules/chromium/api.py:297: if self.m.platform.is_win and 'GOMA_DISABLED' in env_update: edge ...
4 years, 1 month ago (2016-11-10 02:47:02 UTC) #23
tikuta
https://codereview.chromium.org/2480193002/diff/60001/scripts/slave/recipe_modules/chromium/api.py File scripts/slave/recipe_modules/chromium/api.py (right): https://codereview.chromium.org/2480193002/diff/60001/scripts/slave/recipe_modules/chromium/api.py#newcode297 scripts/slave/recipe_modules/chromium/api.py:297: if self.m.platform.is_win and 'GOMA_DISABLED' in env_update: On 2016/11/10 02:47:02, ...
4 years, 1 month ago (2016-11-11 08:14:55 UTC) #32
shinyak
lgtm https://codereview.chromium.org/2480193002/diff/110001/scripts/slave/recipe_modules/goma/api.py File scripts/slave/recipe_modules/goma/api.py (right): https://codereview.chromium.org/2480193002/diff/110001/scripts/slave/recipe_modules/goma/api.py#newcode98 scripts/slave/recipe_modules/goma/api.py:98: command.pop(i + 1) I didn't notice before, but ...
4 years, 1 month ago (2016-11-14 08:14:08 UTC) #43
Paweł Hajdan Jr.
"not lgtm" based on API concerns Please keep up the work on the goma module, ...
4 years, 1 month ago (2016-11-14 09:33:23 UTC) #44
tikuta
https://codereview.chromium.org/2480193002/diff/110001/scripts/slave/recipe_modules/goma/api.py File scripts/slave/recipe_modules/goma/api.py (right): https://codereview.chromium.org/2480193002/diff/110001/scripts/slave/recipe_modules/goma/api.py#newcode98 scripts/slave/recipe_modules/goma/api.py:98: command.pop(i + 1) On 2016/11/14 08:14:08, shinyak wrote: > ...
4 years, 1 month ago (2016-11-14 11:22:02 UTC) #45
tikuta
https://codereview.chromium.org/2480193002/diff/110001/scripts/slave/recipe_modules/goma/api.py File scripts/slave/recipe_modules/goma/api.py (right): https://codereview.chromium.org/2480193002/diff/110001/scripts/slave/recipe_modules/goma/api.py#newcode344 scripts/slave/recipe_modules/goma/api.py:344: Please use env_update and ninja_command On 2016/11/14 11:22:02, tikuta ...
4 years, 1 month ago (2016-11-15 07:07:11 UTC) #50
shinyak
https://codereview.chromium.org/2480193002/diff/110001/scripts/slave/recipe_modules/goma/api.py File scripts/slave/recipe_modules/goma/api.py (right): https://codereview.chromium.org/2480193002/diff/110001/scripts/slave/recipe_modules/goma/api.py#newcode353 scripts/slave/recipe_modules/goma/api.py:353: if ninja_command is None: Then ninja_command in L386 could ...
4 years, 1 month ago (2016-11-15 07:27:19 UTC) #51
tikuta
Paweł, would you review again? https://codereview.chromium.org/2480193002/diff/110001/scripts/slave/recipe_modules/goma/api.py File scripts/slave/recipe_modules/goma/api.py (right): https://codereview.chromium.org/2480193002/diff/110001/scripts/slave/recipe_modules/goma/api.py#newcode353 scripts/slave/recipe_modules/goma/api.py:353: if ninja_command is None: ...
4 years, 1 month ago (2016-11-16 06:51:51 UTC) #54
Paweł Hajdan Jr.
+iannucci for recipes Since build_with_goma seems to already heavily use ninja, the alternatives I see ...
4 years, 1 month ago (2016-11-16 08:38:35 UTC) #59
tikuta
On 2016/11/16 08:38:35, Paweł Hajdan Jr. wrote: > +iannucci for recipes > > Since build_with_goma ...
4 years, 1 month ago (2016-11-17 06:53:00 UTC) #83
tikuta
On 2016/11/17 06:53:00, tikuta wrote: > On 2016/11/16 08:38:35, Paweł Hajdan Jr. wrote: > > ...
4 years, 1 month ago (2016-11-17 07:29:25 UTC) #86
tikuta
On 2016/11/17 07:29:25, tikuta wrote: > On 2016/11/17 06:53:00, tikuta wrote: > > On 2016/11/16 ...
4 years, 1 month ago (2016-11-17 07:37:00 UTC) #87
tikuta
Presubmit passed. PTAL?
4 years, 1 month ago (2016-11-21 05:00:51 UTC) #96
Paweł Hajdan Jr.
LGTM . Thanks for making these changes. Consider checking with Robbie (may need a ping ...
4 years, 1 month ago (2016-11-21 17:17:16 UTC) #97
ukai
lgtm
4 years, 1 month ago (2016-11-22 06:53:28 UTC) #102
iannucci
lgtm
4 years, 1 month ago (2016-11-22 08:29:38 UTC) #103
tikuta
Thank you for review! I commit this.
4 years, 1 month ago (2016-11-22 08:32:35 UTC) #104
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/2480193002/360001
4 years, 1 month ago (2016-11-22 08:32:58 UTC) #107
commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 08:42:58 UTC) #110
Message was sent while issue was closed.
Committed patchset #23 (id:360001) as
https://chromium.googlesource.com/chromium/tools/build/+/27cea7cd1caf1c472b4f...

Powered by Google App Engine
This is Rietveld 408576698