|
|
Created:
6 years, 3 months ago by Zhenyao Mo Modified:
6 years, 3 months ago CC:
chromium-reviews, Ken Russell (switch to Gerrit), telemetry+watch_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Project:
chromium Visibility:
Public. |
DescriptionMakes sure telemetry test result report is one string (no interruption)
Otherwise there could be logging inserted between [ OK ] and the test name,
and the harness will fail to recognize the test is passing, raising false alarm.
BUG=409968
TEST=telemetry tests
R=bajones@chromium.org,tonyg@chromium.org
NOTRY=true
Committed: https://crrev.com/95aa6b1a1548d7dd670399e3b7c8aaa2904c47a2
Cr-Commit-Position: refs/heads/master@{#293031}
Patch Set 1 #
Total comments: 2
Patch Set 2 : #Patch Set 3 : add comments #Messages
Total messages: 22 (5 generated)
Please review.
kbr@chromium.org changed reviewers: + kbr@chromium.org
LGTM Let's please get this in ASAP so we can continue to keep the logging turned on.
lgtm
kbr@chromium.org changed reviewers: + chrishenry@google.com, ernstm@chromium.org, nednguyen@google.com
+more OWNERS. OWNERS review please, ASAP appreciated.
https://codereview.chromium.org/530143002/diff/1/tools/telemetry/telemetry/re... File tools/telemetry/telemetry/results/gtest_progress_reporter.py (right): https://codereview.chromium.org/530143002/diff/1/tools/telemetry/telemetry/re... tools/telemetry/telemetry/results/gtest_progress_reporter.py:41: print >> self._output_stream, '[ RUN ]%s' % ( Can you run the unittest? I'm pretty sure there used to be a space between ] and page display name, similarly for everything below. ./tools/telemetry/run_tests gtest_progress_reporter
Revised. Thanks for catching the difference. Please take another look. https://codereview.chromium.org/530143002/diff/1/tools/telemetry/telemetry/re... File tools/telemetry/telemetry/results/gtest_progress_reporter.py (right): https://codereview.chromium.org/530143002/diff/1/tools/telemetry/telemetry/re... tools/telemetry/telemetry/results/gtest_progress_reporter.py:41: print >> self._output_stream, '[ RUN ]%s' % ( On 2014/09/02 20:44:14, chrishenry wrote: > Can you run the unittest? I'm pretty sure there used to be a space between ] and > page display name, similarly for everything below. > > ./tools/telemetry/run_tests gtest_progress_reporter Done.
lgtm Nice find! Feel free to land as-is, but it I can't help but notice this is a little brittle. Any ideas for stopping the next refactor from breaking this again? Is there a way to unittest? Or should we, at minimum, leave a comment?
On 2014/09/02 21:21:15, tonyg wrote: > lgtm > > Nice find! Feel free to land as-is, but it I can't help but notice this is a > little brittle. Any ideas for stopping the next refactor from breaking this > again? Is there a way to unittest? Or should we, at minimum, leave a comment? I'll add comments to all these print places for now. Thanks.
lgtm
The CQ bit was checked by zmo@chromium.org
On 2014/09/02 21:27:40, chrishenry wrote: > lgtm Also maybe change print >> self._stdout, ...., ... to self._stdout.write(...). I think the real bug here is python print is not thread safe. I wonder whether this fix is enough though.
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zmo@chromium.org/530143002/40001
On 2014/09/02 21:37:52, nednguyen wrote: > On 2014/09/02 21:27:40, chrishenry wrote: > > lgtm > > Also maybe change print >> self._stdout, ...., ... to self._stdout.write(...). > > I think the real bug here is python print is not thread safe. I wonder whether > this fix is enough though. Even if it's not enough, it should minimize the failures we see on GPU bots. Of course, for the long run, we should make test results reporting and processing really robust.
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_comp...)
The CQ bit was unchecked by commit-bot@chromium.org
Failed to commit the patch.
The CQ bit was checked by zmo@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zmo@chromium.org/530143002/40001
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 0594171194e2544b4670d672734de3cae9ab270d
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/95aa6b1a1548d7dd670399e3b7c8aaa2904c47a2 Cr-Commit-Position: refs/heads/master@{#293031} |