← Back to issue list

Add ability to handle Internet connection failures

View original Github issue

Metadata

Project
craft-parts
Number
#1189
Type
issue
State
open
Author
ofry
Labels
Created
Updated
Closed

Current evaluation

Feature request to add a retry option for failed network downloads (e.g. unexpected EOF on unstable connections). Unlabelled, 0 comments, no maintainer response; related snapcraft#5642 was closed and redirected here as the proper home.

Suggested action: needs triage

Reason: The issue has no labels, no assignee, and zero comments, showing no maintainer has assessed it, so it needs triage. It is not stale-irrelevant: the referenced snapcraft#5642 was explicitly closed and redirected to craft-parts as the correct home, and no retry logic exists in the download path (url_utils.download_request just iterates content with no retry).

Impact: 45 Quick Win: 18.0 Staleness: 72 Complexity: 60 Confidence: 78 Support Request: 15

Issue body

### What needs to get done It's related to https://github.com/canonical/snapcraft/issues/5642 Could you add new configuration option, CLI option, etc. which add ability to retry failed command pre-defined number of tries? I want to exclude scenario: ``` snapcraft ``` See failing when connection suddenly closed when downloading any file related to project (unexpected EOF or such). Then immediately I should: ``` snapcraft ``` etc. ### Why it needs to get done It will greatly improve the usability when the user has unstable Internet connection.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 45
Quick Win: 18.0
Staleness: 72
Complexity: 60
Confidence: 78
Support Request: 15
needs triage Feature request to add a retry option for failed network downloads (e.g. unexpected EOF on unstable connections). Unlabelled, 0 comments, no maintainer response; related snapcraft#5642 was closed and redirected here as the proper home.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 45
Confidence: 75
Support Request: 10
needs triage Feature request to add a configurable retry mechanism for network downloads to handle unstable connections. Unlabelled, zero maintainer comments, and inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 45
Confidence: 80
Support Request: 10
needs triage Request for a retry mechanism on network failures during downloads to improve usability on unstable connections. Untriaged, no maintainer response, inactive for nearly a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 80
Complexity: 45
Confidence: 85
Support Request: 10
needs triage Proposes configurable retry logic for network failures during downloads to handle unstable connections. Unassigned, zero comments, inactive for 329 days. Requires triage and assignment to proceed.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/snapcraft#5642 (confidence 90%)

    Referenced in the issue body; closed and redirected to craft-parts as the proper place for network retry logic.

  • Related To: canonical/craft-parts#1533 (confidence 55%)

    Commit 'fix(sources): handle streaming request errors' addresses related network-error handling in sources but does not add a retry option.

Related issues

Issue Project State Summary Similarity
#5642 Add ability (opt-in) to handle Internet connection failures snapcraft closed Closed and redirected to the craft-parts repository. Maintainers recommend implementing network retry logic directly in craft-parts rather than adding a snapcraft-level opt-in flag. A new issue should be opened there.
80%