canonical / charmcraft

Collaborate, build and publish charmed operators for Kubernetes, Linux and Windows.
Apache License 2.0
66 stars 69 forks source link

`create-track` command #1901

Open lengau opened 2 weeks ago

lengau commented 2 weeks ago

What needs to get done

Allow the user to create a track on Charmhub that meets the guardrails using this endpoint:

https://api.staging.charmhub.io/docs/default.html#create_tracks

Why it needs to get done

User request: https://matrix.to/#/!GGqzbFAUQprdPgYYCM:ubuntu.com/$2rTS5bUb88C6KMC7npj-IOsifspe-scjNhCJKuYfKnA

syncronize-issues-to-jira[bot] commented 2 weeks ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3387.

This message was autogenerated

addyess commented 2 weeks ago

Thanks @lengau, some other details here.

It would be super nice if this could work in snapcraft too.

And even MORE exciting would be if i could use create tracks on a WHOLE BLOCK of things at once:

snapcraft create-track snap-a,snap-b,snap-c, ...snap-z --track 2.0
charmcraft create-track charm-a,charm-b,charm-c, ...charm-z --track 2.0

the current process is defined here https://discourse.charmhub.io/t/how-to-create-a-track-for-your-charm/11102

I'll say the holy grail for this issue would be for the tools to just CREATE ON RELEASE if the track doesn't exist

snapcraft release my-snap 123 2.0/beta,latest/beta
charmcraft release my-charm --revision=123 --channel 2.0/beta --channel latest/beta