Closed Bug 1374663 Opened 7 years ago Closed 7 years ago

Update GRCOV in tooltool and change how it is used to process code coverage data in linux64-ccov.

Categories

(Testing :: Code Coverage, defect)

defect
Not set
normal

Tracking

(firefox56 fixed)

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: sparky, Assigned: sparky)

References

Details

Attachments

(1 file)

This bug is for updating the GRCOV version that is on tooltool and changing how grcov is called for code coverage processing in the codecoverage.py file for linux64-ccov.
I've uploaded the new grcov version.
I've uploaded a new one (v0.1.12) that also fixes https://github.com/marco-c/grcov/issues/32.
Greg, it was hard, but I think I managed to find what was the problem with https://hg.mozilla.org/try/rev/e2a2b9cb8686f9f9b806b63a630300e021f72581. Look at the `-p` argument before and after: - grcov_command = [os.path.join(self.grcov_dir, 'grcov'), '-t', 'lcov' , '-p', \ - '/home/worker/workspace/build/src/', '-z', \ - os.path.join(self.grcov_dir, 'target.code-coverage-gcno.zip'), file_path_gcda] + grcov_command = [os.path.join(self.grcov_dir, 'grcov'), \ + os.path.join(self.grcov_dir, 'target.code-coverage-gcno.zip'), self.gcov_dir, \ + '-t', 'lcov' , '-p', 'home/worker/workspace/build/src/', '--keep-global-includes'] In the second case, there's a "/" missing at the beginning, which makes it a relative path instead of an absolute one :) (I think you can also re-remove "--keep-global-includes" now)
Thanks for catching that Marco! Sorry for the trouble.
Comment on attachment 8882681 [details] Bug 1374663 - Update used GRCOV version and change its usage. https://reviewboard.mozilla.org/r/153752/#review158934 ::: commit-message-217b7:1 (Diff revision 1) > +Bug 1374663 - Update used GRCOV version and change it's usage. r?marco Typo "its" instead of "it's" ::: testing/mozharness/mozharness/mozilla/testing/codecoverage.py:135 (Diff revision 1) > self.download_file(self.url_to_gcno, file_name=None, parent_dir=self.grcov_dir) > > # Run grcov on the zipped .gcno and .gcda files. > - grcov_command = [os.path.join(self.grcov_dir, 'grcov'), '-t', 'lcov' , '-p', \ > - '/home/worker/workspace/build/src/', '-z', \ > - os.path.join(self.grcov_dir, 'target.code-coverage-gcno.zip'), file_path_gcda] > + grcov_command = [os.path.join(self.grcov_dir, 'grcov'), \ > + os.path.join(self.grcov_dir, 'target.code-coverage-gcno.zip'), file_path_gcda, \ > + '-t', 'lcov' , '-p', '/home/worker/workspace/build/src/'] Nit: if you keep the same order as before and only remove the `-z` parameter, there will be less changes.
Attachment #8882681 - Flags: review?(mcastelluccio) → review+
:marco, could you land this for us?
Flags: needinfo?(mcastelluccio)
Pushed by mcastelluccio@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/63be9b006e21 Update used GRCOV version and change its usage. r=marco
Flags: needinfo?(mcastelluccio)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Assignee: nobody → gmierz2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: