← Back to issue list

check the storage space before trying to spin container

View original Github issue

Metadata

Project
craft-providers
Number
#657
Type
issue
State
open
Author
dariuszd21
Labels
Type: Enhancement
Created
Updated
Closed
—

Current evaluation

Maintainer-filed enhancement to warn (or fail early) when host/LXD storage is nearly full before spinning up a build container; still open, with ownership and a concrete threshold unresolved after lengau questioned whether craft-providers is the right place.

Suggested action: keep open

Reason: The request is a valid, still-relevant UX improvement (builds currently fail "in the random moment" with an opaque error), it is authored by a maintainer and carries the 'Type: Enhancement' label, and nothing in the codebase addresses it — grepping craft-providers for 'disk_usage', 'shutil.disk', 'statvfs', 'psutil', 'free space' and 'storage' returns no pre-flight capacity check, and git log has no 'check available space' commit. It should stay open but is not ready to implement: the only comment, from @lengau, says "I'm not sure how we could feasibly do this or whether it's craft-providers's problem. Maybe craft-application should warn...", leaving ownership (craft-providers vs craft-application), the threshold ("e.g. in percentage"), and the LXD-vs-Multipass behavior undefined.

Evaluated by: mr-cal-bot

Impact: 35 Quick Win: 6 Complexity: 50 Confidence: 68 Actionability: 32

Issue body

### What needs to get done Check if there is sufficient storage space (e.g. in percentage) before creating the container, so it will not weirdly error out during the build. ### Why it needs to get done Currently we just run the container and it may fail in the random moment if the whole storage space is occupied or almost occupied. We should at least warn the user to clear out some space before build

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 35
Quick Win: 6
Complexity: 50
Confidence: 68
Actionability: 32
keep open Maintainer-filed enhancement to warn (or fail early) when host/LXD storage is nearly full before spinning up a build container; still open, with ownership and a concrete threshold unresolved after lengau questioned whether craft-providers is the right place.
stealth/space-bunny-alpha
Impact: 42
Quick Win: 7
Complexity: 54
Confidence: 79
Actionability: 34
needs triage Enhancement to check available storage before container creation or builds; ownership and a concrete threshold remain unresolved after a maintainer questioned whether craft-providers is responsible.
qwen3.6-35b-a3b-mtp-q6
Impact: 50
Quick Win: 38
Staleness: 75
Complexity: 25
Confidence: 65
Support Request: 20
close stale Enhancement to check storage space before container creation to prevent confusing build failures. Open 715 days with unclear ownership between craft-providers and craft-application.
qwen/qwen3.6-35b-a3b
Staleness: 75
Complexity: 25
Confidence: 65
Support Request: 5
needs triage Enhancement to verify available storage before container creation to prevent build failures. Currently under discussion regarding implementation scope and component ownership.
qwen3.6-35b-a3b-mtp-q6
Staleness: 70
Complexity: 20
Confidence: 65
Support Request: 0
needs triage Enhancement to check available storage space before container creation to prevent build failures. Currently under discussion regarding implementation scope and feasibility, awaiting formal maintainer assessment.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.