-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Release note tool should not ignore squashed PRs #9249
Comments
I think this would be a major improvement to devex if we can make it work. Maybe worth including in the improvements list for 1.6 |
/triage accepted Thanks, this is a great improvement, I personally was not aware of this limitation. Adding it to 1.6 improvements tasks |
cc @kubernetes-sigs/cluster-api-release-team |
/assign |
This PR is related to the issue: #9163 The tool now outputs a warning when it can't find the correct title for a commit to put in the notes. We haven't seen this in the CAPI repo, we noticed the issue in the CAPV repo initially. |
Btw the case I'm referencing is not the one where a maintainer manually merges a PR. I'm referring to the situation we end up with if we use the Prow squash label ( We don't have this case today because we know about the limitation of the release notes tool and thus don't use this label. We always ask folks to squash before we merge instead which is super annoying |
@sbueringer Or instead maybe, could you point us to a problematic commit so we can debug the tool against it? |
@g-gaston There's info on this PR: #9163 If you run the tool as it's currently configured you should get warnings for these commits. I believe this commit: kubernetes-sigs/cluster-api-provider-vsphere#1819 is the example we have of |
I'm not sure if that CAPV PR is a good example. According to GitHub the squash label was never applied. I would suggest to just merge a not-super-important-for-release-notes PR in core CAPI with the squash method and then check if it shows up in the generated release notes (I'm pretty sure it won't) |
Should be possible to test this on a fork which might be better. |
If you have a way to run Prow on a fork - yup :) |
We set up a new prow instance for internal use recently and I can test it :). Can you give an example workflow, of what needs to be exactly tested? |
Just remembered. We had a few squashed PRs in controller-runtime. If you run the release note tool on main with previous tag v0.15 there should be a few. e.g.: kubernetes-sigs/controller-runtime#2406 Workflow:
|
Based on the agreement during the call triaging #9104, setting the priority to: /priority important-longterm |
Note: the PR #9263 should be usable for testing this in CAPI once it's merged. I've added two commits and the label for tide to squash it. |
I can reproduce it with #9263, now onto fixing :D Sample output:
|
This is caused by cluster-api/hack/tools/release/notes.go Line 230 in a0dc548
|
The kubernetes release tool takes care of this case by considering all commits and identifying a PR from the commit message https://github.com/kubernetes/release/blob/7cac31e9ed4b8afe87af6d34a504f8ee23477ab8/pkg/notes/notes.go#L955-L980 |
Can we do the same? |
Yeah, definitely - I briefly looked into whether it would be easier to switch to the kubernetes release tool, but it doesn't seem like it, so I can re-implement this in our own tooling for now |
I would definitely appreciate the improvement. While core CAPI might move to the upstream tool, I don't know what other providers will do. This tool is currently used by core CAPI and 5 other providers (https://cs.k8s.io/?q=sigs.k8s.io%2Fcluster-api%2Fhack%2Ftools%2Frelease&i=nope&files=&excludeFiles=&repos=). So I can imagine that even if the release team doesn't want to invest in this tool anymore we might still keep it in core CAPI for usage by providers (the only alternative would be to fork it into each provider, which doesn't seem like a great option, or everyone has to move to the upstream tool or something in between) |
I vote to make this fix to our tool as well |
@mjlshen Hi 👋🏼 Just reaching out to know if there are updates on this issue and anything I can help with to move forward? Thanks! |
Hi @furkatgofurov7 - unfortunately no real updates to share. I am working on adding the fix to our tool though and just have been delayed due to time constraints and have been putting this off... I will commit to having a PR to share by next Wednesday |
@mjlshen hey, perhaps I missed it, did you have some time to open a PR 🙂 |
/close |
@g-gaston: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The release note tool has the limitation that it ignores squashed PRs, which is why we always have to ask contributors to squash their commits before we can merge.
It would be nice to take a closer look if there is a way to get rid of this limitation.
I would avoid a lot of toil that we have when we have to ask for squashes.
To be clear, we could then use the
tide/merge-method-squash
label and tide would squash for us. Today this is not really possible as the PR then would not show up in the release notes.The text was updated successfully, but these errors were encountered: