Project

General

Profile

Actions

Bug #24003

closed

build-integration-branch script can fail with UnicodeEncodeError

Added by Nathan Cutler almost 6 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The build-integration-script assumes it is running in an environment where sys.stdout.encoding is UTF-8. But this might not always be true.

The easiest way to reproduce the error is to introduce a non-ascii character (such as …) into a PR title and then run the script on a label that includes that PR, prefixing the script with "LC_CTYPE=latin1" like so:

$ LC_CTYPE=latin1 build-integration-branch wip-smithfarm-testing
--- found 1 issues tagged with wip-smithfarm-testing
--- queried 1 prs
branch wip-smithfarm-testing-2018-05-03-2304
--- creating branch wip-smithfarm-testing-2018-05-03-2304
Switched to a new branch 'wip-smithfarm-testing-2018-05-03-2304'
--- pr 20401 --- pulling https://github.com/smithfarm/ceph.git branch wip-22558
From https://github.com/smithfarm/ceph
 * branch                  wip-22558  -> FETCH_HEAD
Adding qa/suites/rbd/mirror/cluster
Adding qa/suites/rbd/mirror/base
Auto-merging ceph.spec.in
Merge made by the 'recursive' strategy.
 ceph.spec.in | 3 +++
 1 file changed, 3 insertions(+)
--- done. these PRs were included:
Traceback (most recent call last):
  File "/home/smithfarm/bin/build-integration-branch", line 65, in <module>
    print('\n'.join(prtext))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026' in position 93: ordinal not in range(128)

Related issues 1 (0 open1 closed)

Copied to Ceph - Backport #24070: luminous: build-integration-branch script can fail with UnicodeEncodeErrorResolvedNathan CutlerActions
Actions #1

Updated by Nathan Cutler almost 6 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #2

Updated by Nathan Cutler almost 6 years ago

  • Target version set to v13.2.0

Setting target version to v13.2.0, mimic backport is https://github.com/ceph/ceph/pull/21918

Actions #3

Updated by Nathan Cutler almost 6 years ago

  • Copied to Backport #24070: luminous: build-integration-branch script can fail with UnicodeEncodeError added
Actions #4

Updated by Nathan Cutler almost 6 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF