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

Issue 1834773002: Add a JSON logging handler to the Kasko integration tests. (Closed)

Created:
4 years, 9 months ago by Sébastien Marchand
Modified:
4 years, 8 months ago
Reviewers:
chrisha
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a JSON logging handler to the Kasko integration tests. This produces this kind of log files: [ { "INFO": "integration_test.pyc:Started server on port 60390" }, { "INFO": "process.pyc:Starting chromedriver" }, { "INFO": "process.pyc:Starting chrome" }, { "INFO": "integration_test.pyc:Navigating to Kasko debug URL" }, { "INFO": "integration_test.pyc:Waiting for Kasko report" }, { "INFO": "kasko_integration_test.py:Test passed successfully!" } ] Committed: https://crrev.com/449a222fa5e282e8f28f28f3c6be0ac566d39761 Cr-Commit-Position: refs/heads/master@{#383757}

Patch Set 1 #

Patch Set 2 : add the executable bit. #

Total comments: 7

Patch Set 3 : Address Chris' comments. #

Patch Set 4 : Address Chris' comments. #

Total comments: 1

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -0 lines) Patch
M chrome/test/kasko/py/kasko/config.py View 3 chunks +7 lines, -0 lines 0 comments Download
A chrome/test/kasko/py/kasko/json_logging_handler.py View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
Sébastien Marchand
WDYT of this approach ?
4 years, 9 months ago (2016-03-24 20:01:09 UTC) #3
chrisha
https://codereview.chromium.org/1834773002/diff/40001/chrome/test/kasko/py/kasko/json_logging_handler.py File chrome/test/kasko/py/kasko/json_logging_handler.py (right): https://codereview.chromium.org/1834773002/diff/40001/chrome/test/kasko/py/kasko/json_logging_handler.py#newcode6 chrome/test/kasko/py/kasko/json_logging_handler.py:6: """Logging handler used to do the logging into a ...
4 years, 9 months ago (2016-03-24 21:04:29 UTC) #5
Sébastien Marchand
https://codereview.chromium.org/1834773002/diff/40001/chrome/test/kasko/py/kasko/json_logging_handler.py File chrome/test/kasko/py/kasko/json_logging_handler.py (right): https://codereview.chromium.org/1834773002/diff/40001/chrome/test/kasko/py/kasko/json_logging_handler.py#newcode6 chrome/test/kasko/py/kasko/json_logging_handler.py:6: """Logging handler used to do the logging into a ...
4 years, 8 months ago (2016-03-29 15:13:35 UTC) #6
chrisha
https://codereview.chromium.org/1834773002/diff/40001/chrome/test/kasko/py/kasko/json_logging_handler.py File chrome/test/kasko/py/kasko/json_logging_handler.py (right): https://codereview.chromium.org/1834773002/diff/40001/chrome/test/kasko/py/kasko/json_logging_handler.py#newcode22 chrome/test/kasko/py/kasko/json_logging_handler.py:22: json.dump([], f) On 2016/03/29 15:13:35, Sébastien Marchand wrote: > ...
4 years, 8 months ago (2016-03-29 15:25:13 UTC) #7
Sébastien Marchand
Dang, I should have spent more time reading this documentation. PTAnL
4 years, 8 months ago (2016-03-29 15:46:36 UTC) #8
chrisha
lgtm with a nit https://codereview.chromium.org/1834773002/diff/80001/chrome/test/kasko/py/kasko/json_logging_handler.py File chrome/test/kasko/py/kasko/json_logging_handler.py (right): https://codereview.chromium.org/1834773002/diff/80001/chrome/test/kasko/py/kasko/json_logging_handler.py#newcode25 chrome/test/kasko/py/kasko/json_logging_handler.py:25: f.write(json.dumps(self.log_messages_)) The documentation says also ...
4 years, 8 months ago (2016-03-29 15:50:28 UTC) #9
Sébastien Marchand
As I said, I should have read the documentation more carefully :)
4 years, 8 months ago (2016-03-29 15:54:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1834773002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1834773002/100001
4 years, 8 months ago (2016-03-29 15:54:28 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 8 months ago (2016-03-29 17:36:43 UTC) #15
commit-bot: I haz the power
4 years, 8 months ago (2016-03-29 17:37:58 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/449a222fa5e282e8f28f28f3c6be0ac566d39761
Cr-Commit-Position: refs/heads/master@{#383757}

Powered by Google App Engine
This is Rietveld 408576698