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

Issue 2845973004: Dump empty json to output when no shard json file is given. (Closed)

Created:
3 years, 7 months ago by BigBossZhiling
Modified:
3 years, 7 months ago
Reviewers:
jbudorick
CC:
chromium-reviews, mikecase+watch_chromium.org, jbudorick+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Dump empty json to output when no shard json file is given. Previously when test results presentation does not receive any json input file, the script will raise a parser error. This is confusing to developer, because they may mistake the parser error in this script as the cause of the crash, instead of the reason why no json input file is given at the first place. In this cl, test results presentation will not raise error anymore when no json file is given. BUG=715972 Review-Url: https://codereview.chromium.org/2845973004 Cr-Commit-Position: refs/heads/master@{#467834} Committed: https://chromium.googlesource.com/chromium/src/+/043d55636176cf1c5f9b0ff29c9c853bb538dbd5

Patch Set 1 #

Patch Set 2 : simplify the writing part #

Total comments: 4

Patch Set 3 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -6 lines) Patch
M build/android/pylib/results/presentation/test_results_presentation.py View 1 2 2 chunks +12 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
BigBossZhiling
3 years, 7 months ago (2017-04-27 18:33:39 UTC) #2
jbudorick
https://codereview.chromium.org/2845973004/diff/20001/build/android/pylib/results/presentation/test_results_presentation.py File build/android/pylib/results/presentation/test_results_presentation.py (right): https://codereview.chromium.org/2845973004/diff/20001/build/android/pylib/results/presentation/test_results_presentation.py#newcode359 build/android/pylib/results/presentation/test_results_presentation.py:359: if args.json_file: Given that you're handling the two cases ...
3 years, 7 months ago (2017-04-27 18:40:37 UTC) #3
BigBossZhiling
https://codereview.chromium.org/2845973004/diff/20001/build/android/pylib/results/presentation/test_results_presentation.py File build/android/pylib/results/presentation/test_results_presentation.py (right): https://codereview.chromium.org/2845973004/diff/20001/build/android/pylib/results/presentation/test_results_presentation.py#newcode359 build/android/pylib/results/presentation/test_results_presentation.py:359: if args.json_file: On 2017/04/27 18:40:37, jbudorick wrote: > Given ...
3 years, 7 months ago (2017-04-27 20:41:49 UTC) #4
BigBossZhiling
https://codereview.chromium.org/2845973004/diff/20001/build/android/pylib/results/presentation/test_results_presentation.py File build/android/pylib/results/presentation/test_results_presentation.py (right): https://codereview.chromium.org/2845973004/diff/20001/build/android/pylib/results/presentation/test_results_presentation.py#newcode359 build/android/pylib/results/presentation/test_results_presentation.py:359: if args.json_file: On 2017/04/27 18:40:37, jbudorick wrote: > Given ...
3 years, 7 months ago (2017-04-27 20:41:49 UTC) #5
jbudorick
lgtm
3 years, 7 months ago (2017-04-27 21:57:31 UTC) #6
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/2845973004/40001
3 years, 7 months ago (2017-04-27 22:29:44 UTC) #8
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 02:08:23 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/043d55636176cf1c5f9b0ff29c9c...

Powered by Google App Engine
This is Rietveld 408576698