Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve and clarify release-notes tool usage #9556

Closed
cahillsf opened this issue Oct 13, 2023 · 7 comments · Fixed by #9573
Closed

Improve and clarify release-notes tool usage #9556

cahillsf opened this issue Oct 13, 2023 · 7 comments · Fixed by #9573
Assignees
Labels
area/release Issues or PRs related to releasing triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@cahillsf
Copy link
Member

Part of Improvement tasks for v1.6 release cycle #9104

Update documentation to build release notes tool from main before generating notes. We don't want to use go run anymore. Setup make target and ensuring the same binary is run on each release branch.

waiting for a bit more clarity/context from @g-gaston then will begin work here

/area release

@k8s-ci-robot k8s-ci-robot added area/release Issues or PRs related to releasing needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Oct 13, 2023
@furkatgofurov7
Copy link
Member

/triage accepted

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Oct 16, 2023
@g-gaston
Copy link
Contributor

I believe the original intent was to document how to build the release notes tool to a binary so, when doing multiple patch releases on the same day, we always used the same version of the tool (the one from main) for all of them. This is because generating the notes requires switching branches so, if the tool is run with go run, it will use the version of the code checkout in the current branch. If this branch is a release branch, it might not be up to date.

TBH I think this is already documented here.

Maybe we can add a make target and replace that go build in the docs :)

Opinions?

@furkatgofurov7
Copy link
Member

furkatgofurov7 commented Oct 17, 2023

As I already guessed in #9104 (comment), it makes sense to me to use the tool built from the main branch for all releases we are cutting the same day.

Maybe we can add a make target and replace that go build in the docs :)

Fine with me to have one more Makefile target.

@cahillsf
Copy link
Member Author

cool, yeah that makes sense to me!

@cahillsf
Copy link
Member Author

one clarification here @g-gaston, is the root problem that we don't want to cherry-pick all changes to the release notes tool to the release branches? that is why the tool should be built from main?

asking because it looks like there is already a make target that has some logic for retrieving the envvars that are being manually set in the current doc

@g-gaston
Copy link
Contributor

one clarification here @g-gaston, is the root problem that we don't want to cherry-pick all changes to the release notes tool to the release branches? that is why the tool should be built from main?

Yes, you are 100% correct, @cahillsf. We iterate quite frequently on this tool and we wanted to avoid the churn of having to backport it to two release branches every time we make a change.

asking because it looks like there is already a make target that has some logic for retrieving the envvars that are being manually set in the current doc

I'll leave it up to you, but given that we don't currently use that target (and in fact we don't recommend it), I would take this as an opportunity to clean it up :)

@furkatgofurov7
Copy link
Member

/assign @cahillsf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/release Issues or PRs related to releasing triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
Development

Successfully merging a pull request may close this issue.

4 participants