← Back to issue list

Consider capturing all potentially invalid stage-packages before bailing

View original Github issue

Metadata

Project
craft-parts
Number
#196
Type
issue
State
open
Author
sergiusens
Labels
Created
Updated
Closed

Current evaluation

Request to validate all stage-packages entries and report all invalid ones instead of bailing on the first. Code still raises PackageNotFound on first missing package in apt_cache.mark_packages. No fix found in commit history.

Suggested action: keep open

Reason: The issue was filed by a maintainer (sergiusens) and synced to an internal Jira ticket (CRAFT-2967), indicating it was acknowledged. However, no fix has been implemented — apt_cache.mark_packages still raises PackageNotFound on the first missing package (line 317), and part_handler.py still catches the singular error. The issue is a valid improvement request with no recent activity (last activity 538 days ago) but is not stale in the sense of being irrelevant; the code path is unchanged.

Impact: 35 Quick Win: 21.0 Staleness: 75 Complexity: 40 Confidence: 70 Support Request: 0

Issue body

When an invalid stage-packages entry is set, craft-parts will exit as soon as the first invalid entry is found. It would be better if we validate the entire list and return all invalid packages instead to make iteration faster.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 35
Quick Win: 21.0
Staleness: 75
Complexity: 40
Confidence: 70
Support Request: 0
keep open Request to validate all stage-packages entries and report all invalid ones instead of bailing on the first. Code still raises PackageNotFound on first missing package in apt_cache.mark_packages. No fix found in commit history.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 20
Confidence: 90
Support Request: 0
close stale Enhancement request to validate all stage-packages at once instead of failing on the first invalid one, improving developer iteration speed. Currently inactive with no maintainer follow-up since May 2024.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 20
Confidence: 80
Support Request: 0
needs triage Proposes collecting all invalid stage-packages during validation instead of failing on the first error, to speed up iteration. Currently unlabelled and inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 88
Complexity: 20
Confidence: 80
Support Request: 5
close stale Proposes updating craft-parts to validate the full stage-packages list and return all invalid entries at once, instead of failing on the first error. Issue remains open with no recent developer engagement since Jira sync.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.