Error messages when running scriplets make debugging failures difficult
Metadata
Current evaluation
Scriptlet failures reported unrelated line numbers and untransformed errors. Fixed via craft-parts#966 (49cde073) and #897 (5bbd983e), shipped in Snapcraft 8.6; author confirmed closure in Feb 2025.
Resolution: closed resolved
Reason: Maintainer bepri closed the issue pointing to craft-parts PR #966 (commit 49cde073, capturing scriptlet errors as ScriptletRunError) and PR #897 (commit 5bbd983e, splitting stderr for better error presentation), both of which landed in Snapcraft 8.6. Reporter dilyn-corner agreed the work resolved it.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Scriptlet failures reported unrelated line numbers and untransformed errors. Fixed via craft-parts#966 (49cde073) and #897 (5bbd983e), shipped in Snapcraft 8.6; author confirmed closure in Feb 2025. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by craft-parts PRs #897 and #966, which improved scriptlet error reporting and shipped in Snapcraft 8.6. | |
| qwen/qwen3.6-35b-a3b | — | — | Resolved via craft-parts PRs #966 and #897, included in Snapcraft 8.6. Error reporting now accurately traces scriplet failures to the original YAML, replacing confusing generated script tracebacks with clear, actionable messages. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed. Improved scriplet error reporting was implemented in craft-parts PRs #966 and #897, resolving the confusing failure messages. The fix was released in Snapcraft 8.6. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed via craft-parts PRs #966 and #897, released in Snapcraft 8.6. Error reporting now accurately points to the failing scriplet line in the original YAML, resolving the debugging difficulty. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Fixed via craft-parts PRs #966 and #897, released in Snapcraft 8.6. Scriplet error messages now accurately reference the original script lines, resolving debugging difficulties. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/craft-parts#966
(confidence 95%)
Merged PR that replaced named pipes with Unix sockets so scriptlet errors are captured and surfaced properly
-
Likely Fixed By:
canonical/craft-parts#897
(confidence 93%)
Merged PR splitting stderr for better error presentation of scriptlet output
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1466 scriptlets erroring behavior | snapcraft | closed | Fixed in snapcraft#1545 (commit 3a18cc87a): scriptlets now fail on any command error, not only the final command. | |
| #5203 feat(parts): capture error message from scriptlets | snapcraft | closed | Closed unmerged; commit 1b44db714 later made the equivalent Craft Parts 2.1.0 bump, delivering scriptlet stderr capture through canonical/craft-parts#897. |