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

Issue 1808663002: [Coverage] Add coverage-data-split feature. (Closed)

Created:
4 years, 9 months ago by Michael Achenbach
Modified:
4 years, 9 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Coverage] Add coverage-data-split feature. This will allow to only load json data for the files under review instead of the whole data set. This will be called on the infra-side after all coverage data has been merged. Also fix a bunch of log lines. BUG=chromium:568949 LOG=n NOTRY=true Committed: https://crrev.com/c44b02ba0f567fb4cb89a0a5c91584031c6a323d Cr-Commit-Position: refs/heads/master@{#34834}

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -12 lines) Patch
M tools/sanitizers/sancov_formatter.py View 7 chunks +61 lines, -12 lines 10 comments Download

Messages

Total messages: 19 (6 generated)
Michael Achenbach
PTAL
4 years, 9 months ago (2016-03-16 11:04:46 UTC) #4
Michael Hablich
https://codereview.chromium.org/1808663002/diff/1/tools/sanitizers/sancov_formatter.py File tools/sanitizers/sancov_formatter.py (right): https://codereview.chromium.org/1808663002/diff/1/tools/sanitizers/sancov_formatter.py#newcode395 tools/sanitizers/sancov_formatter.py:395: new_data = dict(data) I thought you only want the ...
4 years, 9 months ago (2016-03-16 13:39:12 UTC) #5
Michael Achenbach
Answers https://codereview.chromium.org/1808663002/diff/1/tools/sanitizers/sancov_formatter.py File tools/sanitizers/sancov_formatter.py (right): https://codereview.chromium.org/1808663002/diff/1/tools/sanitizers/sancov_formatter.py#newcode395 tools/sanitizers/sancov_formatter.py:395: new_data = dict(data) On 2016/03/16 13:39:12, Hablich wrote: ...
4 years, 9 months ago (2016-03-16 14:13:32 UTC) #6
tandrii(chromium)
LGTM % assuming I really did miss something. https://codereview.chromium.org/1808663002/diff/1/tools/sanitizers/sancov_formatter.py File tools/sanitizers/sancov_formatter.py (right): https://codereview.chromium.org/1808663002/diff/1/tools/sanitizers/sancov_formatter.py#newcode386 tools/sanitizers/sancov_formatter.py:386: file_path ...
4 years, 9 months ago (2016-03-16 16:31:31 UTC) #7
Michael Achenbach
https://codereview.chromium.org/1808663002/diff/1/tools/sanitizers/sancov_formatter.py File tools/sanitizers/sancov_formatter.py (right): https://codereview.chromium.org/1808663002/diff/1/tools/sanitizers/sancov_formatter.py#newcode386 tools/sanitizers/sancov_formatter.py:386: file_path = os.path.join(options.output_dir, file_name + '.json') On 2016/03/16 16:31:31, ...
4 years, 9 months ago (2016-03-16 17:34:00 UTC) #8
tandrii(chromium)
lgtm https://codereview.chromium.org/1808663002/diff/1/tools/sanitizers/sancov_formatter.py File tools/sanitizers/sancov_formatter.py (right): https://codereview.chromium.org/1808663002/diff/1/tools/sanitizers/sancov_formatter.py#newcode386 tools/sanitizers/sancov_formatter.py:386: file_path = os.path.join(options.output_dir, file_name + '.json') On 2016/03/16 ...
4 years, 9 months ago (2016-03-16 17:49:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1808663002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1808663002/1
4 years, 9 months ago (2016-03-16 18:09:27 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-16 18:11:09 UTC) #13
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/c44b02ba0f567fb4cb89a0a5c91584031c6a323d Cr-Commit-Position: refs/heads/master@{#34834}
4 years, 9 months ago (2016-03-16 18:12:08 UTC) #15
Michael Hablich
https://codereview.chromium.org/1808663002/diff/1/tools/sanitizers/sancov_formatter.py File tools/sanitizers/sancov_formatter.py (right): https://codereview.chromium.org/1808663002/diff/1/tools/sanitizers/sancov_formatter.py#newcode395 tools/sanitizers/sancov_formatter.py:395: new_data = dict(data) On 2016/03/16 14:13:32, Michael Achenbach wrote: ...
4 years, 9 months ago (2016-03-17 08:16:47 UTC) #16
Michael Achenbach
https://codereview.chromium.org/1808663002/diff/1/tools/sanitizers/sancov_formatter.py File tools/sanitizers/sancov_formatter.py (right): https://codereview.chromium.org/1808663002/diff/1/tools/sanitizers/sancov_formatter.py#newcode398 tools/sanitizers/sancov_formatter.py:398: new_data['files'] = {file_name: coverage} On 2016/03/17 08:16:47, Hablich wrote: ...
4 years, 9 months ago (2016-03-17 08:34:55 UTC) #17
kjellander_chromium
nice work. lgtm What about a unit test? Also: are you not worried there will ...
4 years, 9 months ago (2016-03-18 05:04:13 UTC) #18
Michael Achenbach
4 years, 9 months ago (2016-03-18 07:34:09 UTC) #19
Message was sent while issue was closed.
On 2016/03/18 05:04:13, kjellander (chromium) wrote:
> nice work. lgtm
> 
> What about a unit test?

Hmja, can split the method into the testable part and the part that needs to
much mocking/harness. Don't want to bother with fileio in testing.

> 
> Also: are you not worried there will be tons of files stored on GS? Or that's
> not an issue, not even over time?

It's ~1MB coverage data per patchset compared to a few 100MB going to the
isolate server. And I don't wan't to think about how much we're uploading to GS
on our CI. E.g.
https://build.chromium.org/p/client.v8/builders/V8%20Linux%20-%20debug%20buil...

Also, the many split files are in total roughly the same size compared to the
full file. But we're saving a lot of traffic for every view of those files on
rietveld as only the file under review will be fetched.

Powered by Google App Engine
This is Rietveld 408576698