Closed mvlassis closed 2 weeks ago
Removing juju-bundle
has been mentioned for a while now (#23) but nobody has actually implemented it.
I am +1 for removing juju-bundle, but I'd also have designed upload-charm
differently. the syntax for uploading charms and bundles is identical - I don't know why we need separate actions for them
the syntax for uploading charms and bundles is identical - I don't know why we need separate actions for them
From what I remember, when we upload a charm, we 're also handling uploading resources etc which is not the case for a bundle. Maybe, we could have designed an upload
action that would handle both cases, but I think it would still need to have different cases for a bundle and a charm.
Closed by #151.
Bug Description
The issue has occurred in the
bundle-kubeflow
repository and documented in this issue.I have tried to trace the problem in this comment.
The gist is that the action calls the
juju-bundle
executable, which in turn calls theupload_charmhub
function from thejuju-rs
Rust interface, found here. The interface callscharmcraft pack
and tries to capture the output between the first 2 quotes, as seen in this snippet. I assume that the issue is because and thecharmcraft
executable now doesn't add single quotes to the output, andjuju-rs
hasn't been updated to reflect the change.To Reproduce
Trigger the release-bundle-to-charmhub.yaml action from the bundle-kubeflow repo. This in turns calls the
upload-bundle
action from themain
branch in this repository.Environment
Branch:
charming-actions/main
Relevant log output
Additional context
Since this is the only action that uses
juju-bundle
, and both thejuju-bundle
executable and thejuju-rs
interface hasn't been updated in a relatively long time, I suggest we don't usejuju-bundle
and try to implement the logic from the action itself.