← Back to issue list

build providers: allow setting ram and disk size

View original Github issue

Metadata

Project
snapcraft
Number
#2260
Type
pull request
State
merged
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR snapcraft#2260 (commit 8d9cc5c5a): added Multipass-only build provider RAM/disk size overrides via two env vars, addressing LP bug #1791661. Provider logic later moved to craft-providers.

Resolution: closed resolved

Reason: The pull request was approved by two maintainer reviewers and merged to master as commit 8d9cc5c5a ("build providers: allow setting ram and disk size (#2260)"). It implements the requested feature for the Multipass build provider, leaving the generic provider base class untouched for future container-based providers, and closes LP bug #1791661.

Evaluated by: mr-cal-bot

No scores available.

Issue body

We do this only for multipass given that we want to leave the general build provider class available as a base to add support for container based build providers. Two environment variables are added to be able to override the default memory and disk values. LP: #1791661 Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com> - [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)? - [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)? - [x] Have you successfully run `./runtests.sh static`? - [x] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR snapcraft#2260 (commit 8d9cc5c5a): added Multipass-only build provider RAM/disk size overrides via two env vars, addressing LP bug #1791661. Provider logic later moved to craft-providers.
stealth/space-bunny-alpha — closed resolved Merged in snapcraft#2260 (commit 8d9cc5c5a), adding Multipass-specific environment overrides for build-provider RAM and disk size; addresses LP #1791661.
qwen/qwen3.6-35b-a3b — — Merged. Introduces environment variables to override default RAM and disk size for the Multipass build provider. Approved by two reviewers, passed CI checks, and resolved Launchpad bug #1791661.
qwen3.6-35b-a3b-mtp-q6 — — Merged. Adds environment variables to override default RAM and disk sizes for the Multipass build provider while keeping the base class available for future container providers. Addresses LP #1791661.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft (launchpad)#1791661 (confidence 55%)

    Body cites 'LP: #1791661' as the Launchpad bug this implements; the LP entry was later migrated to the snapcraft issue tracker.

  • Related To: craft-parts (confidence 40%)

    Build provider logic, including the Multipass memory/disk sizing added here, was later extracted into craft-providers and consumed by snapcraft/providers.py.

Related issues

Issue Project State Summary Similarity
#2008003 Multipass build provider does not support resource settings core core22 snaps snapcraft (launchpad) open Multipass builds of core22+ snaps ignore SNAPCRAFT_BUILD_ENVIRONMENT_CPU/MEMORY; provider hardcodes 2 CPUs/2GB RAM. Maintainer confirmed unsupported; fix tracked upstream in craft-providers#531.
74%
#2225 build providers: environment setup for projects snapcraft merged Merged as snapcraft#2225 in commit 16ef9d3cf, adding Base Provider cloud-data setup, re-execution-aware project loading, and Multipass integration.
73%