Projet

Général

Profil

Bug #30307

jenkins: buil en erreur pytest 4.2.0

Ajouté par Emmanuel Cazenave il y a environ 5 ans. Mis à jour il y a presque 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
01 février 2019
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

config .coveragerc tests/ 
Traceback (most recent call last):
  File "/tmp/tox-jenkins/passerelle/django18/bin/py.test", line 10, in <module>
    sys.exit(main())
  File "/tmp/tox-jenkins/passerelle/django18/local/lib/python2.7/site-packages/_pytest/config/__init__.py", line 61, in main
    config = _prepareconfig(args, plugins)
  File "/tmp/tox-jenkins/passerelle/django18/local/lib/python2.7/site-packages/_pytest/config/__init__.py", line 196, in _prepareconfig
    pluginmanager=pluginmanager, args=args
  File "/tmp/tox-jenkins/passerelle/django18/local/lib/python2.7/site-packages/pluggy/hooks.py", line 284, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/tmp/tox-jenkins/passerelle/django18/local/lib/python2.7/site-packages/pluggy/manager.py", line 68, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/tmp/tox-jenkins/passerelle/django18/local/lib/python2.7/site-packages/pluggy/manager.py", line 62, in <lambda>
    firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
  File "/tmp/tox-jenkins/passerelle/django18/local/lib/python2.7/site-packages/pluggy/callers.py", line 203, in _multicall
    gen.send(outcome)
  File "/tmp/tox-jenkins/passerelle/django18/local/lib/python2.7/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse
    config = outcome.get_result()
  File "/tmp/tox-jenkins/passerelle/django18/local/lib/python2.7/site-packages/pluggy/callers.py", line 81, in get_result
    _reraise(*ex)  # noqa
  File "/tmp/tox-jenkins/passerelle/django18/local/lib/python2.7/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/tmp/tox-jenkins/passerelle/django18/local/lib/python2.7/site-packages/_pytest/config/__init__.py", line 652, in pytest_cmdline_parse
    self.parse(args)
  File "/tmp/tox-jenkins/passerelle/django18/local/lib/python2.7/site-packages/_pytest/config/__init__.py", line 838, in parse
    self._preparse(args, addopts=addopts)
  File "/tmp/tox-jenkins/passerelle/django18/local/lib/python2.7/site-packages/_pytest/config/__init__.py", line 784, in _preparse
    self.pluginmanager.load_setuptools_entrypoints("pytest11")
  File "/tmp/tox-jenkins/passerelle/django18/local/lib/python2.7/site-packages/pluggy/manager.py", line 274, in load_setuptools_entrypoints
    message="Plugin %r could not be loaded: %s!" % (ep.name, e),
pluggy.manager.PluginValidationError: Plugin 'django' could not be loaded: (pytest 4.2.0 (/tmp/tox-jenkins/passerelle/django18/lib/python2.7/site-packages), Requirement.parse('pytest!=4.2.0,>=3.6'))!

pytest 4.2.0, sortis hier, plait pas à tout le monde, peut-être à cause de https://github.com/pytest-dev/pytest/issues/4704


Fichiers

0001-jenkins-pin-pytest-version-30307.patch (528 octets) 0001-jenkins-pin-pytest-version-30307.patch Emmanuel Cazenave, 01 février 2019 15:33

Révisions associées

Historique

#1

Mis à jour par Emmanuel Cazenave il y a environ 5 ans

En attendant que ça se tasse.

#2

Mis à jour par Emmanuel Cazenave il y a environ 5 ans

  • Statut changé de Solution proposée à Résolu (à déployer)

Résolu autrement :

commit 8a4a03ded10373d07e3764493c851b4f16c014f6
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sun Feb 3 19:11:00 2019 +0100

    tox.ini: limit to pytest-django<3.4.6

    See #30307 and https://github.com/pytest-dev/pytest-django/issues/698
#3

Mis à jour par Frédéric Péters il y a environ 5 ans

Désolé zappé le côté ticket ici j'ai juste appliqué la même correction que dans authentic dans les modules qui échouaient.

#4

Mis à jour par Emmanuel Cazenave il y a environ 5 ans

Pas de soucis.

#5

Mis à jour par Emmanuel Cazenave il y a environ 5 ans

  • Statut changé de Résolu (à déployer) à Solution déployée
#6

Mis à jour par Benjamin Dauvergne il y a presque 5 ans

  • Statut changé de Solution déployée à Fermé

Formats disponibles : Atom PDF