Yes, the problem was already described in:

https://trello.com/c/7TXNGBAN/581-potential-bug-stevedore-is-not-python-2-6-compatible-anymore

and Hao already sent fix:

    https://github.com/avocado-framework/avocado/pull/1029

it still requires one tweak, but it should be fixed soon. Installed version should work fine.

As for testing, each PR is checked on python 2.7 and 2.6 with fixed library versions from *travis*.txt requirement files. Recently we added smoke check per commit and I sent PR to enable full per-commit check in travis. Before each release we take turns and run manual tests on our development machines:

    ./scripts/avocado-run-testplan -t examples/testplans/release.json

which covers some advanced use cases like virtualization, remote plugins, ... Booth manual and travis tests are on github, feel free to suggest improvements or your workflows.

Kind regards,
Lukáš


Dne 17.2.2016 v 07:19 Lucas Meneghel Rodrigues napsal(a):
OK, the thing is that Travis uses a fixed version of stevedore, and that
is why we didn't see the problem.

# stevedore for loading "new style" plugins
stevedore==1.8.0


On Wed, Feb 17, 2016 at 4:00 AM Yanbing Du <y...@redhat.com
<mailto:y...@redhat.com>> wrote:



    On 02/17/2016 01:37 PM, Lucas Meneghel Rodrigues wrote:
     > Yanbing,
     >
     > Avocado is tested on 2.6, the CI job runs on that platform. You are
     > likely lacking logutils installed (logutils==0.3.3 is what the CI
    job uses).
     >

    Thanks Lucas. In fact, logutils is installed:
    # pip list|grep logutils
    DEPRECATION: Python 2.6 is no longer supported by the Python core team,
    please upgrade your Python. A future version of pip will drop support
    for Python 2.6
    logutils (0.3.3)

    The latest stevedore(1.11.0) have a change in __init__.py, which cause
    this fail, diff with 1.10.0:

    < if hasattr(logging, 'NullHandler'):
    <     LOG.addHandler(logging.NullHandler())
    < else:
    <     class NullHandler(logging.Handler):
    <         def handle(self, record):
    <             pass
    <
    <         def emit(self, record):
    <             pass
    <
    <         def createLock(self):
    <             self.lock = None
    <
    <     LOG.addHandler(NullHandler())
    ---
      > LOG.addHandler(logging.NullHandler())


     >
     > On Wed, Feb 17, 2016 at 1:33 AM Yanbing Du <y...@redhat.com
    <mailto:y...@redhat.com>
     > <mailto:y...@redhat.com <mailto:y...@redhat.com>>> wrote:
     >
     >     Hi Lukáš,
     >     Does each release will be tested on various supported python
    versions?
     >     As now there's a fail introduce by new version stevedore,
    avocado will
     >     crash on python2.6, we need restrict the specific version to
    avoid this
     >     fail:
     >
     >     Avocado crashed:
     >     Traceback (most recent call last):
     >         File "/usr/bin/avocado", line 7, in <module>
     >           execfile(__file__)
     >         File "/tmp/libvirt_ci_debug/avocado/scripts/avocado",
    line 81, in
     >     <module>
     >           from avocado.core.app import AvocadoApp
     >         File "/tmp/libvirt_ci_debug/avocado/avocado/core/app.py",
    line
     >     26, in
     >     <module>
     >           from .dispatcher import CLIDispatcher
     >         File
    "/tmp/libvirt_ci_debug/avocado/avocado/core/dispatcher.py",
     >     line
     >     17, in <module>
     >           from stevedore import ExtensionManager
     >         File
    "/usr/lib/python2.6/site-packages/stevedore/__init__.py", line
     >     23, in <module>
     >           LOG.addHandler(logging.NullHandler())
     >     AttributeError: 'module' object has no attribute 'NullHandler'
     >
     >     On 02/16/2016 08:40 PM, Lukáš Doktor wrote:
     >      > Test Plan: Release Test Plan
     >      > Run by 'ldoktor' at 2016-02-16T13:21:30.578948
     >      > PASS: 'Avocado source is sound':
     >      > PASS: 'Avocado RPM build':
     >      > PASS: 'Avocado RPM install':
     >      > PASS: 'Avocado Test Run on RPM based installation':
     >      > PASS: 'Avocado Test Run on Virtual Machine':
     >      > PASS: 'Avocado Test Run on Remote Machine':
     >      > PASS: 'Avocado Remote Machine HTML report':
     >      > PASS: 'Avocado Server Source Checkout and Unittests':
     >      > PASS: 'Avocado Server Run':
     >      > PASS: 'Avocado Server Functional Test':
     >      > PASS: 'Avocado Virt and VT Source Checkout':
     >      > PASS: 'Avocado Virt Bootstrap':
     >      > PASS: 'Avocado Virt Boot Test Run and HTML report':
     >      > PASS: 'Avocado Virt - Assignment of values from the cmdline':
     >      > PASS: 'Avocado Virt - Migration test':
     >      > PASS: 'Avocado VT - Bootstrap':
     >      > PASS: 'Avocado VT - List tests':
     >      > PASS: 'Avocado VT - Run test':
     >      > PASS: 'Avocado HTML report sysinfo':
     >      > PASS: 'Avocado HTML report links':
     >      >
     >      > avocado: e1b986faa70472d94df08c955f64916a241e56c8
     >      > avocado-vt: 3c6c247706195f7f5c65fca3cbf4906c2376600d
     >      > avocado-virt: 7dd088e762f6133c70f79c0028080df6c89ef517
     >      >
     >      > _______________________________________________
     >      > Avocado-devel mailing list
     >      > Avocado-devel@redhat.com <mailto:Avocado-devel@redhat.com>
    <mailto:Avocado-devel@redhat.com <mailto:Avocado-devel@redhat.com>>
     >      > https://www.redhat.com/mailman/listinfo/avocado-devel
     >
     >     --
     >     Regards,
     >     Yanbing Du
     >
     >     _______________________________________________
     >     Avocado-devel mailing list
     > Avocado-devel@redhat.com <mailto:Avocado-devel@redhat.com>
    <mailto:Avocado-devel@redhat.com <mailto:Avocado-devel@redhat.com>>
     > https://www.redhat.com/mailman/listinfo/avocado-devel
     >

    --
    Regards,
    Yanbing Du


_______________________________________________
Avocado-devel mailing list
Avocado-devel@redhat.com
https://www.redhat.com/mailman/listinfo/avocado-devel

Reply via email to