Project

General

Profile

Tâche #12394

Scénario #12362: Assistance aux utilisateurs (29-35)

Le test creolelint sur amonecole plante à cause de wpkg

Added by Daniel Dehennin over 7 years ago. Updated over 7 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
06/23/2015
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:
Remaining (hours):
0.0

Description

Voir http://jenkins.eole.lan/view/2.4.2/job/test-creolelint-amonecole-2.4.2-amd64/5/

            Traceback (most recent call last):
            File "/usr/bin/CreoleLint", line 57, in main
            validate(keyword, ansi, tmpl)
            File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 1104, in validate
            ansi.process(cl)
            File "/usr/lib/python2.7/dist-packages/creole/lint/ansiwriter.py", line 47, in process
            checks = linter.check()
            File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 940, in check
            self.load_dics()
            File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 146, in load_dics
            self._collect_vars_in_dicos()
            File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 233, in _collect_vars_in_dicos
            for path in config.creole.make_dict():
            File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 463, in make_dict
            force_permissive=force_permissive)
            File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 477, in _make_sub_dict
            force_permissive=force_permissive)
            File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 463, in make_dict
            force_permissive=force_permissive)
            File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 480, in _make_sub_dict
            force_permissive=force_permissive)
            File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 268, in getattr
            force_permissives=force_permissives)
            File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 185, in getitem
            force_permissives)
            File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 281, in _getitem
            raise config_error
            ValueError: valeur invalide pour l'option wpkg_address : invalide unicode
            Machine etb3.amonecole : ciRunPython /usr/bin/CreoleLint ==> RESULT=1

Associated revisions

Revision 4a66d914 (diff)
Added by Emmanuel GARETTE over 7 years ago

calc_multi_condition : valeur par défaut doit être de type unicode (ref #12394)

History

#1 Updated by Daniel Dehennin over 7 years ago

  • Distribution changed from EOLE 2.5 to EOLE 2.4

#2 Updated by Emmanuel GARETTE over 7 years ago

  • Estimated time set to 1.00 h
  • Remaining (hours) set to 1.0

#3 Updated by Emmanuel GARETTE over 7 years ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Emmanuel GARETTE

C'est un problème CreoleLint.

adresse_ip_eth0 n'est pas renseigné dans le template, la valeur est donc "None".

La valeur par défaut est donc "oui" et non u"oui".

Cela ne pose pas de problème pour les variables de type "oui/non" mais pose problème pour les variables de type "string".

#4 Updated by Emmanuel GARETTE over 7 years ago

  • % Done changed from 0 to 80
  • Remaining (hours) changed from 1.0 to 0.5

Corriger en 2.5 a partir d'une branche faite sur 2.4.2.

Voir si on corrige en 2.4.2 (peut être impactant car on modifie une fonction) ou 2.4.3 (problème uniquement lié à CreoleLint).

#5 Updated by Emmanuel GARETTE over 7 years ago

  • % Done changed from 80 to 100
  • Remaining (hours) changed from 0.5 to 0.25

Passe en 2.4.2.

#6 Updated by Scrum Master over 7 years ago

  • Status changed from En cours to Résolu

#7 Updated by Joël Cuissinat over 7 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.25 to 0.0

CreoleLint OK sur etb3.amonecole-2.4.2-instance-default (avec eole-wpkg) :

real    106m20.972s
user    100m19.512s
sys    2m39.025s

Also available in: Atom PDF