← Back to issue list

Accept a total of `0` for a progress bar and behave well in this case.

View original Github issue

Metadata

Project
craft-cli
Number
#350
Type
issue
State
open
Author
lengau
Labels
Status: Triaged Type: Enhancement
Created
Updated
Closed

Current evaluation

Enhancement to accept total=0 in progress bars to indicate unknown total progress. Triaged by maintainer with Jira ticket CRAFT-4622, but no code changes since. printer.py still divides by bar_total without guarding against zero.

Suggested action: keep open

Reason: The issue is triaged (labeled Status: Triaged, Type: Enhancement, created by maintainer lengau, Jira ticket CRAFT-4622 exists) and the underlying code in printer.py line 380 still performs bar_progress / bar_total without guarding against zero, so the enhancement remains valid. Inactivity for ~14 months is notable but the issue is not obsolete.

Impact: 25 Quick Win: 17.5 Staleness: 68 Complexity: 30 Confidence: 75 Support Request: 0

Issue body

### What needs to get done When using a progress bar, accept a total of 0 and provide some sort of acceptable output that indicates we don't know the total progress. ### Why it needs to get done We sometimes want to use a progress bar but aren't sure what the total will be.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 25
Quick Win: 17.5
Staleness: 68
Complexity: 30
Confidence: 75
Support Request: 0
keep open Enhancement to accept total=0 in progress bars to indicate unknown total progress. Triaged by maintainer with Jira ticket CRAFT-4622, but no code changes since. printer.py still divides by bar_total without guarding against zero.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 20
Confidence: 80
Support Request: 0
keep open Enhancement request to handle a total of 0 for progress bars gracefully, indicating unknown progress. Triaged by a maintainer but inactive for over a year with no further discussion or implementation.
qwen3.6-35b-a3b-mtp-q6
Staleness: 80
Complexity: 20
Confidence: 75
Support Request: 5
keep open Enhancement to gracefully handle a total of 0 in progress bars. Currently triaged but inactive for over a year with no implementation progress.
qwen3.6-35b-a3b-mtp-q6
Staleness: 75
Complexity: 20
Confidence: 75
Support Request: 10
keep open Gracefully handle progress bars with a total of zero when the final count is unknown. Triaged with an internal JIRA ticket, but remains unassigned and inactive for over a year.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.