build providers: allow setting ram and disk size
Metadata
Current evaluation
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.
Suggested action: —
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 |
|---|---|---|---|---|
| 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. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Introduces environment variables to override default RAM and disk sizes for the Multipass build provider while keeping the base class extensible for future container providers. Resolves LP #1791661. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2225 build providers: environment setup for projects | snapcraft | merged | Merged. Adds a cloud data generator to the Base Provider for environment setup and updates project loading logic for re-execution mode. Integrates changes into the multipass provider. Resolves Launchpad issues #1782780 and #1782782. |