Duplicated error message during yaml validation
Metadata
Current evaluation
Fixed duplicated YAML validation errors in snapcore/snapcraft#1347 (commit 9e8e336de) by removing an early exit and consolidating CLI error handling.
Resolution: closed resolved
Reason: Resolved by snapcore/snapcraft#1347, commit 9e8e336de. The change removed an early exit and consolidated CLI error handling so validation failures are reported once.
Evaluated by: mr-cal-bot
No scores available.
Issue body
When an error is found during the yaml validation process, the error message is duplicated. it basically describes the error twice.
Examples:
Issues while validating snapcraft.yaml: The 'parts/httpstat/source' property does not match the required schema: None is not of type 'string'
The 'parts/httpstat/source' property does not match the required schema: None is not of type 'string'
Issues while validating snapcraft.yaml: The 'parts/httpstat/source-type' property does not match the required schema: None is not of type 'string'
The 'parts/httpstat/source-type' property does not match the required schema: None is not of type 'string'
Issues while validating snapcraft.yaml: The 'confinement' property does not match the required schema: 'devmodes' is not one of ['classic', 'devmode', 'strict']
The 'confinement' property does not match the required schema: 'devmodes' is not one of ['classic', 'devmode', 'strict']
Issues while validating snapcraft.yaml: The 'parts/httpstat/source-type' property does not match the required schema: None is not of type 'string'
The 'parts/httpstat/source-type' property does not match the required schema: None is not of type 'string'
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed duplicated YAML validation errors in snapcore/snapcraft#1347 (commit 9e8e336de) by removing an early exit and consolidating CLI error handling. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed duplicated YAML validation output in snapcore/snapcraft#1347 (commit 9e8e336de) by removing an early exit and consolidating CLI error handling. | |
| stealth/space-bunny-alpha | — | closed resolved | Duplicated YAML validation errors were fixed in PR #1347 via commit 9e8e336de, preventing the CLI from emitting the same error twice. | |
| stealth/space-bunny-alpha | — | closed stale | Closed as stale after roughly nine years without a recorded fix; no resolving PR, commit, or superseding issue was found for the duplicated YAML schema validation error. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed. The duplicated YAML validation error messages in the UI were fixed. No pull request or detailed resolution was documented. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed. Duplicate YAML validation error messages appeared in the UI. With zero comments and no follow-up, the report was abandoned or fixed in a later update. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without comment, likely abandoned. The UI incorrectly displayed duplicate YAML validation errors, which were never resolved further due to inactivity. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Abandoned. Duplicate YAML validation error messages in the UI were never addressed or fixed. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcore/snapcraft#1347
(confidence 99%)
The linked PR implemented the deduplication in commit 9e8e336de.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1792049 Uncaught yaml.ParserError | snapcraft (launchpad) | closed | YAML parser tracebacks were fixed by merged snapcore/snapcraft PR #2263 (commit 057f66649), which catches broader YAML exceptions and reports invalid YAML. | |
| #1942217 Please check for duplicated yaml keys | snapcraft (launchpad) | closed | Duplicate snapcraft.yaml keys are now detected; warning support merged in canonical/snapcraft#3518 (5c2a9d2f8), with stricter handling from core22 in Snapcraft 7.0. | |
| #296 Improve snapcraft.yaml validation errors. | snapcraft | merged | Merged in snapcraft#296 via commit 452a91595, improving errors for missing icons, AppArmor/seccomp files, and schema properties; fixes LP #1524663. |