Bug 1931427 - Review Request: rust-rspec - Write Rspec-like tests with stable rust
Summary: Review Request: rust-rspec - Write Rspec-like tests with stable rust
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Fabio Valentini
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-22 12:04 UTC by Sohan Kunkerkar
Modified: 2021-03-16 11:01 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1934402 (view as bug list)
Environment:
Last Closed: 2021-03-03 07:21:30 UTC
Type: Bug
Embargoed:
decathorpe: fedora-review+


Attachments (Terms of Use)

Description Sohan Kunkerkar 2021-02-22 12:04:43 UTC
Spec URL: https://sohank2602.fedorapeople.org/rust-rspec/rust-rspec.spec
SRPM URL: https://sohank2602.fedorapeople.org/rust-rspec-1.0.0-1.fc33.src.rpm
Description: Write Rspec-like tests with stable rust
Fedora Account System Username: sohank2602

Comment 1 Fabio Valentini 2021-02-25 14:49:58 UTC
Please don't assign bugs without asking first.
Doing that also hides it on the list of new package review tickets, making it even less likely for somebody to even see the bug.

That said: The .spec file behind the direct and inside the linked SRPM differ.
The email address in the changelog entry is different and the %license LICENSE file is missing in one version.

Additionally, the subpackage for the optional +clippy feature does not install successfully (because clippy is not packaged as a standalone crate in Fedora).
Please remove the +clippy subpackage.

To mark the clippy feature as an "unwanted" feature permanently, you can add a .rust2rpm.conf file like this to the package later:

[DEFAULT]
unwanted-features =
  clippy

Comment 2 Sohan Kunkerkar 2021-02-25 17:57:11 UTC
(In reply to Fabio Valentini from comment #1)
> Please don't assign bugs without asking first.
> Doing that also hides it on the list of new package review tickets, making
> it even less likely for somebody to even see the bug.

Thanks for the information. I will keep it in mind. 


> That said: The .spec file behind the direct and inside the linked SRPM
> differ.
> The email address in the changelog entry is different and the %license
> LICENSE file is missing in one version.
> 
> Additionally, the subpackage for the optional +clippy feature does not
> install successfully (because clippy is not packaged as a standalone crate
> in Fedora).
> Please remove the +clippy subpackage.
> 

I've fixed this in the latest push. Please let me know if the new changes look good.

Comment 3 Fabio Valentini 2021-02-25 21:34:35 UTC
I missed another issue last time:

The "expectest" feature also will not install. You'll need to either
- package expectest ^0.12 for Fedora, or
- drop the +expectest subpackage, like the +clippy subpackage.

However, it would be good to check whether the package that uses rspec actually uses the optional "expectest" feature or not before deciding to drop it. :)

Other than that, package looks good.

Comment 4 Fabio Valentini 2021-02-26 11:38:33 UTC
BTW: I trained myself to use mock's "--postinstall" feature to test this stuff locally. It will complain if there are missing dependencies.

Comment 5 Sohan Kunkerkar 2021-02-27 04:08:29 UTC
(In reply to Fabio Valentini from comment #3)
> I missed another issue last time:
> 
> The "expectest" feature also will not install. You'll need to either
> - package expectest ^0.12 for Fedora, or
> - drop the +expectest subpackage, like the +clippy subpackage.
> 

ah, I see

> However, it would be good to check whether the package that uses rspec
> actually uses the optional "expectest" feature or not before deciding to
> drop it. :)
> 

Yup, it's an optional one. I made the necessary changes to address this concern, and also validate it with the mock's `--postinstall` feature.


> BTW: I trained myself to use mock's "--postinstall" feature to test this stuff locally. It will complain if there are missing dependencies.

Thanks for the pointers.

Comment 6 Fabio Valentini 2021-02-27 11:08:04 UTC
Looks good now. Package generated with rust2rpm, simplifying review:

- package conforms to Rust Packaging Guidelines
- latest version is packaged
- package builds and installs without issues on rawhide
- test suite is executed and passes
- license matches upstream, is acceptable, and is shipped with %license

TL;DR: APPROVED.

Comment 7 Mohan Boddu 2021-03-01 16:29:07 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-rspec

Comment 8 Sohan Kunkerkar 2021-03-03 07:21:30 UTC
The rawhide and f-34 builds are successfully created.


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