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)

x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Q3 11 - Serrano

People

(Reporter: dschaffe, Assigned: dschaffe)

Details

(Whiteboard: code-coverage)

Attachments

(4 files, 3 obsolete files)

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
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)
Whiteboard: code-coverage
Attachment #465776 - Attachment mime type: text/x-python-script → text/plain
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)
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 on attachment 467762 [details] [diff] [review] combine platform coverage data Patch pushed as 5104:4c87f9f1ef87
Assignee: nobody → dschaffe
Status: NEW → ASSIGNED
Flags: flashplayer-triage+
Attached patch post coverage data to server (obsolete) — Splinter Review
- 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)
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)
Attachment #469095 - Flags: review?(dschaffe) → review+
(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'
Attachment #465776 - Attachment is obsolete: true
Attachment #469178 - Flags: review?(brbaker)
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 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+
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)
Attachment #469467 - Flags: review?(brbaker) → review+
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 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+
pushed patches in: 5117:7a9bbfa644e1 5121:629c2b540011 remaining work for this bug is to generate and publish the html detail report
Target Milestone: --- → flash10.1.x-Salt
Target Milestone: flash10.1.x-Salt → flash10.2.x-Spicy
Target Milestone: flash10.2.x-Spicy → flash10.x - Serrano
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.

Attachment

General

Creator:
Created:
Updated:
Size: