kubernetes / enhancements

Enhancements tracking repo for Kubernetes
Apache License 2.0
3.4k stars 1.47k forks source link

Version KEP template and check for latest version in PR jobs #3851

Open marosset opened 1 year ago

marosset commented 1 year ago

What would you like to be added:

We should version the README.md KEP template file and ensure that PRs that update the README files under https://github.com/kubernetes/enhancements/tree/master/keps have been updated to use the latest template.

Why is this needed:

Occasionally there are updates to the KEP templates in between releases and when the templates change between enhancement stages it:

https://kubernetes.slack.com/archives/CPNHUMN74/p1675716127904979 This also happened between v1.24 and v1.25 when the Test Plan section of the KEP template was updated.

Proposal

We could also consider adding logic to the PR job to ensure the ToC / basic structure of the README.md files containers required sections.

jeremyrickard commented 1 year ago

/sig architecture

jeremyrickard commented 1 year ago

/area enhancements

marosset commented 1 year ago

I added this to the SIG-arch enhancement sub project meeting on Feb 16 at 10:00 PST https://bit.ly/k8s-enhancements-agenda

marosset commented 1 year ago

@kikisdeliveryservice - have any other discussions happened since the sig-arch meeting on Feb 16? This issue came up again at the 1.27 mid-cycle retrospective

k8s-triage-robot commented 8 months ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

katcosgrove commented 7 months ago

This has come up again in the v1.30 cycle. Have we had any further discussion on the topic?

/remove-lifecycle stale

marosset commented 7 months ago

This has come up again in the v1.30 cycle. Have we had any further discussion on the topic?

/remove-lifecycle stale

I still this could add a lot of value and be helpful for the release team. I'm not sure who needs to give a go / no-go for the idea but can help out once we get that!

sreeram-venkitesh commented 5 months ago

Hi folks, I've been talking with @kikisdeliveryservice over the past couple of SIG Architecture enhancements subproject meetings about this issue. I have a POC for a script which compares a KEP with the KEP template file and lists the sections and the PRR questions which are present in the template but missing in the KEP readme. The idea I had was that enhancements shadows and production readinesss reviewers can run this locally to check if a KEP is up to date with the latest KEP template file in k/enhancements, like is it missing any questions from the PRR questionnaire etc. and the same script can be run as a CI job when new PRs are made updating KEP readme/kep.yaml files in k/enhancements. We don't need to introduce the KEP version in order to test this since the KEP template file can be the source of truth for now.

Apologies for not making it clear that I had started working on this issue! I've been working with the release enhancements team for the past two releases and wanted to try bring some changes to the process since I'm leading enhancements for v1.31!

sreeram-venkitesh commented 4 months ago

Hi folks, I've made some progress with writing a script similar to the CI jobs we have in k/enhancements to compare a KEP's readme file with the template. I have a few questions regarding where to take it from here:

I've made a video where I show the script in action, but I'd say this is still very early stage and it needs more work for us to be able to run it along with other CI jobs. I'd love to hear your feedback on this!

Demo video

k8s-triage-robot commented 1 month ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

sreeram-venkitesh commented 1 month ago

/remove-lifecycle stale