Skip to contentSkip to conversation

teuthology and code coverage revisited

DISCUSSION Loic Dachary 2 participants 3 messages Mar 4, 2013 – Mar 5, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

The "ceph code coverage" ( http://dachary.org/?p=1788 ) guide to collecting code coverage using teuthology was updated to take into account the fact that teuthology now uses packages ( the install: task ). But it is still incomplete because I'm not sure how to collect the coverage data.

For test purposes I used the simplest yaml file:

check-locks: false
roles:
- - mon.a
- mon.c
- osd.0
- - mon.b
- osd.1
tasks:
- install:
- ceph:
branch: master
coverage: true
flavor: gcov
fs: xfs

and it completes successfully. The method I learnt to collect code coverage back in january relied on a ceph-sha1 file being created in the --archive but it's no longer there. Reading

https://github.com/ceph/teuthology/commit/2653b5a07b880c202800c939efcd1ccaaf254841#L0R72

prompted me to try to add coverage: true :

check-locks: false
roles:
- - mon.a
- mon.c
- osd.0
- - mon.b
- osd.1
tasks:
- install:
coverage: true
- ceph:
branch: master
coverage: true
flavor: gcov
fs: xfs

but it fails with

CommandFailedError: Command failed on 10.20.0.7 with status 1: 'rmdir -- /tmp/cephtest/ubuntu@teuthology-2013-03-04_21-03-19' DEBUG:teuthology.run_tasks:Exception was not quenched, exiting: Exception: failed to fetch package version from http://gitbuilder.ceph.com/ceph-deb-quantal-x86_64-gcov/ref/master/version
INFO:teuthology.run:Summary data:

I would very much appreciate a hint.

Cheers

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#1 lore raw
Quoted 3 lines · Loic Dachary

CommandFailedError: Command failed on 10.20.0.7 with status 1: 'rmdir -- /tmp/cephtest/ubuntu@teuthology-2013-03-04_21-03-19' DEBUG:teuthology.run_tasks:Exception was not quenched, exiting: Exception: failed to fetch package version from http://gitbuilder.ceph.com/ceph-deb-quantal-x86_64-gcov/ref/master/version
INFO:teuthology.run:Summary data:

There's only one gitbuilder that is configured --enable-coverage, and that one is for precise, hence the error fetching a gcov package for quantal. You can see them all at: http://ceph.com/gitbuilder.cgi

Josh

#2 lore raw
Quoted 8 lines · Josh Durgin
Quoted 3 lines · Loic Dachary

CommandFailedError: Command failed on 10.20.0.7 with status 1: 'rmdir -- /tmp/cephtest/ubuntu@teuthology-2013-03-04_21-03-19' DEBUG:teuthology.run_tasks:Exception was not quenched, exiting: Exception: failed to fetch package version from http://gitbuilder.ceph.com/ceph-deb-quantal-x86_64-gcov/ref/master/version
INFO:teuthology.run:Summary data:

There's only one gitbuilder that is configured --enable-coverage, and that one is for precise, hence the error fetching a gcov package for quantal. You can see them all at: http://ceph.com/gitbuilder.cgi

Hi Josh,

Thanks for clarifying this. I'll re-build the targets with precise.

Cheers

Quoted 6 lines

Josh

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre