Closed
Bug 587115
Opened 15 years ago
Closed 15 years ago
add script to publish code coverage report to csv
Categories
(Tamarin Graveyard :: Build Config, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Q3 11 - Serrano
People
(Reporter: dschaffe, Assigned: dschaffe)
Details
(Whiteboard: code-coverage)
Attachments
(4 files, 3 obsolete files)
|
6.99 KB,
patch
|
dschaffe
:
review+
|
Details | Diff | Splinter Review |
|
10.00 KB,
patch
|
dschaffe
:
review+
|
Details | Diff | Splinter Review |
|
26.03 KB,
patch
|
brbaker
:
review+
|
Details | Diff | Splinter Review |
|
3.14 KB,
patch
|
brbaker
:
review+
|
Details | Diff | Splinter Review |
should add a script to the deep builders for code coverage to generate reports
we should focus on the uncovered functions by module
bullseye can output basic data with covfn --csv, we can process it in python to massage into a csv summary format a wiki chart and table can consume
| Assignee | ||
Comment 1•15 years ago
|
||
| Assignee | ||
Comment 2•15 years ago
|
||
currently the module is just the directory. we ignore pcre and zlib since they are 3rd party apis and we do not care about coverage of the api. modules are currently: mmgc, vmpi, core, eval, extensions, nanojit, shell, vprof, platform. we may want to consolidate some smaller modules for example consolidate (vmpi, platform, vprof, and extensions)
| Assignee | ||
Updated•15 years ago
|
Whiteboard: code-coverage
Updated•15 years ago
|
Attachment #465776 -
Attachment mime type: text/x-python-script → text/plain
Comment 3•15 years ago
|
||
After processing coverage file locally, attempt to download all known platform coverage data. If downloading all files succeeds, then this is the last builder generating data, and we can combine all data into a unified coverage report.
I am opening up a new bug (#589168) to get rid of these duplicated scripts.
Attachment #467762 -
Flags: review?(dschaffe)
| Assignee | ||
Comment 4•15 years ago
|
||
Comment on attachment 467762 [details] [diff] [review]
combine platform coverage data
patch looks good. little thing, comment typo: search for avaible
thinking of failure points, realistically one builder will always be slower but it may be possible theoretically for two builders to both find all 3 .cov files. I think this situation is not very likely and if 2 still run it should still work.
Attachment #467762 -
Flags: review?(dschaffe) → review+
Comment 5•15 years ago
|
||
Comment on attachment 467762 [details] [diff] [review]
combine platform coverage data
Patch pushed as 5104:4c87f9f1ef87
Updated•15 years ago
|
Assignee: nobody → dschaffe
Status: NEW → ASSIGNED
Flags: flashplayer-triage+
Comment 6•15 years ago
|
||
- remove the old *.cov files from the latest directory
- post each platform cov file, name the file based on platform and TR rev
- post combined coverage file, name file based on TR rev
Attachment #469052 -
Flags: review?(dschaffe)
Comment 7•15 years ago
|
||
fixes issue with combined coverage data file have a different relative path to the source from individual files. The generated coverage file needs to have the same relative depth to the source code.
Attachment #469052 -
Attachment is obsolete: true
Attachment #469095 -
Flags: review?(dschaffe)
Attachment #469052 -
Flags: review?(dschaffe)
| Assignee | ||
Updated•15 years ago
|
Attachment #469095 -
Flags: review?(dschaffe) → review+
Comment 8•15 years ago
|
||
(In reply to comment #7)
> Created attachment 469095 [details] [diff] [review]
> v2. post coverage data to server
>
There are 2 typos in the patch that I have fixed locally:
1) environment.sh -> scp_coverage should have ${scp_host} not ${scp_hos}
2) linux and windows coverage-process had a mistake in the echoed URL, dir should have been 'coverage' not 'coverge'
| Assignee | ||
Comment 9•15 years ago
|
||
Attachment #465776 -
Attachment is obsolete: true
Attachment #469178 -
Flags: review?(brbaker)
| Assignee | ||
Comment 10•15 years ago
|
||
issues:
- the patch needs to be called from the coverage-process.sh scripts (lin,mac,win)
- also I kept the check for 'repo' to strip out from the csv since on 5011 and 5010 I saw the 'repo' in the path when running covfn
Comment 11•15 years ago
|
||
Comment on attachment 469178 [details] [diff] [review]
patch adding util-parsecodecoverage.py
r+ with some minor requests
- include description for the '--incsvfile' option in the header with all of the other options
- should make a HUGE note that the cwd should be the root of the source tree in order for the
- if the datadir does not exist it should be created, currently script will produce an error
Attachment #469178 -
Flags: review?(brbaker) → review+
| Assignee | ||
Comment 12•15 years ago
|
||
minor updates to util-parsecodecoverage.py and hook into coverage-process.sh scripts to run parsecodecoverage script and upload results to server so wiki auto updates.
- duplicated same code to (windows|mac|linux)-deep/scripts/coverage-process.sh at end of files
- tested locally ok
Attachment #469178 -
Attachment is obsolete: true
Attachment #469467 -
Flags: review?(brbaker)
Updated•15 years ago
|
Attachment #469467 -
Flags: review?(brbaker) → review+
| Assignee | ||
Comment 13•15 years ago
|
||
minor improvements to util-parse-codecoverage.py. in codecoverage-summary.csv add the fn and bc overall coverage percent. limit the number of historical builds to save (set to 20).
Attachment #469545 -
Flags: review?(brbaker)
Comment 14•15 years ago
|
||
Comment on attachment 469545 [details] [diff] [review]
parse-codecoverage.py minor improvements
just remove type from line 320 (duplicated token=line.split())
Attachment #469545 -
Flags: review?(brbaker) → review+
| Assignee | ||
Comment 15•15 years ago
|
||
pushed patches in:
5117:7a9bbfa644e1
5121:629c2b540011
remaining work for this bug is to generate and publish the html detail report
Updated•15 years ago
|
Target Milestone: --- → flash10.1.x-Salt
Updated•15 years ago
|
Target Milestone: flash10.1.x-Salt → flash10.2.x-Spicy
Updated•15 years ago
|
Target Milestone: flash10.2.x-Spicy → flash10.x - Serrano
Comment 16•15 years ago
|
||
Marking fixed.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: flashplayer-qrb+
Flags: flashplayer-injection-
Flags: flashplayer-bug-
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•