-
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
🐛 Fix wrong branch name display for weekly update script #9918
🐛 Fix wrong branch name display for weekly update script #9918
Conversation
Welcome @chandankumar4! |
Hi @chandankumar4. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good pending one minor comment. Thanks for working on this!
50ee7dd
to
a4bd4f5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
LGTM label has been added. Git tree hash: 3c4984f75560f25a0bbc453132d682e7dbfe66ad
|
Hey @mcbenjemaa @willie-yao if you get time, can you please take a look once, Is there any more update I need to do in this PR? |
This looks good to me. Just waiting on an approver to take a look. cc @sbueringer |
// fetch the current branch | ||
out, err = exec.Command("git", "rev-parse", "--abbrev-ref", "HEAD").CombinedOutput() | ||
if err != nil { | ||
fmt.Println("Error") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a bit confusing, i think we can consolidate the "Error"
string to print in the same line as err
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have followed the same pattern which is there in line no: 105 after executing any command. Do I need to update in all places?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah cool, if this is a pattern that works for the comms team it works for me 👍
if err != nil { | ||
fmt.Println("Error") | ||
fmt.Println(err) | ||
fmt.Println(string(out)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a debug print statement? if there is an error in attempting to assign the value and we are about to return 1
, why print this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar comment as above.
question on your example output, is it expected to have the milestone minor version differ from the branch minor version? the corresponding docs don't really specify: cluster-api/docs/release/release-tasks.md Line 338 in c8c0794
|
@cahillsf |
hm, that seems at odds with the most recent update provided in the CAPI channel: https://kubernetes.slack.com/archives/C8TSNPY4T/p1704956238693459?thread_ts=1704956148.936569&cid=C8TSNPY4T the current branch and the milestone are the same:
|
@cahillsf In this link: https://kubernetes.slack.com/archives/C8TSNPY4T/p1704956238693459?thread_ts=1704956148.936569&cid=C8TSNPY4T milestone is |
followed up in that thread, but those links were actually not correct. this is actually not related to your pull request, but i believe the docs need to be updated (or the behavior of the tool needs to be improved). here is the link in your example: https://github.com/kubernetes-sigs/cluster-api/pulls?q=is%3Apr+closed%3A2023-12-11..2023-12-18+is%3Amerged+milestone%3Av1.7+ you will see that the commits shown do not correspond to what the generated output message says, , i will open a separate issue regarding the links/doc thanks for working on this improvement. lgtm pending squashed commits |
Signed-off-by: chandankumar4 <chandan.kr404@gmail.com>
9b340b3
to
bfe8d0d
Compare
/lgtm |
LGTM label has been added. Git tree hash: 1c268924b488bac0ce57288505e0c8ce421c0053
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cahillsf 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 |
/unhold |
Have checked with @willie-yao and he is good with this change!! |
What this PR does / why we need it:
Fix the branch name display issue after running the command
make release-weekly-update-tool
from branch other thanmain
.Example: Output of command after bug fix!!
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 # N/A
/area release