|
|
Created:
5 years ago by halliwell Modified:
5 years ago CC:
asvitkine+watch_chromium.org, chromium-reviews, gunsch+watch_chromium.org, halliwell+watch_chromium.org, lcwu+watch_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Description[Chromecast] Allow media metrics events with no session ID set
If a session ID is not set, we hit an assert sometimes in browser tests:
FATAL:hash_util.cc(78)] Check failed: hex.size() == 32u (0vs. 32)
#2 0x00000450354e cast::HashGUID64()
#3 0x000004503895 cast::HashSessionId64()
#4 0x0000044960d1 chromecast::CastEventBuilderImpl::SetSessionId()
#5 0x000004496530 chromecast::MetricsRecorderImpl::RecordSimpleAction()
Set a default session ID to prevent this from being reached.
BUG=
Committed: https://crrev.com/ba0fc7ff60bec8b1461c997dcb206f5c6c3249ce
Cr-Commit-Position: refs/heads/master@{#362421}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Default session ID #Messages
Total messages: 20 (8 generated)
Description was changed from ========== [Chromecast] Allow media metrics events with no app running In trying to get browser tests off the ground against internal code, I hit this crash: FATAL:hash_util.cc(78)] Check failed: hex.size() == 32u (0vs. 32) ... Longer-term, this might be a bit of a losing battle, and perhaps the test code should run everything as an app, but given this is the only blocker right now, seems simpler to fix this. BUG= ========== to ========== [Chromecast] Allow media metrics events with no app running In trying to get browser tests off the ground against internal code, I hit this crash: FATAL:hash_util.cc(78)] Check failed: hex.size() == 32u (0vs. 32) #2 0x00000450354e cast::HashGUID64() #3 0x000004503895 cast::HashSessionId64() #4 0x0000044960d1 chromecast::CastEventBuilderImpl::SetSessionId() #5 0x000004496530 chromecast::MetricsRecorderImpl::RecordSimpleAction() Longer-term, this might be a bit of a losing battle, and perhaps the test code should run everything as an app, but given this is the only blocker right now, seems simpler to fix this. BUG= ==========
halliwell@chromium.org changed reviewers: + mbjorge@chromium.org, slan@chromium.org
https://codereview.chromium.org/1477483003/diff/1/chromecast/base/metrics/cas... File chromecast/base/metrics/cast_metrics_helper.cc (right): https://codereview.chromium.org/1477483003/diff/1/chromecast/base/metrics/cas... chromecast/base/metrics/cast_metrics_helper.cc:131: if (app_id_.empty()) Did you consider setting a testing value for app_id_? That way we can follow this codepath all the way down in our tests.
On 2015/11/25 01:22:25, slan wrote: > https://codereview.chromium.org/1477483003/diff/1/chromecast/base/metrics/cas... > File chromecast/base/metrics/cast_metrics_helper.cc (right): > > https://codereview.chromium.org/1477483003/diff/1/chromecast/base/metrics/cas... > chromecast/base/metrics/cast_metrics_helper.cc:131: if (app_id_.empty()) > Did you consider setting a testing value for app_id_? That way we can follow > this codepath all the way down in our tests. I don't know much about this code tbh, mbjorge might be better placed to answer? I went with this approach because other functions in the class are checking app_id_. Also, it's the session_id_ that causes the assertion.
Alternative option, could we give session_id_ a default value upon construction? e.g. '0x0000-0000-0000-0000-0000-0000-0000-00'?
On 2015/11/25 21:42:41, mbjorge wrote: > Alternative option, could we give session_id_ a default value upon construction? > e.g. '0x0000-0000-0000-0000-0000-0000-0000-00'? Ok, set a default session_id and reverted my app_id checks. This fixes the problem in the test equally well.
Description was changed from ========== [Chromecast] Allow media metrics events with no app running In trying to get browser tests off the ground against internal code, I hit this crash: FATAL:hash_util.cc(78)] Check failed: hex.size() == 32u (0vs. 32) #2 0x00000450354e cast::HashGUID64() #3 0x000004503895 cast::HashSessionId64() #4 0x0000044960d1 chromecast::CastEventBuilderImpl::SetSessionId() #5 0x000004496530 chromecast::MetricsRecorderImpl::RecordSimpleAction() Longer-term, this might be a bit of a losing battle, and perhaps the test code should run everything as an app, but given this is the only blocker right now, seems simpler to fix this. BUG= ========== to ========== [Chromecast] Allow media metrics events with no session ID set If a session ID is not set, we hit an assert sometimes in browser tests: FATAL:hash_util.cc(78)] Check failed: hex.size() == 32u (0vs. 32) #2 0x00000450354e cast::HashGUID64() #3 0x000004503895 cast::HashSessionId64() #4 0x0000044960d1 chromecast::CastEventBuilderImpl::SetSessionId() #5 0x000004496530 chromecast::MetricsRecorderImpl::RecordSimpleAction() Set a default session ID to prevent this from being reached. BUG= ==========
lgtm
The CQ bit was checked by halliwell@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1477483003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1477483003/20001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) ios_rel_device_ninja on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL)
lgtm
The CQ bit was checked by halliwell@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1477483003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1477483003/20001
Message was sent while issue was closed.
Description was changed from ========== [Chromecast] Allow media metrics events with no session ID set If a session ID is not set, we hit an assert sometimes in browser tests: FATAL:hash_util.cc(78)] Check failed: hex.size() == 32u (0vs. 32) #2 0x00000450354e cast::HashGUID64() #3 0x000004503895 cast::HashSessionId64() #4 0x0000044960d1 chromecast::CastEventBuilderImpl::SetSessionId() #5 0x000004496530 chromecast::MetricsRecorderImpl::RecordSimpleAction() Set a default session ID to prevent this from being reached. BUG= ========== to ========== [Chromecast] Allow media metrics events with no session ID set If a session ID is not set, we hit an assert sometimes in browser tests: FATAL:hash_util.cc(78)] Check failed: hex.size() == 32u (0vs. 32) #2 0x00000450354e cast::HashGUID64() #3 0x000004503895 cast::HashSessionId64() #4 0x0000044960d1 chromecast::CastEventBuilderImpl::SetSessionId() #5 0x000004496530 chromecast::MetricsRecorderImpl::RecordSimpleAction() Set a default session ID to prevent this from being reached. BUG= ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== [Chromecast] Allow media metrics events with no session ID set If a session ID is not set, we hit an assert sometimes in browser tests: FATAL:hash_util.cc(78)] Check failed: hex.size() == 32u (0vs. 32) #2 0x00000450354e cast::HashGUID64() #3 0x000004503895 cast::HashSessionId64() #4 0x0000044960d1 chromecast::CastEventBuilderImpl::SetSessionId() #5 0x000004496530 chromecast::MetricsRecorderImpl::RecordSimpleAction() Set a default session ID to prevent this from being reached. BUG= ========== to ========== [Chromecast] Allow media metrics events with no session ID set If a session ID is not set, we hit an assert sometimes in browser tests: FATAL:hash_util.cc(78)] Check failed: hex.size() == 32u (0vs. 32) #2 0x00000450354e cast::HashGUID64() #3 0x000004503895 cast::HashSessionId64() #4 0x0000044960d1 chromecast::CastEventBuilderImpl::SetSessionId() #5 0x000004496530 chromecast::MetricsRecorderImpl::RecordSimpleAction() Set a default session ID to prevent this from being reached. BUG= Committed: https://crrev.com/ba0fc7ff60bec8b1461c997dcb206f5c6c3249ce Cr-Commit-Position: refs/heads/master@{#362421} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/ba0fc7ff60bec8b1461c997dcb206f5c6c3249ce Cr-Commit-Position: refs/heads/master@{#362421} |