automated charm builds do not automatically associate oci-image resources when releasing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
High
|
Unassigned | ||
Snap Store Server |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I've been experimenting with the automated charm build system today. I was interested to see how it handled the association of oci-images with release.
Taking the build: https:/
This successfully built the charm, and released it to 'latest/edge', but the release did not have any oci-image resources associated with it. Due to the charm in question being for Kubernetes, this made the charm un-deployable.
Given that charm releases and oci-image resources have separate revisions, and likely release cycles, might it be sensible to attach the latest revision of each resource to any automated releases until we have a mechanism to be more specific when requesting builds?
For reference, once the charm build above succeeded, I was able to fix the 'latest/edge' channel by re-releasing with resources attached:
charmcraft release jnsgruk-
I'm a little wary about having to call out to Charmhub for this, and we'd have to be careful about edge cases such as when the set of resources attached to a charm changes, but it sounds like this may be the simplest option for now.