Multipass build provider does not support resource settings core core22 snaps

Bug #2008003 reported by Justin Cattle
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Confirmed
Undecided
Unassigned

Bug Description

Hi,

As per the docs, you can set custom resource usage for the Multipass instance using environment variables: https://snapcraft.io/docs/build-providers

$ export SNAPCRAFT_BUILD_ENVIRONMENT_CPU=8
$ export SNAPCRAFT_BUILD_ENVIRONMENT_MEMORY=16G

It's noted in the docs that this is not possible for core22 snaps, which means that it's a breaking change for core22.

Ideally, this still would be supported in some way for core22 snaps.

This was discussed a little here: https://forum.snapcraft.io/t/build-providers/4157/34?u=jocado

Cheers,
Just

Tags: craft-1847
Revision history for this message
Callahan Kovacs (mr-cal) wrote :

Related issue with the envvar SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT: https://github.com/canonical/craft-providers/issues/212

I'm wondering if there should be an interaction between SNAPCRAFT_BUILD_ENVIRONMENT_CPU and SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT. I can't think of a normal scenario where these 2 env vars would be different.

Revision history for this message
Callahan Kovacs (mr-cal) wrote :

Confirmed that this is not currently supported in core22.

Changed in snapcraft:
status: New → Confirmed
Revision history for this message
Pirouette Cacahuète (lissyx) wrote :

Is this still not working ? Building Firefox with only 2 CPUs is suboptimal.

Callahan Kovacs (mr-cal)
tags: added: craft-1847
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.