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

Add scripts for tagging Velero releases #2592

Merged
merged 6 commits into from
Jul 8, 2020

Conversation

nrb
Copy link
Contributor

@nrb nrb commented May 31, 2020

Fixes #2472

Hopefully :)

I think there's some steps I may need to fix for the release branch logic, as I've not done that part. From what I can tell, this logic works well, but I want more eyes on this as I've played with it against a fake upstream that pointed to my own repo that I can't actually make a release against.

@skriss
Copy link
Member

skriss commented Jun 9, 2020

enqueued to review tomorrow morning!

skriss
skriss previously requested changes Jun 10, 2020
Copy link
Member

@skriss skriss left a comment

Choose a reason for hiding this comment

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

@nrb thanks for putting this together! It'll definitely be helpful. The main issue I saw is that for a patch release, in between creating a release branch and creating a tag, the user will need to cherry-pick commits, so need to decide how to work that into the script(s).

hack/release-tools/tag-release.sh Show resolved Hide resolved
hack/release-tools/tag-release.sh Outdated Show resolved Hide resolved
hack/release-tools/tag-release.sh Outdated Show resolved Hide resolved
@nrb nrb self-assigned this Jun 11, 2020
@nrb nrb marked this pull request as ready for review June 19, 2020 20:25
@nrb
Copy link
Contributor Author

nrb commented Jun 19, 2020

@ashish-amarnath @carlisia I've marked this as ready for review, but let me know what you think of the tool's workflow. I'm aiming to make the process better, but probably not perfect on this go.

@nrb nrb added the kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes label Jun 19, 2020
Copy link
Contributor

@carlisia carlisia left a comment

Choose a reason for hiding this comment

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

This lgtm.

Needs a rebase, but let's :shipit:

nrb added 5 commits July 7, 2020 15:06
Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
* Pause to allow for cherry-picking on the release branch before pushing
  it
* Move master branch logic into an else statement
* Correct typo

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
@nrb
Copy link
Contributor Author

nrb commented Jul 7, 2020

@ashish-amarnath @carlisia Rebased!

carlisia
carlisia previously approved these changes Jul 7, 2020
Copy link
Contributor

@carlisia carlisia left a comment

Choose a reason for hiding this comment

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

👍

Comment on lines 47 to 51
# Ensure that we have a clean working tree before we let any changes happen, especially important for cutting release branches.
#if [[ -n $(git status --short) ]]; then
# echo "Your git working directory is dirty! Please clean up untracked files and stash any changes before proceeding."
# exit 3
#fi
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be uncommented to avoid publishing release built from local changes.

Copy link
Contributor

@ashish-amarnath ashish-amarnath left a comment

Choose a reason for hiding this comment

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

LGTM.
One comment about running make release only on a clean tree.

@nrb nrb added this to the v1.141 milestone Jul 8, 2020
Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
@nrb nrb modified the milestones: v1.141, v1.4.1 Jul 8, 2020
Copy link
Contributor

@carlisia carlisia left a comment

Choose a reason for hiding this comment

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

👍 thanks for all the comments! And the test!

Copy link
Contributor

@ashish-amarnath ashish-amarnath left a comment

Choose a reason for hiding this comment

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

🚀

@ashish-amarnath ashish-amarnath merged commit c8f4b60 into vmware-tanzu:master Jul 8, 2020
nrb added a commit to nrb/velero that referenced this pull request Jul 13, 2020
* Add release tools

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Document the tag-release release tool

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Make sure the upstream used is correct

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Add copyright statement

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Address review feedback

* Pause to allow for cherry-picking on the release branch before pushing
  it
* Move master branch logic into an else statement
* Correct typo

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Uncomment check for dirty git working tree

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
ashish-amarnath added a commit that referenced this pull request Jul 13, 2020
* Adjust restic timeout and pod values up (#2696)

* Adjust restic timeout and pod values up

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* 🐛 Use CRD version prior to remap_crd_version backup item action (#2683)

* 🐛 preserve crd version before remapping

Signed-off-by: Ashish Amarnath <ashisham@vmware.com>

* 🏃‍♂️ pass git state to build from makefile

Signed-off-by: Ashish Amarnath <ashisham@vmware.com>

* Add scripts for tagging Velero releases (#2592)

* Add release tools

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Document the tag-release release tool

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Make sure the upstream used is correct

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Add copyright statement

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Address review feedback

* Pause to allow for cherry-picking on the release branch before pushing
  it
* Move master branch logic into an else statement
* Correct typo

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Uncomment check for dirty git working tree

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

Co-authored-by: Ashish Amarnath <ashisham@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

document patch release process
4 participants