Architecture field in .rock/metadata.yaml is serialized incorrectly
Metadata
Current evaluation
Fixed in canonical/rockcraft#1014 (commit e5ee496e) by converting architecture to a string before metadata serialization; released in Rockcraft 1.16.0.
Resolution: closed resolved
Reason: Merged PR canonical/rockcraft#1014 in commit e5ee496e explicitly casts the architecture value to a string, preventing Python-specific YAML serialization. The Rockcraft 1.16.0 release notes list #992 as a resolved bug.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### Bug Description
The architecture field in the .rock/metadata.yaml under the rock metadata layer is being serialized incorrectly:
```
architecture: !!python/object/apply:craft_platforms._architectures.DebianArchitecture
- amd64
base: bare
base-digest: e7c9bd1ccd1407f5eaf349b83d9cce7fb4837b5b5abd9e35218bf408e4cab14b
created: '2025-10-06T13:31:44.633401+00:00'
name: moaaz-bld-rock1
summary: A summary of your Go application
title: moaaz-bld-rock1
version: '0.2'
```
I would expect the result to just be `architecture: amd64`, which was the case in some previous rockcraft version.
### To Reproduce
Run rockcraft pack
### Environment
Ubuntu 24.04 LTS, AMD64
### rockcraft.yaml
```yaml
name: moaaz-bld-rock1
base: bare
build-base: ubuntu@24.04
version: '0.2'
summary: A summary of your Go application
description: Rock with fake bld part
platforms:
amd64:
parts:
fake-bld-part:
plugin: dump
source: bld:starcraft-test
source-channel: latest/edge
```
### Relevant log output
```shell
None
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed in canonical/rockcraft#1014 (commit e5ee496e) by converting architecture to a string before metadata serialization; released in Rockcraft 1.16.0. | |
| stealth/space-bunny-alpha | — | closed stale | Closed after triage and sync to internal ticket ROCKCRAFT-271; no public fix, merge, or resolution was recorded. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed after triage and sync to Jira ticket ROCKCRAFT-271. No fix, merge, or resolution details were provided. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without a documented fix. The report was triaged and synced to Jira (ROCKCRAFT-271), but no resolution or merge details were provided. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution or fix. The report was triaged and synced to internal Jira ticket ROCKCRAFT-271, but no code changes or merges were provided to address the incorrect YAML architecture serialization. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed after triaging and syncing to Jira (ROCKCRAFT-271). The architecture field serialization bug was acknowledged, but no fix or resolution was documented in the thread. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/rockcraft#1014
(confidence 100%)
Commit e5ee496e implements the architecture serialization fix and is identified as PR #1014.
Related issues
No related issues found above the similarity threshold.