Bug 1336735

Summary: Review Request: php-slim3 - PHP micro framework
Product: [Fedora] Fedora Reporter: Johan Cwiklinski <fedora>
Component: Package ReviewAssignee: Remi Collet <fedora>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: fedora, package-review
Target Milestone: ---Flags: fedora: fedora-review+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-14 15:46:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
phpci.log
none
review.txt none

Description Johan Cwiklinski 2016-05-17 11:19:58 UTC
Spec URL: http://odysseus.x-tnd.be/fedora/php-Slim3/php-Slim3.spec
SRPM URL: http://odysseus.x-tnd.be/fedora/php-Slim3/php-Slim3-3.4.1-1.fc23.src.rpm
Description: PHP micro framrework
Fedora Account System Username: trasher

The php-Slim package already exists in the repositories; but for the third version is a complete rewrite and breaks many things.

Comment 1 Remi Collet 2016-05-17 11:36:27 UTC
Scratch build:
http://koji.fedoraproject.org/koji/taskinfo?taskID=14128097

Comment 2 Remi Collet 2016-05-17 12:01:53 UTC
Created attachment 1158249 [details]
phpci.log

phpCompatInfo version 5.0.0 DB version 1.8.1 built May 03 2016  07:41:55 CEST static analyze results

Comment 3 Remi Collet 2016-05-17 12:02:24 UTC
Created attachment 1158250 [details]
review.txt

Generated by fedora-review 0.6.1 (f03e4e7) last change: 2016-05-02
Command line :/usr/bin/fedora-review -b 1336735
Buildroot used: fedora-rawhide-x86_64

Comment 4 Remi Collet 2016-05-17 12:03:32 UTC
[!]: Package is named according to the Package Naming Guidelines.
	"As for other packages, name should only use lowercase, underscore and slash replaced by dash. "
	So php-slim3 should be prefered

[!]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
	Obsoletes:      %{name}-tests < 3
	Uneeded, this package doesn't exists

[~] EL-5 stuff unneeded (not a blocker)

[x]: %check is present and all tests pass.
	PHP 5: OK
	PHP 7: OK

I encouter failure on local build, but ok in mock (so not a blocker)

1) Slim\Tests\ContainerTest::testGetWithDiConfigErrorThrownAsInvalidArgumentException
Failed asserting that exception of type "InvalidArgumentException" matches expected exception "\Interop\Container\Exception\ContainerException". Message was: "Identifier "doesnt-exist" is not defined." at
/dev/shm/extras/BUILD/Slim-794073a27b2dd9ef492124263038291b7f8daeb3/tests/ContainerTest.php:74
/dev/shm/extras/BUILDROOT/php-Slim3-3.4.1-1.fc21.remi.x86_64/usr/share/php/Slim3/Container.php:125
/dev/shm/extras/BUILD/Slim-794073a27b2dd9ef492124263038291b7f8daeb3/tests/ContainerTest.php:77

Minors
- also fix package name in spec header
- as you keep changelog from php-Slim, add a changelog entry "renamed to ..."

Comment 5 Johan Cwiklinski 2016-05-17 12:36:21 UTC
Thank you to take care  of this one :) I've rename the package according to the guidelines, and made all changes you've pointed out (except el-5 stuff ;)).

As package has been renamed, I did not bump the spec version.
I've not been able to reproduce the tests failure you throw on your local environment :-/

Here the new versions:
Spec URL: http://odysseus.x-tnd.be/fedora/php-slim3/php-slim3.spec
SRPM URL: http://odysseus.x-tnd.be/fedora/php-slim3/php-slim3-3.4.1-1.fc23.src.rpm

Comment 6 Remi Collet 2016-05-17 12:39:06 UTC
[x]: Package is named according to the Package Naming Guidelines.
[x]: Obsoletes
[x]: spec header
[x]: changelog

=== APPROVED ===

Comment 7 Johan Cwiklinski 2016-05-17 12:45:19 UTC
Thank you very much for the review!

I've requested package creation on pkgdb.

Comment 8 Gwyn Ciesla 2016-05-17 14:30:32 UTC
Package request has been approved: https://admin.fedoraproject.org/pkgdb/package/rpms/php-slim3