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

Issue 2245553002: Inherit appropiate environment variables in goma module for goma_utils.py (Closed)

Created:
4 years, 4 months ago by tikuta
Modified:
4 years, 4 months ago
CC:
chromium-reviews, infra-reviews+build_chromium.org, kjellander-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/build.git@master
Target Ref:
refs/heads/master
Project:
build
Visibility:
Public.

Description

Inherit appropiate environment variables in goma module for goma_utils.py goma_utils.py finds a compiler_proxy.INFO from temporary dir set in env. But, there is not consistency with glog temporary dir. glog uses GLOG_log_dir if it is set in env. By inheriting some env variables and forbidding GLOG_log_dir, goma_util.py can find the INFO file from correct location. * inherit some env vars to upload with log in goma_utils.SendGomaTsMon(). * if GLOG_log_dir is set, assertion failed. * stop to use GOMA_TMP_DIR as candidate directory for glog *.INFO files. * rename GetGomaTmpDirectory -> GetGomaLogDirectory in goma_utils.py BUG=544330 Committed: https://chromium.googlesource.com/chromium/tools/build/+/6da5a843e44836e7b7b084a6eca6c65eb4b4f16b

Patch Set 1 #

Total comments: 2

Patch Set 2 : use GLOG_log_dir for the location of INFO files #

Total comments: 4

Patch Set 3 : remove GOMA_TMP_DIR from goma_utils.py #

Total comments: 4

Patch Set 4 : do not use GOMA_TMP_DIR #

Total comments: 2

Patch Set 5 : rename GetGomaTmpDirectory -> GetGomaLogDirectory #

Total comments: 2

Patch Set 6 : fix docstring for GetGomaLogDirectory #

Total comments: 8

Patch Set 7 : fix typo and etc. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -6 lines) Patch
M scripts/slave/goma_utils.py View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M scripts/slave/recipe_modules/goma/api.py View 1 2 3 4 5 6 5 chunks +24 lines, -2 lines 0 comments Download
M scripts/slave/recipe_modules/goma/example.expected/linux.json View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/goma/example.expected/linux_upload_logs.json View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/goma/example.expected/mac.json View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/goma/example.expected/mac_upload_logs.json View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/goma/example.expected/win.json View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/goma/example.expected/win_upload_logs.json View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (24 generated)
tikuta
4 years, 4 months ago (2016-08-12 02:28:40 UTC) #8
ukai
https://codereview.chromium.org/2245553002/diff/1/scripts/slave/recipe_modules/goma/api.py File scripts/slave/recipe_modules/goma/api.py (right): https://codereview.chromium.org/2245553002/diff/1/scripts/slave/recipe_modules/goma/api.py#newcode87 scripts/slave/recipe_modules/goma/api.py:87: self._goma_ctl_env['GOMA_TMP_DIR'] = self.m.path.mkdtemp('goma_tmp_dir') can we make sure all gomacc ...
4 years, 4 months ago (2016-08-12 04:22:30 UTC) #9
tikuta
Thank you for review. https://codereview.chromium.org/2245553002/diff/1/scripts/slave/recipe_modules/goma/api.py File scripts/slave/recipe_modules/goma/api.py (right): https://codereview.chromium.org/2245553002/diff/1/scripts/slave/recipe_modules/goma/api.py#newcode87 scripts/slave/recipe_modules/goma/api.py:87: self._goma_ctl_env['GOMA_TMP_DIR'] = self.m.path.mkdtemp('goma_tmp_dir') On 2016/08/12 ...
4 years, 4 months ago (2016-08-12 04:55:27 UTC) #12
ukai
https://codereview.chromium.org/2245553002/diff/20001/scripts/slave/goma_utils.py File scripts/slave/goma_utils.py (right): https://codereview.chromium.org/2245553002/diff/20001/scripts/slave/goma_utils.py#newcode46 scripts/slave/goma_utils.py:46: candidates = ['GOMA_TMP_DIR', 'TEST_TMPDIR', 'TMPDIR', 'TMP'] GOMA_TMP_DIR, GLOG_log_dir, .. ...
4 years, 4 months ago (2016-08-15 06:40:45 UTC) #13
tikuta
https://codereview.chromium.org/2245553002/diff/20001/scripts/slave/goma_utils.py File scripts/slave/goma_utils.py (right): https://codereview.chromium.org/2245553002/diff/20001/scripts/slave/goma_utils.py#newcode46 scripts/slave/goma_utils.py:46: candidates = ['GOMA_TMP_DIR', 'TEST_TMPDIR', 'TMPDIR', 'TMP'] On 2016/08/15 06:40:45, ...
4 years, 4 months ago (2016-08-15 08:35:28 UTC) #15
Yoshisato Yanagisawa
lgtm w/ comments. https://codereview.chromium.org/2245553002/diff/40001/scripts/slave/recipe_modules/goma/api.py File scripts/slave/recipe_modules/goma/api.py (right): https://codereview.chromium.org/2245553002/diff/40001/scripts/slave/recipe_modules/goma/api.py#newcode27 scripts/slave/recipe_modules/goma/api.py:27: 'BUILDBOT_CLOBBER', I doubt you need to ...
4 years, 4 months ago (2016-08-16 03:54:23 UTC) #16
tikuta
https://codereview.chromium.org/2245553002/diff/40001/scripts/slave/recipe_modules/goma/api.py File scripts/slave/recipe_modules/goma/api.py (right): https://codereview.chromium.org/2245553002/diff/40001/scripts/slave/recipe_modules/goma/api.py#newcode27 scripts/slave/recipe_modules/goma/api.py:27: 'BUILDBOT_CLOBBER', On 2016/08/16 03:54:23, Yoshisato Yanagisawa wrote: > I ...
4 years, 4 months ago (2016-08-16 04:09:04 UTC) #17
shinyak
lgtm Could you elaborate the commit log so that why this change is necessary?
4 years, 4 months ago (2016-08-16 04:17:31 UTC) #18
tikuta
On 2016/08/16 04:17:31, shinyak wrote: > lgtm > > Could you elaborate the commit log ...
4 years, 4 months ago (2016-08-16 04:27:59 UTC) #20
ukai
lgtm https://codereview.chromium.org/2245553002/diff/60001/scripts/slave/goma_utils.py File scripts/slave/goma_utils.py (right): https://codereview.chromium.org/2245553002/diff/60001/scripts/slave/goma_utils.py#newcode44 scripts/slave/goma_utils.py:44: def GetGomaTmpDirectory(): GetGomaLogDirectory()?
4 years, 4 months ago (2016-08-16 05:39:47 UTC) #26
tikuta
Now, I got lgtm from all goma developers. But, nobody of goma member is in ...
4 years, 4 months ago (2016-08-16 05:46:01 UTC) #28
ukai
lgtm https://codereview.chromium.org/2245553002/diff/80001/scripts/slave/goma_utils.py File scripts/slave/goma_utils.py (right): https://codereview.chromium.org/2245553002/diff/80001/scripts/slave/goma_utils.py#newcode45 scripts/slave/goma_utils.py:45: """Get goma's temp directory.""" fix doc string as ...
4 years, 4 months ago (2016-08-16 07:21:56 UTC) #29
tikuta
https://codereview.chromium.org/2245553002/diff/80001/scripts/slave/goma_utils.py File scripts/slave/goma_utils.py (right): https://codereview.chromium.org/2245553002/diff/80001/scripts/slave/goma_utils.py#newcode45 scripts/slave/goma_utils.py:45: """Get goma's temp directory.""" On 2016/08/16 07:21:56, ukai wrote: ...
4 years, 4 months ago (2016-08-16 07:25:06 UTC) #30
ukai
lgtm
4 years, 4 months ago (2016-08-17 00:58:35 UTC) #31
Paweł Hajdan Jr.
LGTM w/comments https://codereview.chromium.org/2245553002/diff/100001/scripts/slave/recipe_modules/goma/api.py File scripts/slave/recipe_modules/goma/api.py (right): https://codereview.chromium.org/2245553002/diff/100001/scripts/slave/recipe_modules/goma/api.py#newcode19 scripts/slave/recipe_modules/goma/api.py:19: nit: Remove redundant empty line (in a ...
4 years, 4 months ago (2016-08-17 06:31:06 UTC) #32
tikuta
Thank you for review! I'll commit this after passing dry run. https://codereview.chromium.org/2245553002/diff/100001/scripts/slave/recipe_modules/goma/api.py File scripts/slave/recipe_modules/goma/api.py (right): ...
4 years, 4 months ago (2016-08-17 06:57:27 UTC) #33
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/2245553002/120001
4 years, 4 months ago (2016-08-17 07:11:43 UTC) #40
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/tools/build/+/6da5a843e44836e7b7b084a6eca6c65eb4b4f16b
4 years, 4 months ago (2016-08-17 07:16:03 UTC) #42
Paweł Hajdan Jr.
4 years, 4 months ago (2016-08-17 08:32:38 UTC) #43
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/2250973002/ by phajdan.jr@chromium.org.

The reason for reverting is: This interacts badly with the recipe autoroller,
see e.g. https://goto.google.com/tezblb ..

Powered by Google App Engine
This is Rietveld 408576698