Bug 1268696 - Review Request: rubygem-guard-rspec - Guard gem for RSpec
Summary: Review Request: rubygem-guard-rspec - Guard gem for RSpec
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jaroslav Prokop
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1268695 1516328
Blocks: FE-DEADREVIEW
TreeView+ depends on / blocked
 
Reported: 2015-10-04 20:18 UTC by Ilia Gradina
Modified: 2019-08-12 12:11 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-07-28 21:56:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ilia Gradina 2015-10-04 20:18:48 UTC
Spec URL: https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-guard-rspec.spec
SRPM URL: https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-guard-rspec-4.6.4-1.fc24.src.rpm
Description: Guard::RSpec automatically run your specs (much like autotest).
Fedora Account System Username: ilgrad

Comment 1 Jaroslav Prokop 2017-12-02 19:42:26 UTC
Hi Ilya, I did an informal review on this package.

* Outdated version
  - You should make it up to date with upstream release and also update it to     
    more current fedora releases

* Group is not needed
  - Group tags are not needed currently, so you should delete lines:
~~~
Group: Development/Languages
~~~

~~~
Group: Documentation
~~~

In my opinion you could run the tests without -Ilib option.

Otherwise the package looks good.

Comment 2 Jaroslav Prokop 2017-12-02 19:51:30 UTC
I am sorry, I forgot one last thing

* Unnecessary dependency
  - The rubygem "launchy" does not seem like dependency to guard-rspec so 
    I would drop it from requires if possible.

Comment 3 Ilia Gradina 2017-12-05 19:57:16 UTC
Hi Jaroslav,
thx for the review.
rubygem(launchy) - needed for tests, also as rubygem(gem_isolator)(I'll try to send soon on review request).

results build on copr(with disable tests):
https://copr.fedorainfracloud.org/coprs/ilgrad/test_rubygems/build/684766/

new spec: https://raw.githubusercontent.com/ilgrad/fedora-packages/master/rubygems/rubygem-guard-rspec.spec
new srpm: https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-guard-rspec-4.7.3-1.fc27.src.rpm

Comment 4 Vít Ondruch 2017-12-11 16:43:07 UTC
BTW I got "warning: bogus date in %changelog: Tue Dec 05 2018 Ilya Gradina <ilya.gradina> - 4.7.3-1"

Comment 5 Vít Ondruch 2017-12-11 16:52:38 UTC
(In reply to Ilya Gradina from comment #3)
> also as rubygem(gem_isolator)(I'll try
> to send soon on review request).

I would not mind if you disabled the specific test case ATM:

~~~
# Requires rubygem(gem_isolator).
mv spec/acceptance/formatter_spec.rb{,.disabled}
~~~

But:

1) Of course having gem_isolator in Fedora is better
2) There are another 4 test failures due to "uninitialized constant Bundler" errors. It seems it would be better to disable these test cases, otherwise you will need to fight with all the other dependencies specified in Gemfiles. Not sure ...

Comment 6 Jaroslav Prokop 2018-02-11 10:34:59 UTC
Hi, I'll be taking this  for a review. Have you advanced with the package, Ilya?

Comment 7 Ilia Gradina 2018-02-11 10:45:25 UTC
(In reply to Jaroslav Prokop from comment #6)
> Hi, I'll be taking this  for a review. Have you advanced with the package,
> Ilya?
Thanks Jaroslav,

I'll send a new version of the package soon.

Comment 8 Ilia Gradina 2018-02-11 11:29:58 UTC
new spec: https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-guard-rspec.spec

new srpm: https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-guard-rspec-4.7.3-2.fc28.src.rpm

tests do not all pass.
Finished in 0.32727 seconds (files took 0.20452 seconds to load)
162 examples, 9 failures

I disabled tests with require gem_isolator, on the advice of Vit.

results tests:
https://paste.fedoraproject.org/paste/pvBj2aiPMZgBuK3IZRdpYA

Comment 9 Vít Ondruch 2018-02-12 09:30:54 UTC
Oh, you are applying the latest packaging techniques (unpacking the gem via %setup), very nice :)

However, the "rspec -Ilib spec ||:" is too hand-wavy. If the test suite fails entirely, you won't notice. I would rather see the tests disabled one by one or some explanation at minimum.

Why are the Guard::RSpecFormatter tests failing anyway? It seems the time is now formatted differently. Is it Ruby 2.5 thing? Or some incompatibility with latest RSpec? Isn't there patch available upstream already?

Comment 10 Ilia Gradina 2018-02-12 21:02:47 UTC
(In reply to Vít Ondruch from comment #9)
> Oh, you are applying the latest packaging techniques (unpacking the gem via
> %setup), very nice :)
> 
> However, the "rspec -Ilib spec ||:" is too hand-wavy. If the test suite
> fails entirely, you won't notice. I would rather see the tests disabled one
> by one or some explanation at minimum.
> 
> Why are the Guard::RSpecFormatter tests failing anyway? It seems the time is
> now formatted differently. Is it Ruby 2.5 thing? Or some incompatibility
> with latest RSpec? Isn't there patch available upstream already?

Hi Vit, thanks for the remarks.
I had two kinds of errors: Guard::RSpec::RSpecProcess, Guard::RSpecFormatter. Option "rspec --tag ~..." did not work for me, so I used "--exclude-pattern".

new spec: https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-guard-rspec.spec
new srpm: https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-guard-rspec-4.7.3-3.fc28.src.rpm

also there is open issue with Guard::RSpecFormatter:
https://github.com/guard/guard-rspec/issues/405

Comment 11 Jaroslav Prokop 2018-02-12 21:07:54 UTC
The Guard::RSpec::RSpecProcess failures are happening because bundler is needed for them and the upstream does not seem to mention that or require it at all in the file. I recommend notifying upstream about this. For the time being I would probably just comment out the specific test cases.

Comment 12 Ilia Gradina 2018-02-12 22:20:43 UTC
(In reply to Jaroslav Prokop from comment #11)
> The Guard::RSpec::RSpecProcess failures are happening because bundler is
> needed for them and the upstream does not seem to mention that or require it
> at all in the file. I recommend notifying upstream about this. For the time
> being I would probably just comment out the specific test cases.

ok, thx.

Comment 13 Vít Ondruch 2018-02-13 08:24:04 UTC
(In reply to Jaroslav Prokop from comment #11)
> The Guard::RSpec::RSpecProcess failures are happening because bundler is
> needed for them and the upstream does not seem to mention that or require it
> at all in the file.

Well, upstream is executing the test suite using Bundler, so in that case Bundler is always loaded. The question is if we want to include Bundler as build dependency or not. Both options have their pros/cons.



(In reply to Ilya Gradina from comment #10)
> (In reply to Vít Ondruch from comment #9)
> > Why are the Guard::RSpecFormatter tests failing anyway? It seems the time is
> > now formatted differently. Is it Ruby 2.5 thing? Or some incompatibility
> > with latest RSpec? Isn't there patch available upstream already?
> 
> Hi Vit, thanks for the remarks.
> I had two kinds of errors: Guard::RSpec::RSpecProcess,
> Guard::RSpecFormatter. Option "rspec --tag ~..." did not work for me, so I
> used "--exclude-pattern".
> 
> new spec:
> https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-guard-
> rspec.spec

You still don't have any remark in the .spec file why you exclude the tests :( That is always very essential to understand why something was done.

> also there is open issue with Guard::RSpecFormatter:
> https://github.com/guard/guard-rspec/issues/405

This does not appear to be related. I'd say that a bit more related is

https://github.com/guard/guard-rspec/pull/403

because it enables upstream to test against more recent versions of Ruby, although it still does not include tests against Ruby 2.5 or ruby-head :(

Comment 14 Jaroslav Prokop 2019-02-09 22:33:00 UTC
Ping... are you still interested in this package? It's been some time since the last update on this bug.

Comment 15 Jaroslav Prokop 2019-07-28 21:56:26 UTC
I am closing this because of inactivity from the maintainer.

Comment 16 Jaroslav Prokop 2019-08-12 12:11:55 UTC
Closing this (properly this time) as per stalled package review:

https://fedoraproject.org/wiki/Policy_for_stalled_package_reviews?rd=Extras


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