← Back to issue list

override-build exits prematurely, part build succeeds

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2011993
Type
issue
State
open
Author
~awe
Labels
Created
Updated
Closed

Current evaluation

override-build scriptlet exits prematurely but snapcraft considers the build successful, causing snap packing to fail. Untriaged, no maintainer interaction.

Suggested action: needs triage

Reason: The issue has no labels, no maintainer comments, and no assignee after 1267 days. While the reported bug (override-build exiting prematurely without triggering a failure) is a legitimate concern with real impact, it has never been triaged or acknowledged by maintainers. The issue needs initial assessment to determine if it's still reproducible in current snapcraft versions and whether it's been addressed elsewhere.

Impact: 70 Quick Win: 24.5 Staleness: 85 Complexity: 65 Confidence: 60 Support Request: 15

Issue body

I recently worked with a customer to help them enable video accelerated playback on a their device running Ubuntu Core, and one of the changes necessary was to switch from standard Flutter to a fork called Flutter-elinux which provides a new backend which doesn't rely on GTK. I ran into a problem with their snap build which I haven't yet been able to root cause. For the sake of this bug, I'm using the workshops snap maintained by the Ubuntu Desktop team, as it exhibits the same behavior as the customer's snap when I update it to use flutter-elinux. The problem I'm seeing is that when the workshops part runs, the override-build scriptlet exits prematurely, yet snapcraft seems to think the build of the part was successful. This results in the snap build failing because the actual binary 'bin/workshops', isn't found when the snap is packed. Note - the customer found a workaround, namely to run the first flutter-elinux command (e.g. `flutter-elinux precache`) in an override-stage scriptlet in the flutter-git part, however I would still like to figure out why an override-build scriptlet could exit prematurely, but not trigger a build stage failure. Snapcraft version: 7.x Core: 22 Build machine: 22.04 LTS Desktop Extensions: gnome Workshop/flutter-elinux branch that fails: https://github.com/tonyespy/workshops/tree/flutter-elinux Workshop/flutter-elinux branch that works: https://github.com/tonyespy/workshops/tree/flutter-elinux-fix

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 70
Quick Win: 24.5
Staleness: 85
Complexity: 65
Confidence: 60
Support Request: 15
needs triage override-build scriptlet exits prematurely but snapcraft considers the build successful, causing snap packing to fail. Untriaged, no maintainer interaction.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 65
Confidence: 80
Support Request: 10
needs triage Snapcraft override-build exits prematurely without triggering a build failure, causing missing binaries. Currently unlabelled with zero comments, requiring maintainer triage.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 60
Confidence: 90
Support Request: 10
needs triage Snapcraft override-build exits prematurely but reports success, causing missing binaries. Unlabelled, no maintainer response, inactive for over 3 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 65
Confidence: 60
Support Request: 15
needs triage Snapcraft override-build exits prematurely but reports success, causing missing binaries. Untriaged, no maintainer comments, inactive since creation.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 40
Confidence: 85
Support Request: 10
close stale Snapcraft override-build exits prematurely but reports success, causing missing binaries. Unlabelled, inactive for over 3 years, no maintainer response.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1987853 snapcraft terminates override-build script prematurely without error snapcraft (launchpad) open Snapcraft prematurely terminates override-build scripts after core18 to core20 upgrade, with no error output. Untriaged and inactive for over 4 years.
76%
#1973197 snapcraft 7.x not running override-build snapcraft (launchpad) closed snapcraft 7.x failing to execute override-build was closed without a fix or resolution. Zero comments were posted, indicating the report was abandoned.
72%