-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
build: Fix version generation. #34612
build: Fix version generation. #34612
Conversation
6a0f744
to
a186276
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.
Fix nit, then LGTM
# We have distance to subversion (v1.1.0-subversion-1-gCommitHash) | ||
KUBE_GIT_VERSION=$(echo "${KUBE_GIT_VERSION}" | sed "s/-\([0-9]\{1,\}\)-g\([0-9a-f]\{14\}\)$/.\1\+\2/") | ||
elif [[ "${DASHES_IN_VERSION}" == "--" ]] ; then | ||
# We have distance to base tag (v1.1.0-1-gCommitHash) |
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.
Fix indentation
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.
Done.
a186276
to
66a8555
Compare
Bumping up. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
…-upstream-release-1.4 Automated cherry pick of #34612
Commit found in the "release-1.4" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
…-of-#34612-upstream-release-1.4 Automated cherry pick of kubernetes#34612
@jellonek: Adding do-not-merge/release-note-label-needed because the release note process has not been followed. One of the following labels is required "release-note", "release-note-action-required", or "release-note-none". 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. |
This PR provides update to version string generation procedure to handle additional case - working on branch delivered from release tag, instead of working on
-(alpha|beta).no
suffixed tag.Reason of it is that actually if someone would start working on branch forked from release tag (
v1.4.1
for example), will add some commits and then would try to build k8s/run conformance tests - will end up with broken version string in form similar tov1.4.1.X+YYYY
whereX
is a distance/number of commits from base tag andYYYY
will be first 14 characters from commit hash.Such version - containing four dotted parts is rejected during conformance tests with error similar to:
This PR provides a cure for this situation creating version string in form
v1.4.1-X+YYYY
which then should be readable for version validation checks.Release note:
This change is