| name | inference-snap-build-and-test |
| description | Build, install, and runtime-verify an inference snap including engine selection and prompt/API checks. |
| trigger | Keywords like "build check", "pack snap", "install and test", "prompt test", "runtime verification" |
| scope | user |
Inference Snap Build And Test
Purpose
Execute end-to-end verification that the snap builds, installs, starts, and serves prompts correctly.
Host prerequisites (check before building)
snapcraft pack --destructive-mode builds directly on the host, so verify these
first and stop-and-report anything missing rather than silently degrading:
-
OS: Ubuntu matching the snap base (e.g. core24 ⇒ noble 24.04).
-
Tools: snapcraft, snapd active, make, cmake, build-essential,
git, plus smoke-test deps curl, jq, ss (iproute2). Install any missing.
-
Root: --destructive-mode installs build-packages, so run it under sudo.
-
Disk: compute the summed size of the model + all model parts/runtime components
and require that much free space (where copies artifacts), not just the
build dir. A large model can exceed a small container root FS; if so, stop and
report that the root FS must be resized (or relocate snapd storage only with
explicit approval).