-
Notifications
You must be signed in to change notification settings - Fork 13.9k
[FLINK-5395] [Build System] support locally build distribution by script create_release_files.sh #3049
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
Conversation
uce
left a comment
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.
The changes look good judging from the code. I had some minor inline comments.
Before merging this, we would definitely have to run the script as well. I did not do this and hence I would wait with merging this.
Maybe @rmetzger can try out the updated script as he is 1.2 release manager?
tools/create_release_files.sh
Outdated
|
|
||
| IS_LOCAL_DIST=${IS_LOCAL_DIST:-false} | ||
| GIT_REPO=${GIT_REPO:-git-wip-us.apache.org/repos/asf/flink.git} | ||
| scalaV=none |
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 rename this to SCALA_VERSION and HADOOP_VERSION in order to follow the style of the other variables?
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.
That' fine.
tools/create_release_files.sh
Outdated
| git checkout master | ||
| git branch -D $target_branch -f | ||
| } || { | ||
| echo "branch $target_branch maybe not found" |
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.
I think the error message should just be branch $target_branch not found without the maybe.
tools/create_release_files.sh
Outdated
| make_binary_release "hadoop24" "-Dhadoop.version=2.4.1" 2.11 | ||
| make_binary_release "hadoop26" "-Dhadoop.version=2.6.3" 2.11 | ||
| make_binary_release "hadoop27" "-Dhadoop.version=2.7.2" 2.11 | ||
| elif [ "$scalaV" == none ] && [ "$hadoopV" != "none" ] |
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 add the "..." for all strings to have it consistent?
…ipt create_release_files.sh
|
+1 is good to merge. I'll test it as part of the RC1 for 1.2.0 creation |
…ipt create_release_files.sh This closes apache#3049
…ipt create_release_files.sh This closes #3049
| RELEASE_HASH=`git rev-parse HEAD` | ||
| echo "Echo created release hash $RELEASE_HASH" | ||
| # local dist have no need to commit to remote | ||
| if [ ! IS_LOCAL_DIST ]; 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.
(Note to myself: This doesn't work)
| make_binary_release "hadoop2x" "-Dhadoop.version=$HADOOP_VERSION" "$SCALA_VERSION" | ||
| fi | ||
|
|
||
| if [ ! IS_LOCAL_DIST ] ; 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 as well
|
I fixed the mentioned issues in http://git-wip-us.apache.org/repos/asf/flink/commit/5f0d8c9d |
|
OK |
…ipt create_release_files.sh This closes apache#3049
create_release_files.sh is build flink release only. It's hard to build custom local Flink release distribution.
Let create_release_files.sh support:
tools/flinkto .gitignorefor example:
gpg --gen-keyGeneral
Documentation
Tests & Build
mvn clean verifyhas been executed successfully locally or a Travis build has passed