← Back to issue list

Enable optimizations by default

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1688703
Type
issue
State
open
Author
~eyelash
Labels
plugin snap-docs
Created
Updated
Closed

Current evaluation

Request (2018) to make snapcraft plugins consistently enable optimizations by default, or at least document each plugin's default optimization behavior. No maintainer response; plugins have since been refactored into craft-parts.

Suggested action: needs triage

Reason: The issue is from 2018 with zero comments and no maintainer acknowledgement, so it has never been triaged. The underlying concern (inconsistent optimization defaults across plugins) is still partially valid: the current craft-parts cmake and meson plugins do not set a default build type, so users still must pass -DCMAKE_BUILD_TYPE or -Dbuildtype themselves. However, the plugin architecture has been substantially reworked since the issue was filed, so a maintainer should reassess whether the request is still applicable before acting.

Impact: 35 Quick Win: 21.0 Staleness: 95 Complexity: 40 Confidence: 70 Support Request: 20

Issue body

There is some inconsistency between different snapcraft plugins. Some plugins (at least rust) will create an optimized release build but others (at least cmake and meson) create an unoptimized debug build. As a user of snapcraft without looking at the plugin source code I don't know whether a plugin will create a release or debug build, so I propose to enable optimizations by default for every plugin or at least mention in the plugin documentation whether optimizations are turned on or off by default and how to turn them on.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 35
Quick Win: 21.0
Staleness: 95
Complexity: 40
Confidence: 70
Support Request: 20
needs triage Request (2018) to make snapcraft plugins consistently enable optimizations by default, or at least document each plugin's default optimization behavior. No maintainer response; plugins have since been refactored into craft-parts.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 85
Support Request: 10
close stale Proposes enabling build optimizations by default across all snapcraft plugins or documenting their default behavior due to current inconsistencies. Unaddressed for over 9 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 15
Confidence: 85
Support Request: 20
close stale Inconsistency in snapcraft plugin optimization levels. Proposes enabling optimizations by default or documenting defaults. Untriaged, inactive for over four years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 20
Confidence: 85
Support Request: 10
close stale Inconsistency in snapcraft plugins regarding default optimization levels. Proposes enabling optimizations by default or documenting plugin defaults. Unaddressed for over 4 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 40
Confidence: 90
Support Request: 10
close stale Proposes enabling build optimizations by default across snapcraft plugins to resolve inconsistencies between rust, cmake, and meson. Currently open, unassigned, and inactive for over four years. Awaiting triage or documentation updates.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.