← Back to issue list

BrokenPipeError when `| head`ing output

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1779154
Type
issue
State
open
Author
~saviq
Labels
Created
Updated
Closed

Current evaluation

Piping snapcraft revisions output to head triggers a BrokenPipeError traceback. Reported 8+ years ago with zero maintainer interaction; no BrokenPipeError handling found in current codebase.

Suggested action: needs triage

Reason: The issue is 2986 days old with zero comments and no labels, showing no maintainer engagement. However, the underlying problem (missing BrokenPipeError handling in the CLI) is a real, reproducible bug that would still affect users piping snapcraft output. The fix is straightforward (catch BrokenPipeError or set SIGPIPE to default), but the extreme age and lack of any triage activity make it unclear whether this is still relevant to the current codebase architecture. A maintainer should confirm whether the issue persists before deciding to fix or close.

Impact: 25 Quick Win: 21.25 Staleness: 95 Complexity: 15 Confidence: 60 Support Request: 10

Issue body

`snapcraft revisions $snap` gets unwieldy quickly, adding `| head` to it helps groking the output, but then: $ snapcraft revisions multipass | head [...] Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'> BrokenPipeError: [Errno 32] Broken pipe

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 25
Quick Win: 21.25
Staleness: 95
Complexity: 15
Confidence: 60
Support Request: 10
needs triage Piping snapcraft revisions output to head triggers a BrokenPipeError traceback. Reported 8+ years ago with zero maintainer interaction; no BrokenPipeError handling found in current codebase.
qwen/qwen3.6-35b-a3b
Staleness: 99
Complexity: 15
Confidence: 90
Support Request: 10
close stale BrokenPipeError occurs when piping snapcraft revisions output to head. No maintainer response or comments in over 8 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 15
Confidence: 75
Support Request: 10
close stale Reports a BrokenPipeError when piping snapcraft revisions output to head. Unlabeled, no maintainer interaction, inactive for ~8 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 100
Complexity: 15
Confidence: 95
Support Request: 0
close stale snapcraft revisions command raises BrokenPipeError when piped to head. Issue has been inactive for over 8 years with no maintainer response or labels.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 15
Confidence: 90
Support Request: 10
close stale Reports a BrokenPipeError when piping snapcraft revisions output to head. Unlabeled, inactive for ~8 years, no maintainer response.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#378 Broken pipe when trimming lines (head) craft-cli open BrokenPipeError traceback when piping snapcraft output to an early-closing consumer like `head -n1`. Fix is scoped to ignoring BrokenPipeError in the printer's stream handling; draft PR #443 is open and awaiting review.
81%