-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-31320] Fix release script for 3.0.0 #28088
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -159,10 +159,14 @@ function get_release_info { | |
| export SPARK_PACKAGE_VERSION="$RELEASE_TAG" | ||
|
|
||
| # Gather some user information. | ||
| export ASF_USERNAME=$(read_config "ASF user" "$LOGNAME") | ||
| if [ -z "$ASF_USERNAME" ]; then | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should respect these env variables if they exist |
||
| export ASF_USERNAME=$(read_config "ASF user" "$LOGNAME") | ||
| fi | ||
|
|
||
| GIT_NAME=$(git config user.name || echo "") | ||
| export GIT_NAME=$(read_config "Full name" "$GIT_NAME") | ||
| if [ -z "$GIT_NAME" ]; then | ||
| GIT_NAME=$(git config user.name || echo "") | ||
| export GIT_NAME=$(read_config "Full name" "$GIT_NAME") | ||
| fi | ||
|
|
||
| export GIT_EMAIL="$ASF_USERNAME@apache.org" | ||
| export GPG_KEY=$(read_config "GPG key" "$GIT_EMAIL") | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,8 +33,8 @@ ENV DEBCONF_NONINTERACTIVE_SEEN true | |
| # These arguments are just for reuse and not really meant to be customized. | ||
| ARG APT_INSTALL="apt-get install --no-install-recommends -y" | ||
|
|
||
| ARG BASE_PIP_PKGS="setuptools wheel" | ||
| ARG PIP_PKGS="pyopenssl numpy sphinx" | ||
| ARG PIP_PKGS="sphinx==2.3.1 mkdocs==1.0.4 numpy==1.18.1" | ||
| ARG GEM_PKGS="jekyll:4.0.0 jekyll-redirect-from:0.16.0 rouge:3.15.0" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This follows part of #27534 |
||
|
|
||
| # Install extra needed repos and refresh. | ||
| # - CRAN repo | ||
|
|
@@ -62,12 +62,11 @@ RUN apt-get clean && apt-get update && $APT_INSTALL gnupg ca-certificates && \ | |
| curl -sL https://deb.nodesource.com/setup_11.x | bash && \ | ||
| $APT_INSTALL nodejs && \ | ||
| # Install needed python packages. Use pip for installing packages (for consistency). | ||
| $APT_INSTALL libpython3-dev python3-pip && \ | ||
| $APT_INSTALL libpython3-dev python3-pip python3-setuptools && \ | ||
| # Change default python version to python3. | ||
| update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 && \ | ||
| update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2 && \ | ||
| update-alternatives --set python /usr/bin/python3.6 && \ | ||
| pip3 install $BASE_PIP_PKGS && \ | ||
| pip3 install $PIP_PKGS && \ | ||
| # Install R packages and dependencies used when building. | ||
| # R depends on pandoc*, libssl (which are installed above). | ||
|
|
@@ -76,10 +75,8 @@ RUN apt-get clean && apt-get update && $APT_INSTALL gnupg ca-certificates && \ | |
| Rscript -e "install.packages(c('curl', 'xml2', 'httr', 'devtools', 'testthat', 'knitr', 'rmarkdown', 'roxygen2', 'e1071', 'survival'), repos='https://cloud.r-project.org/')" && \ | ||
| Rscript -e "devtools::install_github('jimhester/lintr')" && \ | ||
| # Install tools needed to build the documentation. | ||
| $APT_INSTALL ruby2.3 ruby2.3-dev mkdocs && \ | ||
| gem install jekyll --no-rdoc --no-ri -v 3.8.6 && \ | ||
| gem install jekyll-redirect-from -v 0.15.0 && \ | ||
| gem install rouge | ||
| $APT_INSTALL ruby2.5 ruby2.5-dev && \ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So, did
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| gem install --no-document $GEM_PKGS | ||
|
|
||
| WORKDIR /opt/spark-rm/output | ||
|
|
||
|
|
||
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 modern
gpgcommand requires users to input a password, which breaks the workflow of the script. This fixes it.