allow adding customized label
Metadata
Current evaluation
Feature request to allow users to specify custom OCI labels in rockcraft.yaml. Currently only standard labels (version, title, description, license) are set automatically. No maintainer response after 863 days.
Suggested action: needs triage
Reason: The issue is a well-scoped feature request with a concrete use case (adding custom OCI labels like `com.azure.sonic.manifest`), but it has no labels, no maintainer comments, and no assignee after 863 days. The codebase confirms no `labels` field exists in the Project model (rockcraft/models/project.py lines 426-435 only set standard OCI annotations). It needs maintainer assessment to prioritize and scope the implementation.
Evaluated by: mr-cal-bot
Impact:
60
Quick Win:
34
Complexity:
30
Confidence:
70
Actionability:
80
Issue body
### What needs to get done
We should be able to add a customized label to rockcraft built images.
The label I need to add is a short json string "com.azure.sonic.manifest" as in the following example, which is used to maintain docker startup dependencies, and will be eventually be used by systemd.
(Same thing docker works by using LABEL instruction in Dockerfile or adding the --label flag to a docker build command.)
```
$ sudo skopeo inspect docker-archive:docker-teamd.gz
{
"Digest": "sha256:cb2f3c599f2efcc3de8a2028789aa1dca789c21043496d68806d04c23737e2be",
"RepoTags": [],
"Created": "2024-06-08T06:56:12.6356677Z",
"DockerVersion": "",
"Labels": {
"Tag": "feature_jammy_build.0-d7d4f89ec",
"com.azure.sonic.manifest": "\n{\n \"version\": \"1.0.0\",\n \"package\": {\n \"version\": \"1.0.0\",\n \"depends\": [],\n \"name\": \"teamd\"\n },\n \"service\": {\n \"name\": \"teamd\",\n \"requires\": [],\n \"after\": [],\n \"before\": [],\n \"dependent-of\": [],\n \"asic-service\": true,\n \"host-service\": false,\n \"warm-shutdown\": {\n \"after\": [\"swss\"],\n \"before\": [\"syncd\"]\n },\n \"fast-shutdown\": {\n \"after\": [\"swss\"],\n \"before\": [\"syncd\"]\n },\n \"syslog\": {\n \"support-rate-limit\": true\n }\n },\n \"container\": {\n \"privileged\": false,\n \"volumes\": [],\n \"tmpfs\": []\n },\n \"cli\": {\n \"config\": \"\",\n \"show\": \"\",\n \"clear\": \"\"\n }\n}",
"com.azure.sonic.versions.libsairedis": "1.0.0",
"com.azure.sonic.versions.libswsscommon": "1.0.0",
"org.opencontainers.image.ref.name": "ubuntu",
"org.opencontainers.image.version": "22.04"
},
"Architecture": "amd64",
```
We do have some metadata such as version/title/licenses which are converted to label during rockcraft build phase.
```
dima@colima-ahh /c/h/d/b/sha256 (main) [127]> cat 2c24ed033f0bea871f6930535e2f61789840d254d0be961aa17776d797103f23| jq .
{
"created": "2024-06-07T16:49:32.047857229+09:00",
"architecture": "arm64",
"os": "linux",
"config": {
"Entrypoint": [
"/usr/bin/pebble",
"enter"
],
"Labels": {
"org.opencontainers.image.base.digest": "6c78fe6c70b796b20053f9e161f401ea5f0f075eff7c09d9f491da3cff1a454e",
"org.opencontainers.image.created": "2024-06-07T07:49:48.484220+00:00",
"org.opencontainers.image.licenses": "Apache-2.0",
"org.opencontainers.image.ref.name": "gubernator",
"org.opencontainers.image.title": "gubernator",
"org.opencontainers.image.version": "2.7.5"
}
},
```
### Why it needs to get done
labels are important metadata carried by image, and are widely used.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b |
Impact:
60
Quick Win:
34
Complexity:
30
Confidence:
70
Actionability:
80
|
needs triage | Feature request to allow users to specify custom OCI labels in rockcraft.yaml. Currently only standard labels (version, title, description, license) are set automatically. No maintainer response after 863 days. | |
| stealth/space-bunny-alpha |
Impact:
46
Quick Win:
20
Complexity:
35
Confidence:
91
Actionability:
68
|
needs triage | Custom OCI image labels are still unsupported; the request remains open, unlabelled, and untriaged despite a concrete com.azure.sonic.manifest use case. | |
| qwen/qwen3.6-35b-a3b |
Impact:
35
Quick Win:
16
Complexity:
25
Confidence:
70
Actionability:
60
|
needs triage | Feature request to allow users to add custom OCI labels to rockcraft-built images via rockcraft.yaml configuration. | |
| qwen/qwen3.8-27b |
Impact:
40
Quick Win:
22
Staleness:
85
Complexity:
45
Confidence:
75
Support Request:
20
|
needs triage | Feature request to add user-defined custom OCI labels to rockcraft-built images; untriaged for 810 days with no maintainer engagement, and the project schema still lacks a labels field. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
45
Confidence:
85
Support Request:
10
|
close stale | Feature request to add custom OCI labels to Rockcraft-built images for metadata and dependency management. The issue has been inactive for over two years with no maintainer response or labels. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
55
Confidence:
80
Support Request:
10
|
needs triage | Feature request to allow custom OCI labels in Rockcraft-built images for metadata management. Untriaged, zero maintainer comments, inactive for over two years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
30
Confidence:
80
Support Request:
10
|
close stale | Feature request to allow adding custom OCI labels to rockcraft-built images. Unlabelled, zero maintainer interaction, and inactive for over two years. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1381 Support all pre-defined OCI image annotations | rockcraft | open | Feature request to add support for missing OCI pre-defined annotations (authors, url, documentation, source, revision, vendor, base.name) via new rockcraft.yaml fields. Author labels it a 'nice to have'. |