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

Enable prerelease push official release #16919

Merged
merged 2 commits into from
Nov 20, 2015
Merged

Enable prerelease push official release #16919

merged 2 commits into from
Nov 20, 2015

Conversation

ikehz
Copy link
Contributor

@ikehz ikehz commented Nov 6, 2015

This needs to be cherrypicked into 1.1, (and 1.0 if we want to do prerelease releases there, but I don't think we do).

Makes progress on #16773.

elif [[ "${version_patch}" -lt "${gcs_version_patch}" ]]; then
greater=false
elif [[ "${version_patch}" -gt "${gcs_version_patch}" ]]; then
: # fall out
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These lines got accidentally copy-pasted in; they're identical to comparisons above, so should be removed.

Copy link

Choose a reason for hiding this comment

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

It's exactly this kind of copy-n-paste error that my comment above is aimed at :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call. I expected that to be hideous, but I like the way it reads much more. Done.

@ikehz ikehz mentioned this pull request Nov 6, 2015
13 tasks
@k8s-github-robot
Copy link

Labelling this PR as size/M

@k8s-github-robot k8s-github-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 6, 2015
@@ -1148,6 +1151,9 @@ function kube::release::gcs::verify_release_files() {
# publish_file: the GCS location to look in
# Returns:
# If new version is greater than the GCS version
#
# TODO(16529): This should all be outside of build an in release, and should be
# refactored to reduce code duplication.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I considered doing this work in this PR, but decided that I wanted to keep this as low-impact as possible, since it needs to be cherrypicked. Once things stabilize in 1.1, #16529 can be targeted for 1.2.

Copy link

Choose a reason for hiding this comment

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

Fair enough.

@k8s-bot
Copy link

k8s-bot commented Nov 6, 2015

GCE e2e test build/test passed for commit eada410195b88bd556b5f448f540f6db4e33b95d.

@ikehz
Copy link
Contributor Author

ikehz commented Nov 9, 2015

@quinton-hoole Can I get a review on this? The fact that this wasn't in caused problems with the v1.1.2-beta.0 release this morning. Thank you!

@ghost
Copy link

ghost commented Nov 11, 2015

My apologies - I've been OOTO. Will review now.

function kube::release::parse_and_validate_release_version() {
local -r version_regex="^v(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"
local -r version_regex="^v(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-(beta|alpha)\\.(0|[1-9][0-9]*))?$"
local -r version="${1-}"
[[ "${version}" =~ ${version_regex} ]] || {
kube::log::error "Invalid release version: '${version}'"
Copy link

Choose a reason for hiding this comment

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

I would suggest outputting the regex that was not matched here, to make the error message more informative. Debugging without that will involve wading through this code, unnecessarily.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@k8s-bot
Copy link

k8s-bot commented Nov 18, 2015

GCE e2e build/test failed for commit 81e208060751b4e57404c3b8769200e98b5b65a3.

@ikehz
Copy link
Contributor Author

ikehz commented Nov 18, 2015

@quinton-hoole PTAL.

@k8s-github-robot
Copy link

Labelling this PR as size/L

@k8s-github-robot k8s-github-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 18, 2015
@ghost
Copy link

ghost commented Nov 19, 2015

LGTM

@ghost ghost added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 19, 2015
@k8s-bot
Copy link

k8s-bot commented Nov 19, 2015

GCE e2e test build/test passed for commit 75b9170bf3b2e63372916fcf7bffb25bc5dc85a4.

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Nov 19, 2015

GCE e2e test build/test passed for commit 75b9170bf3b2e63372916fcf7bffb25bc5dc85a4.

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@mikedanese mikedanese removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 19, 2015
@mikedanese
Copy link
Member

Removing lgtm because this fixup commits should be squashed.

Quinton, please ask for squash before applying lgtm per our squash guidelines: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md#when-to-retain-commits-and-when-to-squash because mergebot will trundle forward if lgtm is applied

@k8s-bot
Copy link

k8s-bot commented Nov 19, 2015

GCE e2e build/test failed for commit 75b9170bf3b2e63372916fcf7bffb25bc5dc85a4.

@ikehz
Copy link
Contributor Author

ikehz commented Nov 19, 2015

This closes #17485.

@ikehz
Copy link
Contributor Author

ikehz commented Nov 19, 2015

Rebased. @mikedanese PTAL. 😉

@mikedanese mikedanese added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 19, 2015
@mikedanese
Copy link
Member

Thanks!

@k8s-bot
Copy link

k8s-bot commented Nov 19, 2015

GCE e2e test build/test passed for commit 2fad9a1.

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Nov 20, 2015

GCE e2e test build/test passed for commit 2fad9a1.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

k8s-github-robot pushed a commit that referenced this pull request Nov 20, 2015
…cial-release

Auto commit by PR queue bot
@k8s-github-robot k8s-github-robot merged commit c8d2ec6 into kubernetes:master Nov 20, 2015
k8s-github-robot referenced this pull request Nov 26, 2015
…6919-upstream-release-1.1

Auto commit by PR queue bot
shyamjvs referenced this pull request in shyamjvs/kubernetes Dec 1, 2016
…pick-of-#16919-upstream-release-1.1

Auto commit by PR queue bot
shouhong referenced this pull request in shouhong/kubernetes Feb 14, 2017
…pick-of-#16919-upstream-release-1.1

Auto commit by PR queue bot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build-release lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants