Bug 949311 - Review Request: python-workerpool - Multithreaded job distribution module
Summary: Review Request: python-workerpool - Multithreaded job distribution module
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mamoru TASAKA
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 949371
TreeView+ depends on / blocked
 
Reported: 2013-04-07 16:42 UTC by Orion Poplawski
Modified: 2013-05-04 21:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-04 21:03:04 UTC
Type: ---
Embargoed:
mtasaka: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Orion Poplawski 2013-04-07 16:42:14 UTC
Spec URL: http://www.cora.nwra.com/~orion/fedora/python-workerpool.spec
SRPM URL: http://www.cora.nwra.com/~orion/fedora/python-workerpool-0.9.2-1.fc18.src.rpm
Description:
The workerpool module is a simple framework for easily distributing jobs into
multiple worker threads.  Examples of usage can be found in the unit tests
and the samples provided.  This module facilitates distributing simple
operations into jobs that are sent to worker threads, maintained by a pool
object.

It consists of these components:

* Jobs - single units of work that need to be performed.
* Workers - workers grab jobs from a queue and run them.
* Worker pool - keeps track of workers and the job queue.

Fedora Account System Username: orion

Comment 1 Mamoru TASAKA 2013-05-02 15:05:11 UTC
For 0.9.2-1:

* License tag
  - The license is MIT, not BSD.

* Build failure
  - Does not build on either F-20 or F-19:
    http://koji.fedoraproject.org/koji/taskinfo?taskID=5325042
    http://koji.fedoraproject.org/koji/taskinfo?taskID=5325043
    Seems python-nose, python3-nose are needed for BR.
    However even with these, %check still "really" fails
    randomly:
    http://koji.fedoraproject.org/koji/taskinfo?taskID=5325084
    
* $RPM_BUILD_ROOT v.s. %buildroot
  https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/Guidelines#Using_.25.7Bbuildroot.7D_and_.25.7Boptflags.7D_vs_.24RPM_BUILD_ROOT_and_.24RPM_OPT_FLAGS
  - Please choose one style and aviod using both style.

* No longer needed stuff
  https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/Guidelines#BuildRoot_tag
  - Cleaning up %buildroot at the beginning of %install is
    no longer needed (on Fedora).

* Suggestions
  * Same summary / description for python2 and python3
    version package
    - At least it is preferable to distinguish python2 and
      python3 version of the packages in %description.

  * Needed documentations
    - Is "test" directory needed for "documentation"?

Comment 2 Mamoru TASAKA 2013-05-02 15:06:36 UTC
By the way I appreciate it if you would review one of my review requests (bug 958149 )

Comment 3 Orion Poplawski 2013-05-02 15:31:49 UTC
I've filed this issue about the test failure:

https://github.com/shazow/workerpool/issues/3

Looks like the tests assume a certain ordering of operations, but it does not appear that workerpool guarantees that ordering.  Hopefully I'll get a response soon.

I've fixed the other stuff here:

http://www.cora.nwra.com/~orion/fedora/python-workerpool.spec
http://www.cora.nwra.com/~orion/fedora/python-workerpool-0.9.2-1.fc18.src.rpm

* Thu May 2 2013 Orion Poplawski <orion.com> - 0.9.2-2
- Change license to MIT
- Fix macro consistency
- Add BR python-nose

Comment 4 Mamoru TASAKA 2013-05-02 15:59:09 UTC
Well, if you are okay I will also wait for upstream response about test failure.

Comment 5 Orion Poplawski 2013-05-03 03:23:40 UTC
http://www.cora.nwra.com/~orion/fedora/python-workerpool.spec
http://www.cora.nwra.com/~orion/fedora/python-workerpool-0.9.2-3.fc18.src.rpm

* Thu May 2 2013 Orion Poplawski <orion.com> - 0.9.2-3
- Add patch to fix tests

Patch submitted and accepted upstream.

Comment 6 Mamoru TASAKA 2013-05-03 15:26:01 UTC
Well,
* So would you tell me if "test" directory is really needed
  (for %doc)?
  (not a blocker, however I want to see your opinition).
  Note that currently test_workerpool.py.test is also packaged,
  which at least should be removed.

* After reading bug 957568 comment 2 , I now thinks that
  workerpool.egg-info in tarball should be removed at %prep
  to ensure that egg-info is really rebuilt, however for now
  I leave it to you.

Comment 7 Orion Poplawski 2013-05-03 22:45:36 UTC
http://www.cora.nwra.com/~orion/fedora/python-workerpool-0.9.2-4.fc18.src.rpm

* Fri May 3 2013 Orion Poplawski <orion.com> - 0.9.2-4
- Don't ship tests
- Remove shipped egg-info

Yeah, probably not worth shipping these tests.

Comment 8 Mamoru TASAKA 2013-05-04 06:05:31 UTC
Okay.

------------------------------------------------------
  This package (python-workerpool) is APPROVED by
  mtasaka
------------------------------------------------------

Comment 9 Orion Poplawski 2013-05-04 16:28:05 UTC
New Package SCM Request
=======================
Package Name: python-workerpool
Short Description: Multithreaded job distribution module
Owners: orion
Branches: f19 f18 el6
InitialCC:

Comment 10 Gwyn Ciesla 2013-05-04 20:37:44 UTC
Git done (by process-git-requests).

Comment 11 Orion Poplawski 2013-05-04 21:03:04 UTC
Checked in and built.  Thanks all!


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