|
|
Chromium Code Reviews
DescriptionAdd buildbot metadata to compiler_proxy log
We'd like to analyze compiler proxy log. However, buildbot metadata is
missing, so sometimes hard to determine in which builder the compiler
proxy log is generated.
Append buildbot metadata to compiler_proxy log like ninja log.
Committed: https://chromium.googlesource.com/chromium/tools/build/+/3d1cf68904cab7a23836940d3bdb1f43bee145b8
Patch Set 1 #
Total comments: 3
Patch Set 2 : Use cloud storage metadata #
Total comments: 5
Patch Set 3 : Save metadata with json #Patch Set 4 : typo fix #Patch Set 5 : Use bool for clobber field #Messages
Total messages: 35 (16 generated)
shinyak@chromium.org changed reviewers: + phajdan.jr@chromium.org, tikuta@chromium.org, ukai@chromium.org, yyanagisawa@chromium.org
lgtm https://codereview.chromium.org/2302453004/diff/1/scripts/slave/goma_utils.py File scripts/slave/goma_utils.py (right): https://codereview.chromium.org/2302453004/diff/1/scripts/slave/goma_utils.py... scripts/slave/goma_utils.py:128: 'env': {}, Why don't you use os.environ.clone()?
https://codereview.chromium.org/2302453004/diff/1/scripts/slave/goma_utils.py File scripts/slave/goma_utils.py (right): https://codereview.chromium.org/2302453004/diff/1/scripts/slave/goma_utils.py... scripts/slave/goma_utils.py:128: 'env': {}, On 2016/09/01 09:12:54, tikuta wrote: > Why don't you use os.environ.clone()? There is no method clone() in os.environ. json.dumps(os.environ) also does not work. It's not JSON serializable. Actually os.environ is not Dict.
Isn't os.environ lead to exactly same problems you've hit before? Why not use api.properties instead?
Hmm, what problems? This is appending buildbot data (e.g. mastername, buildername, etc.) to compiler_proxy log like goma_utils.UploadNinjaLog(). This is not recipe code. Do we have api.properties??
Ah, you're saying something like this patch? https://codereview.chromium.org/2306523002/
lgtm https://codereview.chromium.org/2302453004/diff/1/scripts/slave/goma_utils.py File scripts/slave/goma_utils.py (right): https://codereview.chromium.org/2302453004/diff/1/scripts/slave/goma_utils.py... scripts/slave/goma_utils.py:129: } sucproc info name?
The CQ bit was checked by shinyak@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
PTAL? Instead of adding text in compiler_proxy log, I chose to use cloud storage metadata to put master/slave/builder/clobber/os information.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: Build Presubmit on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/3111fc316b3ef310)
lgtm w/ comment.
https://codereview.chromium.org/2302453004/diff/20001/scripts/slave/goma_util... File scripts/slave/goma_utils.py (right): https://codereview.chromium.org/2302453004/diff/20001/scripts/slave/goma_util... scripts/slave/goma_utils.py:124: metadata = { I thought you encode metadata with gzip+base64 and subscriber just read one field and decode, but maybe ok with this.
https://codereview.chromium.org/2302453004/diff/20001/scripts/slave/goma_util... File scripts/slave/goma_utils.py (right): https://codereview.chromium.org/2302453004/diff/20001/scripts/slave/goma_util... scripts/slave/goma_utils.py:124: metadata = { On 2016/09/05 08:01:39, Yoshisato Yanagisawa wrote: > I thought you encode metadata with gzip+base64 and subscriber just read one > field and decode, but maybe ok with this. Hmm, I'm OK with gzip. these name could be too general for metadata?
https://codereview.chromium.org/2302453004/diff/20001/scripts/slave/goma_util... File scripts/slave/goma_utils.py (right): https://codereview.chromium.org/2302453004/diff/20001/scripts/slave/goma_util... scripts/slave/goma_utils.py:124: metadata = { Since this is small, I feel it's ok to save as json (without gzip), though...
https://codereview.chromium.org/2302453004/diff/20001/scripts/slave/goma_util... File scripts/slave/goma_utils.py (right): https://codereview.chromium.org/2302453004/diff/20001/scripts/slave/goma_util... scripts/slave/goma_utils.py:124: metadata = { Other reviewers may think the other things but I feel metadata keys a bit confusing because there is no hint in keys to mention who set them, or for guessing the purpose of them. I am afraid something bad happens with Windows command line but no need to compress or base64 encode. (maybe not encoding help us to read the config easily)
The CQ bit was checked by shinyak@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2302453004/diff/20001/scripts/slave/goma_util... File scripts/slave/goma_utils.py (right): https://codereview.chromium.org/2302453004/diff/20001/scripts/slave/goma_util... scripts/slave/goma_utils.py:124: metadata = { Since this runs with python subprocess.Popen (finally), it should be ok (I believe.)
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by shinyak@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
yyanagisawa-san, PTAL? If ok, I'd like to submit this.
lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by shinyak@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from tikuta@chromium.org, ukai@chromium.org Link to the patchset: https://codereview.chromium.org/2302453004/#ps80001 (title: "Use bool for clobber field")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Add buildbot metadata to compiler_proxy log We'd like to analyze compiler proxy log. However, buildbot metadata is missing, so sometimes hard to determine in which builder the compiler proxy log is generated. Append buildbot metadata to compiler_proxy log like ninja log. ========== to ========== Add buildbot metadata to compiler_proxy log We'd like to analyze compiler proxy log. However, buildbot metadata is missing, so sometimes hard to determine in which builder the compiler proxy log is generated. Append buildbot metadata to compiler_proxy log like ninja log. Committed: https://chromium.googlesource.com/chromium/tools/build/+/3d1cf68904cab7a23836... ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/tools/build/+/3d1cf68904cab7a23836...
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2318493002/ by shinyak@chromium.org. The reason for reverting is: gsutil.py -h shows help. https://uberchromegw.corp.google.com/i/tryserver.chromium.linux/builders/linu.... |
