Rework how the release notes labels are handled by the CI#10508
Rework how the release notes labels are handled by the CI#10508frouioui merged 6 commits intovitessio:mainfrom
release notes labels are handled by the CI#10508Conversation
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
…rget Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
release notes labels are handledrelease notes labels are handled by the CI
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
|
@deepthi, we will need to remove the I am not against adding the |
|
Note: once this Pull Request and its backports are merged, we can remove the |
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
deepthi
left a comment
There was a problem hiding this comment.
We also need to edit the Review checklist in this PR.
The section that needs to change is this
Ensure that the Pull Request has the correct `release notes` label. `release notes none` should only be used for PRs that are so trivial that they need not be included.
In fact we need only one label going forward and that is the release notes (needs details), since we plan to change the release notes generation to include all PRs.
My suggestion for how this text should change:
If this is a change that users need to know about, please apply the `release notes (needs details)` label so that merging is blocked unless the summary release notes document is included
| if ! cat ${LABELS_JSON} | jq -r '.[].name ' | grep -q 'Component:' ; then | ||
| echo "Expecting PR to have label 'Component: ...'" | ||
| exit 1 | ||
| fi | ||
| if ! cat ${LABELS_JSON} | jq -r '.[].name ' | grep -q 'Type:' ; then | ||
| echo "Expecting PR to have label 'Type: ...'" | ||
| exit 1 |
There was a problem hiding this comment.
Let us not delete this file. Instead, we can just remove the release notes label checking from here.
It is still important to set Component and Type so that PRs appear in the right section of the changelog.
There was a problem hiding this comment.
My bad, I added it back in the new workflow file to avoid having two workflows that do (almost) the same job
…bels Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
The review checklist is updated accordingly. |
deepthi
left a comment
There was a problem hiding this comment.
One more change and then this will be good.
Approving provisionally, you may merge once that is addressed.
|
I went ahead and removed |
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
…#10508) * addition of the release_notes_label workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * addition of a helper step in the release_notes_label to guide users Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * addition of a set of rules for release_notes_labels's pull_request target Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * remove the previous workflow that used to check the release notes labels Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Change the review check list and enforce the use of type/component labels Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Fixed syntax in check release notes label workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
…#10508) * addition of the release_notes_label workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * addition of a helper step in the release_notes_label to guide users Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * addition of a set of rules for release_notes_labels's pull_request target Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * remove the previous workflow that used to check the release notes labels Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Change the review check list and enforce the use of type/component labels Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Fixed syntax in check release notes label workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
…#10508) * addition of the release_notes_label workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * addition of a helper step in the release_notes_label to guide users Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * addition of a set of rules for release_notes_labels's pull_request target Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * remove the previous workflow that used to check the release notes labels Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Change the review check list and enforce the use of type/component labels Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Fixed syntax in check release notes label workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
…#10508) * addition of the release_notes_label workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * addition of a helper step in the release_notes_label to guide users Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * addition of a set of rules for release_notes_labels's pull_request target Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * remove the previous workflow that used to check the release notes labels Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Change the review check list and enforce the use of type/component labels Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Fixed syntax in check release notes label workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
…10528) * addition of the release_notes_label workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * addition of a helper step in the release_notes_label to guide users Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * addition of a set of rules for release_notes_labels's pull_request target Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * remove the previous workflow that used to check the release notes labels Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Change the review check list and enforce the use of type/component labels Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Fixed syntax in check release notes label workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
…10527) * addition of the release_notes_label workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * addition of a helper step in the release_notes_label to guide users Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * addition of a set of rules for release_notes_labels's pull_request target Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * remove the previous workflow that used to check the release notes labels Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Change the review check list and enforce the use of type/component labels Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Fixed syntax in check release notes label workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
…10525) * addition of the release_notes_label workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * addition of a helper step in the release_notes_label to guide users Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * addition of a set of rules for release_notes_labels's pull_request target Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * remove the previous workflow that used to check the release notes labels Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Change the review check list and enforce the use of type/component labels Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Fixed syntax in check release notes label workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
…10526) * addition of the release_notes_label workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * addition of a helper step in the release_notes_label to guide users Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * addition of a set of rules for release_notes_labels's pull_request target Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * remove the previous workflow that used to check the release notes labels Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Change the review check list and enforce the use of type/component labels Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * Fixed syntax in check release notes label workflow Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Description
This Pull Request changes how the CI checks the
release noteslabels. Therelease notes (none)label is removed, and the reviewers are responsible for making sure therelease noteslabel is set if needed. In fact, the review checklist now includes an item that invites the reviewers to check the proper setting of therelease noteslabel.The
release notes (needs details)label is now used as a temporary label, meaning that the Pull Request cannot be merged if this label is set. Setting this label on a Pull Request is a signal that the authors/reviewers need to add some content to the release notes summary file. While this label is set, the new workflowCheck Release Notes labelswill fail to prevent the merge, a sample result can be seen here. Once a content that describes the changes brought by the Pull Request is written, the authors/reviewers can unset therelease notes (needs details)label, and set therelease noteslabel instead. This is done to not forget the redaction of the release notes summary.The workflow that checks whether one of the three release notes labels is set is removed in this Pull Request as we can now create a Pull Request without any release notes label.
Checklist