← Back to issue list

examples tests fail with UnicodeDecodeError

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1543714
Type
issue
State
closed
Author
~elopio
Labels
—
Created
Updated
Closed

Current evaluation

Fixed locale-dependent example-test decoding by forcing output to UTF-8 in ubuntu-core/snapcraft PR #310.

Resolution: closed resolved

Reason: The maintainer traced the failure to missing locales on the Jenkins slave and linked PR #310 as the fix. That change forced test output to decode as UTF-8 before the issue was closed.

Evaluated by: mr-cal-bot

No scores available.

Issue body

The two example tests that use npm, webchat and shout, are failing with: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 514: ordinal not in range(128)

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed locale-dependent example-test decoding by forcing output to UTF-8 in ubuntu-core/snapcraft PR #310.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR canonical/snapcraft#310, which decoded example-test output as UTF-8; merged in commit 8439e82ca with fix commit 4dc9f2638.
stealth/space-bunny-alpha — closed stale Reported UnicodeDecodeError failures in npm, webchat, and shout example tests; no resolution or linked change was found in the available issue or commit data.
qwen/qwen3.6-35b-a3b — — Closed without resolution. Example tests using npm, webchat, and shout failed with a UnicodeDecodeError.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The UnicodeDecodeError in npm, webchat, and shout example tests was not addressed, indicating the issue was abandoned.

Update history

Date Change
created

Related work

  • Likely Fixed By: ubuntu-core/snapcraft#310 (confidence 99%)

    The linked PR implemented the UTF-8 decoding workaround described by the maintainer.

Related issues

Issue Project State Summary Similarity
#310 examples_tests: decode the output with utf-8 snapcraft merged Merged in PR #310 via commit 4dc9f2638 (merge 8439e82ca), decoding examples-test output as UTF-8; Jenkins confirmed the decode errors disappeared.
71%