Merge lp://staging/~zomux/twisted-buildbot-configuration/add-builder-twistedchecker into lp://staging/~exarkun/twisted-buildbot-configuration/trunk

Proposed by raphael shu
Status: Superseded
Proposed branch: lp://staging/~zomux/twisted-buildbot-configuration/add-builder-twistedchecker
Merge into: lp://staging/~exarkun/twisted-buildbot-configuration/trunk
Diff against target: 180 lines (+140/-0)
3 files modified
master/master.cfg (+11/-0)
master/twisted_factories.py (+19/-0)
master/twisted_steps.py (+110/-0)
To merge this branch: bzr merge lp://staging/~zomux/twisted-buildbot-configuration/add-builder-twistedchecker
Reviewer Review Type Date Requested Status
Tom Prince (community) Approve
Twisted-dev enhancement Pending
Review via email: mp+113883@code.staging.launchpad.net

This proposal has been superseded by a proposal from 2012-12-22.

Description of the change

Added builder for use Twisted Code Standard Checker(lp:twistedchecker)

to generate new warnings involved in lastest build as pydoctor do.

To run twistedchecker, it requires pylint 0.25.1 and pep8.py(>=1.0.0)

To post a comment you must log in.
278. By raphael shu

wrongly removed a blank line

279. By raphael shu

dependency: pep8 >= 1.0.0

280. By raphael shu

wrongly removed a blank line

Revision history for this message
Tom Prince (tom.prince) wrote :

The buildstep is pretty much a copy&paste from the documentation checker. The code should really be factored out into a common base class.

Probably both createSummary and getPreviousLog can be moved to the base class, and use a class attribute to specify which log file to grab.

Sorry for taking so long to get to this, it arrived when I had almost no review bandwidth.

I'll do the refactoring eventually, if somebody else doesn't get there first.

review: Needs Fixing
Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

Can we deploy it before the refactoring happens? It would be great to have this functionality, and refactoring to reduce code duplication doesn't seem extremely high priority - certainly not a blocking issue. Is something else wrong with the branch?

Revision history for this message
raphael shu (zomux) wrote :

> Can we deploy it before the refactoring happens? It would be great to have
> this functionality, and refactoring to reduce code duplication doesn't seem
> extremely high priority - certainly not a blocking issue. Is something else
> wrong with the branch?

As I'm not quite familiar with inside mechanism Of buildbot, not clear how to the refactoring should be done.

Huh ... If its just easy code rearrangement, I could try to do it.

Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

ping

Revision history for this message
raphael shu (zomux) wrote :

Hi,

Okay, I will review it these days, code refactoring..

On Fri, Nov 16, 2012 at 6:57 AM, Jean-Paul Calderone <
<email address hidden>> wrote:

> ping
> --
>
> https://code.launchpad.net/~zomux/twisted-buildbot-configuration/add-builder-twistedchecker/+merge/113883
> You are the owner of
> lp:~zomux/twisted-buildbot-configuration/add-builder-twistedchecker.
>

--
 *Raphael Shu , UACA 2012*

Revision history for this message
Tom Prince (tom.prince) wrote :

I've refactored the code here:
https://code.launchpad.net/~tom.prince/twisted-buildbot-configuration/twistedchecker
but it appears there isn't a default branch for twistedchecker, so lp:twistedchekcer doesn't work.

Revision history for this message
raphael shu (zomux) wrote :

Hi,

Okay, I have set the default branch of lp:twistedchecker ( to
lp:~zomux/twistedchecker/trunk )

and I think It should work now.

On Sat, Nov 24, 2012 at 5:34 AM, Tom Prince <email address hidden> wrote:

> I've refactored the code here:
>
> https://code.launchpad.net/~tom.prince/twisted-buildbot-configuration/twistedchecker
> but it appears there isn't a default branch for twistedchecker, so
> lp:twistedchekcer doesn't work.
> --
>
> https://code.launchpad.net/~zomux/twisted-buildbot-configuration/add-builder-twistedchecker/+merge/113883
> You are the owner of
> lp:~zomux/twisted-buildbot-configuration/add-builder-twistedchecker.
>

--
 *Raphael Shu , UACA 2012*

Revision history for this message
Tom Prince (tom.prince) wrote :
Revision history for this message
raphael shu (zomux) wrote :

Err... I could not repeat this error on my machine,

Whats the version of pylint and pep8.py installled there?

On Sat, Nov 24, 2012 at 12:21 PM, Tom Prince <email address hidden>wrote:

>
> https://buildbot.twistedmatrix.com/builders/twistedchecker/builds/2/steps/run-twistedchecker/logs/stdio
> --
>
> https://code.launchpad.net/~zomux/twisted-buildbot-configuration/add-builder-twistedchecker/+merge/113883
> You are the owner of
> lp:~zomux/twisted-buildbot-configuration/add-builder-twistedchecker.
>

--
 *Raphael Shu , UACA 2012*

Revision history for this message
Tom Prince (tom.prince) wrote :

# pylint --version
pylint 0.25.1,
astng 0.21.1, common 0.55.0
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2]
# pep8 --version
1.2

Revision history for this message
raphael shu (zomux) wrote :

Hi,

Thanks for this information .

The main reason causes the problem is the version of astng and pep8.py .

Could you upgrade logilab-astng to 0.24.1 and upgrade pep8.py to 1.3.3?

This could be done simply by these commands:
*# pip install logilab-astng --upgrade*
*# pip install pep8 --upgrade*
*
*
or I need to add support for these versions ... huh .. that would a lot of
work.

Thanks!

On Sun, Nov 25, 2012 at 2:23 AM, Tom Prince <email address hidden> wrote:

> # pylint --version
> pylint 0.25.1,
> astng 0.21.1, common 0.55.0
> Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
> [GCC 4.5.2]
> # pep8 --version
> 1.2
>
> --
>
> https://code.launchpad.net/~zomux/twisted-buildbot-configuration/add-builder-twistedchecker/+merge/113883
> You are the owner of
> lp:~zomux/twisted-buildbot-configuration/add-builder-twistedchecker.
>

--
 *Raphael Shu , UACA 2012*

Revision history for this message
Tom Prince (tom.prince) wrote :

raphael shu <email address hidden> writes:

> Could you upgrade logilab-astng to 0.24.1 and upgrade pep8.py to 1.3.3?

What are the minimum currently supported versions?

I'm using system packages, so pip isn't an option.

The machine is ubuntu natty, so the included versions aren't sufficient,
but I've been grabbing packages from quantal. Is logilab-astng 0.23.1
sufficient?

Revision history for this message
raphael shu (zomux) wrote :

Hi,

Thanks for replying.

logilab-astng 0.23.1 is okay.

also, the checker requires pep8.py version 1.0.1 or 1.3.3

pep8.py 1.2 seems a little strange and will cause error.

On Sun, Nov 25, 2012 at 10:52 AM, Tom Prince <email address hidden>wrote:

> raphael shu <email address hidden> writes:
>
> > Could you upgrade logilab-astng to 0.24.1 and upgrade pep8.py to 1.3.3?
>
> What are the minimum currently supported versions?
>
> I'm using system packages, so pip isn't an option.
>
> The machine is ubuntu natty, so the included versions aren't sufficient,
> but I've been grabbing packages from quantal. Is logilab-astng 0.23.1
> sufficient?
>
>
> --
>
> https://code.launchpad.net/~zomux/twisted-buildbot-configuration/add-builder-twistedchecker/+merge/113883
> You are the owner of
> lp:~zomux/twisted-buildbot-configuration/add-builder-twistedchecker.
>

--
 *Raphael Shu , UACA 2012*

Revision history for this message
Tom Prince (tom.prince) wrote :
review: Approve
Revision history for this message
raphael shu (zomux) wrote :

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches