-
Notifications
You must be signed in to change notification settings - Fork 10.1k
[release-3.4] add test release makefile target #19855
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
base: release-3.4
Are you sure you want to change the base?
[release-3.4] add test release makefile target #19855
Conversation
This is a cherrypick of 64cd6b6 PR: etcd-io#19815 Signed-off-by: joshjms <[email protected]>
Address reviews in etcd-io#19815 This is a cherrypick of c940bf5 PR: etcd-io#19848 Signed-off-by: joshjms <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: joshjms The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
dd672c9
to
fbe3511
Compare
@ivanvc please let me know if the manual cherrypick procedures are followed and if there's anything I should do. thanks! |
/retest |
/retitle [release-3.4] add test release makefile target |
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.
Thanks for the pull request, @joshjms. Please take a look at my comments :)
function determine_go_version { | ||
# Borrowing from how Kubernetes does this: | ||
# https://github.com/kubernetes/kubernetes/blob/17854f0e0a153b06f9d0db096e2cd8ab2fa89c11/hack/lib/golang.sh#L510-L520 | ||
# | ||
# default GO_VERSION to content of .go-version | ||
GO_VERSION="${GO_VERSION:-"$(cat "./.go-version")"}" | ||
if [ "${GOTOOLCHAIN:-auto}" != 'auto' ]; then | ||
# no-op, just respect GOTOOLCHAIN | ||
: | ||
elif [ -n "${FORCE_HOST_GO:-}" ]; then | ||
export GOTOOLCHAIN='local' | ||
else | ||
GOTOOLCHAIN="go${GO_VERSION}" | ||
export GOTOOLCHAIN | ||
fi | ||
} | ||
|
||
determine_go_version |
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.
Can we do a clean cherry pick of this commit (it's missing the documentation before the function definition)?
And the same note about the co-author trailer :)
scripts/test_images.sh
Outdated
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.
Can we keep only the last bullet point from the commit message? It's the part being backported from that commit.
Also, your co-authored
trailer is incorrect. It should be Co-authored-by
. Refer to https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors#creating-co-authored-commits-on-the-command-line
Thanks for the review Ivan, will fix immediately. Done! |
e85a01c
to
e43d8fa
Compare
Partial backport of etcd-io#19305 Refactor scripts/test_images.sh * Rename the input "IMAGE" to "TEST_IMAGE" to avoid clashing with the environment variable from the Prow infrastructure. Co-authored-by: ivanvc <[email protected]> Signed-off-by: joshjms <[email protected]>
e43d8fa
to
d1f110d
Compare
Additionally, provide ability to opt-out of the .go-version and use a custom one via env vars: FORCE_HOST_GO and GO_VERSION. Co-authored-by: Madhav Jivrajani <[email protected]> Signed-off-by: joshjms <[email protected]>
d1f110d
to
013d5b4
Compare
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.
Add test-release Makefile target for release-3.4 Prow job.
ref: kubernetes/test-infra#32754
/cc @ivanvc @jmhbnz