autolanding fails with unicode error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Invalid
|
Undecided
|
Unassigned | ||
jenkins-launchpad-plugin |
Triaged
|
Undecided
|
Unassigned |
Bug Description
I'm seeing a failure during autolanding after top-approved MR has built and passed all its tests. The same project used to autoland just fine until recently. Monitor slaves are up to date as far as their packages are concerned. I have no idea how to track this down right now. Any suggestions?
04:57:56 Started by upstream project "lp-thumbnailer
04:57:56 originally caused by:
04:57:56 Started by remote host 10.43.64.7
04:57:56 Building remotely on jenkins-
04:57:56 [lp-generic-
04:57:56 + autoland --test-
04:57:57 DEBUG: fetching branch: lp:~michihenning/thumbnailer/cmake-fixes/
04:57:57 DEBUG: mp_link: https:/
04:57:57 DEBUG: mp.web_link: https:/
04:58:02 DEBUG: Using temp dir at /tmp/tmpsY24mq
04:58:24 Traceback (most recent call last):
04:58:24 File "/usr/bin/
04:58:24 load_entry_
04:58:24 File "/usr/lib/
04:58:24 ret = merge_and_
04:58:24 File "/usr/lib/
04:58:24 target = Branch.
04:58:24 File "/usr/lib/
04:58:24 clazz.create_tree()
04:58:24 File "/usr/lib/
04:58:24 self.tree = self.bzr_
04:58:24 File "/usr/lib/
04:58:24 hardlink=hardlink)
04:58:24 File "/usr/lib/
04:58:24 accelerator_
04:58:24 File "/usr/lib/
04:58:24 delta_from_
04:58:24 File "/usr/lib/
04:58:24 delta_from_tree)
04:58:24 File "/usr/lib/
04:58:24 tt.finalize()
04:58:24 File "/usr/lib/
04:58:24 delete_any(path)
04:58:24 File "/usr/lib/
04:58:24 _delete_
04:58:24 File "/usr/lib/
04:58:24 if isdir(path): # Takes care of symlinks
04:58:24 File "/usr/lib/
04:58:24 return stat.S_
04:58:24 UnicodeEncodeError: 'ascii' codec can't encode characters in position 48-49: ordinal not in range(128)
04:58:24 Build step 'Execute shell' marked build as failure
04:58:24 Finished: FAILURE
Changed in jenkins-launchpad-plugin: | |
status: | Invalid → Triaged |
Changed in bzr: | |
status: | New → Invalid |
It looks like bzrlib doesn't handle file names containing non-ASCII characters.
The problem is triggered by a test file in our bzr repo that contains Chinese characters in the file name.
Setting LANG=en_US.UTF-8 can be used to work around the issue (but I believe it should work even if LANG is not set).