-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add wrapper script for sidecar release #210
Add wrapper script for sidecar release #210
Conversation
Welcome @sunnylovestiramisu! |
Hi @sunnylovestiramisu. Thanks for your PR. I'm waiting for a kubernetes-csi 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 |
go-modules-update.sh
Outdated
die "git subtree pull --squash failed, cannot reover." | ||
fi | ||
fi | ||
while ! ./release-tools/go-get-kubernetes.sh -p 1.26.0-rc.0 |
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 you define a retry limit? Otherwise this can loop forever?
for i in $branches; do | ||
git checkout -B module-update-$i origin/$i || die "$repo:$i checkout" | ||
rm -rf .git/MERGE* | ||
if ! git subtree pull --squash --prefix=release-tools https://github.com/kubernetes-csi/csi-release-tools.git master; then |
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 script is also updating csi-release-tools. Do we want to include that in the script or have separate scripts?
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.
What do you mean separate? Do you mean everything in go-get-kubernetes?
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.
should we have 2 different scripts? One for updating csi-release-tools, and another for updating kubernetes dependencies?
go-modules-update.sh
Outdated
git commit -m "Update dependency go modules for k8s v1.26.0-rc.0" || die "commit update modules" | ||
git remote set-url origin https://github.com/sunnylovestiramisu/$repo.git || die "git remote set-url failed" | ||
make test || die "$repo:$i make test" | ||
git push origin module-update-$i --force || die "origin:module-update-$i push failed - probably there is already an unmerged branch and pending PR" |
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.
Would this fail if you already have a PR, or would it update the PR?
cbff685
to
4d29bc3
Compare
4d29bc3
to
b2d3d4e
Compare
b2d3d4e
to
7cf2b4a
Compare
@sunnylovestiramisu do you plan to continue with this? |
I am using it personally, but did not get the time to make it pass the presubmits yet. |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
093a3ed
to
d04da1f
Compare
/assign @msau42 |
5118c9d
to
fc3d657
Compare
fc3d657
to
5deaf66
Compare
# 5. Run script from the kubernetes-csi directory | ||
# | ||
# Caveats: | ||
# - This script doesn't handle interface incompatibility of updates. |
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.
If someone runs into it, are there steps to follow to resolve the conflicts and rerun the script?
507d9a5
to
79f34bd
Compare
79f34bd
to
011033d
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: msau42, sunnylovestiramisu 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 |
A wrapper script to generate sidecar release prs from go-get-kubernetes.sh: #7 (comment)
Change the repo that you need to generate the pr.
Sample command: