← Back to issue list

project: early snapcraft.yaml validation

View original Github issue

Metadata

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

Current evaluation

Merged PR #2388 (ba65313cc) adds early snapcraft.yaml validation, preventing invalid Multipass instances and speeding up feedback; fixes LP #1794507.

Resolution: closed resolved

Reason: PR #2388 was merged as commit ba65313cc, adding validation before creating a Multipass instance and delivering faster feedback on invalid project files.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Avoid creating and invalid multipass instance by doing an early validation of snapcraft.yaml. This has the benefit of faster turnaround times too. LP: #1794507 Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com> - [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] 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)? - [ ] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #2388 (ba65313cc) adds early snapcraft.yaml validation, preventing invalid Multipass instances and speeding up feedback; fixes LP #1794507.
stealth/space-bunny-alpha — closed resolved Merged PR #2388 (commit ba65313cc) adds early snapcraft.yaml validation, preventing invalid multipass instances and speeding up build feedback; resolves LP #1794507.
qwen/qwen3.6-35b-a3b — — Merged. Implements early snapcraft.yaml validation to prevent invalid multipass instance creation and reduce build times. Approved by maintainer, passed CI checks, and resolved Launchpad bug #1794507.
qwen3.6-35b-a3b-mtp-q6 — — Merged implementation of early snapcraft.yaml validation to prevent invalid multipass instance creation and improve turnaround times, resolving Launchpad bug #1794507.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#3526 project: validate snapcraft yaml before using it (CRAFT-55) snapcraft closed Merged PR #3526 in commit 38891b17d, validating project YAML in get_project() before extensions or snap metadata consume potentially invalid data.
77%
#1794507 snapcraft fails ugly with multipass when a space is inserted into `name:` field snapcraft (launchpad) closed snapcraft launched Multipass before validating snapcraft.yaml, so a space in `name:` produced an opaque 'Invalid instance name' error. Fixed by merged PR #2388 (commit ba65313cc) adding early snapcraft.yaml validation.
74%
#2258 build providers: snapcraft images for multipass snapcraft merged Merged PR #2258 as commit 5ffefbf96, adding Snapcraft build images for Multipass and a Darwin launch workaround for LP #1791821.
70%