Bug 878556 - Review Request: rubygem-simplecov - Code coverage analysis tool for Ruby 1.9
Summary: Review Request: rubygem-simplecov - Code coverage analysis tool for Ruby 1.9
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 878515
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-20 16:55 UTC by Troy Dawson
Modified: 2013-11-04 12:44 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-12-12 00:29:51 UTC
Type: ---
Embargoed:
msuchy: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Troy Dawson 2012-11-20 16:55:38 UTC
Spec URL: http://tdawson.fedorapeople.org/rubygems/rubygem-simplecov.spec
SRPM URL: http://tdawson.fedorapeople.org/rubygems/rubygem-simplecov-0.7.1-1.fc18.src.rpm
Description: Code coverage for Ruby 1.9 with a powerful configuration library and automatic merging of coverage across test suites
Fedora Account System Username: tdawson

RPMLINT OUTPUT:
$ rpmlint rubygem-simplecov.spec rubygem-simplecov-0.7.1-1.fc18.src.rpm rubygem-simplecov-0.7.1-1.fc18.noarch.rpm rubygem-simplecov-doc-0.7.1-1.fc18.noarch.rpm
3 packages and 1 specfiles checked; 0 errors, 0 warnings.

Comment 1 Miroslav Suchý 2012-11-28 17:57:32 UTC
Can you please explain?:
  # Not doing tests, missing config file

Requires should be (to comply with ~> operator):

Requires:      rubygem(multi_json) => 1.0
Requires:      rubygem(multi_json) < 2.0
Requires:      rubygem(simplecov-html) => %{version}
Requires:      rubygem(simplecov-html) < 0.8

Comment 2 Troy Dawson 2012-11-28 23:47:53 UTC
I originally was intending to to the tests and made sure all the dependencies were there so the tests would run.  But I couldn't ever get it to build in the mock areas or with a regular rpm -ba  It would always fail on the tests with
  No SimpleCov config file found!

  I then tried on a regular Fedora 18, installing using just gems, and still couldn't get the test to run without the error

I guess if I just removed all references to the tests, that would be cleaner.

Comment 3 Miroslav Suchý 2012-11-29 09:23:54 UTC
According the code, it is expecting file "simplecov_config". Please contact upstream what should be in that file. And either create it yourself and add it as Source1 or ask upstream to include it in gem.

If tests are provided with gem, they should be run. And I would say this is blocker for this review.

Comment 4 Troy Dawson 2012-11-29 21:50:38 UTC
Spec URL: http://tdawson.fedorapeople.org/rubygems/rubygem-simplecov.spec
SRPM URL: http://tdawson.fedorapeople.org/rubygems/rubygem-simplecov-0.7.1-1.fc18.src.rpm

Turns out I was just running the tests in the wrong directory and they can be run without the configuration file.

Of course, now this depends on a package still under review, rubygem-appraisal.
https://bugzilla.redhat.com/show_bug.cgi?id=878500

Comment 5 Miroslav Suchý 2012-11-30 08:35:32 UTC
>%check
>cd %{buildroot}%{gem_instdir}
>testrb2 -Ilib test

It is prefered to do:
%check
pushd .%{gem_instdir}
testrb2 -Ilib test
popd

Because if that test accidentally change something in files which will land in package, then if you are running the test in %{buildroot}%{gem_instdir}, this change will land in package as will. But if you run it in .%{gem_instdir}, then such accidential change will be isolated. This is behavior "just-in-case".

It is very good habbit to bump up release number for every change of spec.... Ah, you put here wrong link. Ok I deducted:
http://tdawson.fedorapeople.org/rubygems/rubygem-simplecov-0.7.1-2.fc18.src.rpm

Again:
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
# gem install compiles any C extensions and installs into a directory
does not have sense here.

Please fix that directory in %check again, and that will be all.

Comment 6 Vít Ondruch 2012-11-30 15:26:59 UTC
(In reply to comment #4)
> Of course, now this depends on a package rubygem-appraisal.

Are you sure? I would agree if you are using Rake to execute the test suite, but you aren't.

I did not tried, just asking, because I did similar experience with rubygem-audited.

Comment 7 Troy Dawson 2012-11-30 16:49:08 UTC
Spec URL: http://tdawson.fedorapeople.org/rubygems/rubygem-simplecov.spec
SRPM URL: http://tdawson.fedorapeople.org/rubygems/rubygem-simplecov-0.7.1-4.fc18.src.rpm

Vit, you are correct.  I did a scratch build without rubygem-appraisal and it passed it's tests.

Removed rubygem-appraisal dependancy
Removed unneeded C extensions stuff from spec
Use pushd and popd in %check section

Comment 8 Miroslav Suchý 2012-12-03 15:55:36 UTC
Looks much better. But what about license? It seems to me that upstream is using MIT, while you claim GPL or Ruby.

Comment 9 Troy Dawson 2012-12-03 16:09:22 UTC
Spec URL: http://tdawson.fedorapeople.org/rubygems/rubygem-simplecov.spec
SRPM URL: http://tdawson.fedorapeople.org/rubygems/rubygem-simplecov-0.7.1-5.fc18.src.rpm

Good catch.  Since the rubygems.org page didn't have it listed, I left it at the default until I was able to look at the file.  Then it left my mind and I forgot.  I have fixed the License to now say MIT.

Comment 10 Miroslav Suchý 2012-12-03 18:03:04 UTC
I see no other problem, so:
APPROVED.

Comment 11 Troy Dawson 2012-12-03 19:22:23 UTC
New Package SCM Request
=======================
Package Name: rubygem-simplecov
Short Description: Code coverage analysis tool for Ruby 1.9
Owners: tdawson
Branches: f18 f17
InitialCC:

Comment 12 Gwyn Ciesla 2012-12-03 19:28:08 UTC
Git done (by process-git-requests).

Comment 13 Fedora Update System 2012-12-03 20:51:49 UTC
rubygem-simplecov-0.7.1-5.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/rubygem-simplecov-0.7.1-5.fc18

Comment 14 Fedora Update System 2012-12-04 21:15:24 UTC
rubygem-simplecov-0.7.1-5.fc18 has been pushed to the Fedora 18 testing repository.

Comment 15 Fedora Update System 2012-12-12 00:29:53 UTC
rubygem-simplecov-0.7.1-5.fc18 has been pushed to the Fedora 18 stable repository.

Comment 16 Jan Klepek 2013-11-03 18:55:05 UTC
New Package SCM Request
=======================
Package Name: rubygem-simplecov
Short Description: Code coverage analysis tool for Ruby 1.9
Owners: hpejakle
Branches: el5 el6
InitialCC: tdawson

Comment 17 Miroslav Suchý 2013-11-04 08:38:49 UTC
You can not request additional branches using new package request. You have to use "change request". See:
http://fedoraproject.org/wiki/Package_SCM_admin_requests#Package_Change_Requests_for_existing_packages

Comment 18 Jan Klepek 2013-11-04 08:53:54 UTC
Package SCM Request
=======================
Package Name: rubygem-simplecov
Short Description: Code coverage analysis tool for Ruby 1.9
Owners: hpejakle
Branches: el5 el6
InitialCC: tdawson

Comment 19 Jan Klepek 2013-11-04 09:02:55 UTC
Package Change Request
======================
Package Name: rubygem-simplecov
Short Description: Code coverage analysis tool for Ruby 1.9
Owners: hpejakle
Branches: el5 el6
InitialCC: tdawson

Comment 20 Gwyn Ciesla 2013-11-04 12:44:03 UTC
Git done (by process-git-requests).

Correctly formatted branches.


Note You need to log in before you can comment on or make changes to this bug.