apache / couchdb-helm

Apache CouchDB Helm Chart
https://couchdb.apache.org/
Apache License 2.0
49 stars 64 forks source link

Create resources for GitHub release backfill #79

Closed colearendt closed 2 years ago

colearendt commented 2 years ago

What this PR does / why we need it:

Create the scripts and tooling to support creating GitHub releases with the appropriate chart data, as discussed in #62 . I tested this on my fork (you can see the releases there). It does nothing on its own, and does not help create the index.yaml or the repo proper. However, it does enable creating the backfill of GitHub Releases to build an index.yaml with later.

This branch is not very appropriately named. I will follow up with a PR that adds the CI elements to maintain this going forwards. This PR is only for backfill and should not change state for #62.

Everything it does should be reversible (i.e. deleting releases in the GitHub UI), although to delete tags, you have to do a bit on the command line

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

Special notes for your reviewer:

Checklist

(removed because this does not change chart data)

willholley commented 2 years ago

@colearendt I backfilled the releases - thanks for the scripts. However, in doing so we lose the timestamp history for the releases, which I'd like to maintain (particularly in the index yaml). I think this is fixable by setting GIT_COMMITTER_DATE before we create the release tags but I'll need to delete and recreate the releases.

I also wonder whether we can generate more useful release notes / change logs for each release but perhaps that's a distinct PR.

willholley commented 2 years ago

I fixed the date of the tags but couldn't find a way to set the release date so I think we'll have to leave it

colearendt commented 2 years ago

Ahh unfortunate. Good catch! Apparently my response to this never got posted. My search turned up empty too 😞

colearendt commented 2 years ago

It looks like the issue with the timestamp:

I'm still hopeful for the issue here, but as you said, we may just need to sit on what we have for now 😞

colearendt commented 2 years ago

Nice!! Well done - sorry for missing that! I agree that time stamp preservation would be preferable. I will take a look!

As for release notes, there is a release-notes-file arg to the chart-releaser binary. Is that something you would want to maintain directly, or parse it from a NEWS file or something? And just for go forward releases, or is there something you want to use for the backfill?

On Jun 17, 2022, at 9:07 AM, Will Holley @.***> wrote:



@colearendthttps://github.com/colearendt I backfilled the releases - thanks for the scripts. However, in doing so we lose the timestamp history for the releases, which I'd like to maintain (particularly in the index yaml). I think this is fixable by setting GIT_COMMITTER_DATE before we create the release tags but I'll need to delete and recreate the releases.

I also wonder whether we can generate more useful release notes / change logs for each release but perhaps that's a distinct PR.

— Reply to this email directly, view it on GitHubhttps://github.com/apache/couchdb-helm/pull/79#issuecomment-1158853496, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFQBVVV2GGPGNFJQFKQT26TVPR2BFANCNFSM5XFSHEDQ. You are receiving this because you were mentioned.Message ID: @.***>