jenkins-dep library fails in non-ascii characters in commit mesages

Bug #1666929 reported by Sagi (Sergey) Shnaidman
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Expired
Undecided
Unassigned

Bug Description

When patch contains commit message with non-ascii characters (like French name) the jenkins-deps library of build-test-packages role fails to parse it and crashes.

https://ci.centos.org/artifacts/rdo/jenkins-tripleo-quickstart-extras-gate-master-tripleo-ci-delorean-full-minimal_pacemaker-444/console.txt.gz

UnicodeEncodeError: 'ascii' codec can't encode character u'�' in position 531: ordinal not in range(128)
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):
  File "/tmp/ansible_LhqztI/ansible_module_jenkins_deps.py", line 224, in <module>
    main()
  File "/tmp/ansible_LhqztI/ansible_module_jenkins_deps.py", line 216, in main
    module.params['patchset_rev'])
  File "/tmp/ansible_LhqztI/ansible_module_jenkins_deps.py", line 174, in resolve_dep
    details = get_details(**change)
  File "/tmp/ansible_LhqztI/ansible_module_jenkins_deps.py", line 140, in get_details
    str(data['revisions'][revision]['commit']['message'])}
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 531: ordinal not in range(128)

Tags: ci quickstart
Ronelle Landy (rlandy)
Changed in tripleo-quickstart:
status: New → Triaged
importance: Undecided → Low
John Trowbridge (trown)
Changed in tripleo:
status: New → Triaged
no longer affects: tripleo-quickstart
Changed in tripleo:
importance: Undecided → Low
milestone: none → pike-3
tags: added: ci quickstart
Changed in tripleo:
milestone: pike-3 → pike-rc1
Changed in tripleo:
milestone: pike-rc1 → queens-1
Changed in tripleo:
milestone: queens-1 → queens-2
Changed in tripleo:
milestone: queens-2 → queens-3
Changed in tripleo:
importance: Low → High
Changed in tripleo:
milestone: queens-3 → queens-rc1
Changed in tripleo:
milestone: queens-rc1 → rocky-1
Changed in tripleo:
milestone: rocky-1 → rocky-2
Changed in tripleo:
milestone: rocky-2 → rocky-3
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1
Changed in tripleo:
milestone: stein-1 → stein-2
Revision history for this message
Emilien Macchi (emilienm) wrote : Cleanup EOL bug report

This is an automated cleanup. This bug report has been closed because it
is older than 18 months and there is no open code change to fix this.
After this time it is unlikely that the circumstances which lead to
the observed issue can be reproduced.

If you can reproduce the bug, please:
* reopen the bug report (set to status "New")
* AND add the detailed steps to reproduce the issue (if applicable)
* AND leave a comment "CONFIRMED FOR: <RELEASE_NAME>"
  Only still supported release names are valid (FUTURE, PIKE, QUEENS, ROCKY, STEIN).
  Valid example: CONFIRMED FOR: FUTURE

Changed in tripleo:
importance: High → Undecided
status: Triaged → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.