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

🌱 hack: add support for date ranges to notes.go script #8094

Conversation

oscr
Copy link
Contributor

@oscr oscr commented Feb 12, 2023

What this PR does / why we need it:

This is useful for the comms team when creating the weekly updates for the slack channel. Example invocation and output:

$ go run hack/tools/release/notes.go --since 2023-02-06 --until 2023-02-12
Changes since 2023-02-06 - 2023-02-12
---
## :warning: Breaking Changes
- Stop supporting CRDs with invalid names (#8041)

## :sparkles: New Features
- Add discoverVariables runtime hook to ClusterClass reconcile loop (#8006)
- Update coredns corefile migration to v1.0.19 (#8074)

## :bug: Bug Fixes
- uplift helm dependency (#8089)
- KCP: Allow unsetting fields if their child fields are mutable (#8037)
- Added nodeVolumeDetachTimeout to CP machine (#8066)
- ClusterCacheTracker: fix panic in error creation (#8062)

## :seedling: Others
- Add ClusterClass generation check to Cluster Topology reconciler (#8023)
- MD: improve replica defaulting for autoscaler (#7990)
- Add clusterclass validation to topology reconciler (#7954)
- ClusterClass: catch panics when applying patches (#8067)
- Bump golangci-lint (v1.51.1) and enable some ginkgolinter checks (#8058)
- test/e2e use informer to stream pod logs (#7935)

:book: Additionally, there have been 1 contributions to our documentation and book. (#8079) 


_Thanks to all our contributors!_ 😊

cc @joekr @sayantani11 @VibhorChinda

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 12, 2023
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Feb 12, 2023
@oscr oscr force-pushed the release-notes-add-weekly-update-support branch from a10e0a2 to 409ec37 Compare February 12, 2023 23:13
@joekr
Copy link
Member

joekr commented Feb 13, 2023

From the above output Changes since 0x4d0580 should that be a date in the format yyyy-mm-dd?

@oscr
Copy link
Contributor Author

oscr commented Feb 13, 2023

From the above output Changes since 0x4d0580 should that be a date in the format yyyy-mm-dd?

@joekr Thank you for pointing that out. It's fixed and description is updated :)

@oscr
Copy link
Contributor Author

oscr commented Feb 13, 2023

I noticed the count was different from when checking (GitHub prs](https://github.com/kubernetes-sigs/cluster-api/pulls?q=is%3Apr+is%3Aclosed+milestone%3Av1.4+closed%3A2023-02-06..2023-02-12). It seems like there is a small gotcha here with until doesn't include the last date. So it needs to be run go run hack/tools/release/notes.go --since 2023-02-06 --until 2023-02-13 right now to give the same result.

@joekr
Copy link
Member

joekr commented Feb 13, 2023

So it needs to be run go run hack/tools/release/notes.go --since 2023-02-06 --until 2023-02-13 right now to give the same result.

If that is the case what do you think about updating the flag.string or at least an comment to call this out?

@oscr oscr force-pushed the release-notes-add-weekly-update-support branch from 409ec37 to bae0931 Compare February 13, 2023 16:49
@oscr
Copy link
Contributor Author

oscr commented Feb 13, 2023

Great suggestion @joekr! Added.

@oscr oscr force-pushed the release-notes-add-weekly-update-support branch from bae0931 to 49d64d4 Compare February 13, 2023 17:24
@oscr
Copy link
Contributor Author

oscr commented Feb 13, 2023

/retest

@sbueringer
Copy link
Member

Thx!

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 14, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: c6d01b0b945e18107cac495d46f29edc33d7cf17

hack/tools/release/notes.go Outdated Show resolved Hide resolved
hack/tools/release/notes.go Show resolved Hide resolved
@oscr oscr force-pushed the release-notes-add-weekly-update-support branch from 49d64d4 to ddb4194 Compare February 18, 2023 10:36
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 18, 2023
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 18, 2023
@oscr oscr force-pushed the release-notes-add-weekly-update-support branch 2 times, most recently from db2e067 to b88209b Compare February 18, 2023 21:14
@oscr oscr requested review from richardcase and removed request for fabriziopandini February 23, 2023 11:10
@oscr
Copy link
Contributor Author

oscr commented Feb 23, 2023

/retest

@oscr oscr force-pushed the release-notes-add-weekly-update-support branch from b88209b to 942eb3f Compare February 23, 2023 12:37
@richardcase
Copy link
Member

I'm not overly keen on exposing the same names as git (i.e. since/until) and think something else like from/to is more intuitive. But thats a personal preference only.

I have run this locally with various args and it works as expected. From my side:

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 23, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 130942ab332db480e174814e25f91e8254bf0064

Copy link
Member

@sbueringer sbueringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

last nit from my side

hack/tools/release/notes.go Outdated Show resolved Hide resolved
@oscr oscr force-pushed the release-notes-add-weekly-update-support branch from 942eb3f to 446ebd4 Compare February 24, 2023 09:14
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 24, 2023
@sbueringer
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 24, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 9b104c9cbbdca8703c72d14b39911c9eeb48fa72

@oscr
Copy link
Contributor Author

oscr commented Feb 24, 2023

I'm not overly keen on exposing the same names as git (i.e. since/until) and think something else like from/to is more intuitive. But thats a personal preference only.

@richardcase I appreciate this feedback and I kind of agree with you. From a user perspective it makes a lot of sense to have from/to and I generally prefer it. The question is how "thin" this script should be. I tried to keep it as a minimal extension of git and wanted to avoid touching the existing from flag. But maybe you are right about we should stop exposing git names. There will be more changes to the script in the near future by the comms team and I will keep this in mind.

@richardcase
Copy link
Member

@oscr - that all sounds good to me 👍

Copy link
Contributor

@killianmuldoon killianmuldoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit on the comments.

hack/tools/release/notes.go Outdated Show resolved Hide resolved
hack/tools/release/notes.go Outdated Show resolved Hide resolved
This is useful for the comms team when creating the weekly updates for
the slack channel. Example invocation would be:
`go run hack/tools/release/notes.go --since 2023-02-06 --until
2023-02-12`
@oscr oscr force-pushed the release-notes-add-weekly-update-support branch from 446ebd4 to 6d80352 Compare February 27, 2023 11:20
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 27, 2023
Copy link
Contributor

@killianmuldoon killianmuldoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 27, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: a29ca3c3e440d25dc78b43b2497eb73f42ceab79

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: killianmuldoon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 27, 2023
@k8s-ci-robot k8s-ci-robot merged commit 3cfc921 into kubernetes-sigs:main Feb 27, 2023
@k8s-ci-robot k8s-ci-robot added this to the v1.4 milestone Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants