breaks on non-ascii characters in verify_command output on failure

Bug #750930 reported by Jelmer Vernooij
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Tarmac
Fix Released
High
John A Meinel

Bug Description

If the verify command fails and its output contains non-ascii characters, tarmac will crash with a UnicodeDecodeError.

I've worked around this with the attached patch, but my assumption that the command's output will always be utf8 is probably not always correct.

Related branches

Revision history for this message
Jelmer Vernooij (jelmer) wrote :
Revision history for this message
John A Meinel (jameinel) wrote :

I did it slightly differently, but I think the same idea applies. I think assuming UTF-8 is the "most reasonable" thing to do as a starting place.

I ran into this because apparently GCC now emits non-ascii characters. The line I think was failing is:
meliae/_loader.c: In function ‘__pyx_pf_6meliae_7_loader_17_MOCValueIterator___next__’:

You can see the 'fixed' failure:
https://code.launchpad.net/~jameinel/meliae/bad_test/+merge/73807

Without that, Tarmac just dies trying to run.
Arguably, at a minimum, Tarmac should be safe against command failures, such that it at least gives feedback that "I failed to merge this because of XYZ".

Jelmer Vernooij (jelmer)
description: updated
Changed in tarmac:
status: New → Confirmed
John A Meinel (jameinel)
Changed in tarmac:
assignee: nobody → John A Meinel (jameinel)
importance: Undecided → High
status: Confirmed → In Progress
Changed in tarmac:
status: In Progress → Fix Committed
dobey (dobey)
Changed in tarmac:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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