Projet

Général

Profil

Bug #32550

build cassé : PhantomJS process timeout

Ajouté par Christophe Siraut il y a environ 5 ans. Mis à jour il y a environ 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
24 avril 2019
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

dans https://jenkins.entrouvert.org/job/mandayejs/1005/console :

tests/test_mandayejs.py .........F...                                    [100%]Coverage.py warning: Couldn't read data from '/var/lib/jenkins/jobs/mandayejs/workspace/.coverage.jenkins.10398.996884': CoverageException: Doesn't seem to be a coverage.py data file

=================================== FAILURES ===================================
____________________________ test_enclosed_response ____________________________

mocked_popen = <MagicMock name='Popen' id='140652150106896'>

    @mock.patch('mandayejs.mandaye.utils.subprocess.Popen')
    @mock.patch('mandayejs.applications.Test.SITE_LOCATORS', MOCKED_SITE_LOCATORS)
    def test_enclosed_response(mocked_popen):
        output = """<mandayejs>{"result": "ok",
        "authentication": "success"} </mandayejs>
        this is just a random error""" 

        mocked_popen.return_value = MockedPopen(expected_output=(output, None))
        result = exec_phantom(LOGIN_INFO)
>       assert result['result'] == 'ok'
E       AssertionError: assert 'timeout' == 'ok'
E         - timeout
E         + ok

tests/test_mandayejs.py:229: AssertionError
------------------------------ Captured log call -------------------------------
utils.py                    76 ERROR    PhantomJS process timeout, context: {'cookies': [], 'address': 'https://whatever.com', 'auth_checker': 'tenants/static/js/auth.checker.js', 'form_submit_element': 'input[type=submit], button'}

Historique

#1

Mis à jour par Christophe Siraut il y a environ 5 ans

La construction du paquet réussit à nouveau, sans changement du code. https://jenkins.entrouvert.org/blue/organizations/jenkins/mandayejs/activity

#2

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

Possible que la machine ait été très chargée => timeout... ou alors un bug intermittent dans notre code multiprocessing.

#3

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

  • Statut changé de Nouveau à Fermé

Formats disponibles : Atom PDF