Apache DataFusion SQL Query Engine
ARROW-7760: [Release] Fix verify-release-candidate.sh since pip3 seems to no longer be in miniconda, install miniconda unconditionally
Wes McKinneyfb418a5eb755
diff --git a/dev/archery/archery/integration/runner.py b/dev/archery/archery/integration/runner.pyindex 9fa3f6194c..60ee8f3b85 100644--- a/dev/archery/archery/integration/runner.py+++ b/dev/archery/archery/integration/runner.py@@ -227,23 +227,23 @@ def get_static_json_files():]-def run_all_tests(enable_cpp=True, enable_java=True, enable_js=True,- enable_go=True, run_flight=False,+def run_all_tests(with_cpp=True, with_java=True, with_js=True,+ with_go=True, run_flight=False,tempdir=None, **kwargs):tempdir = tempdir or tempfile.mkdtemp()testers = []- if enable_cpp:+ if with_cpp:testers.append(CPPTester(kwargs))- if enable_java:+ if with_java:testers.append(JavaTester(kwargs))- if enable_js:+ if with_js:testers.append(JSTester(kwargs))- if enable_go:+ if with_go:testers.append(GoTester(kwargs))static_json_files = get_static_json_files()diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.shindex bae762d327..88974529ec 100755--- a/dev/release/verify-release-candidate.sh+++ b/dev/release/verify-release-candidate.sh@@ -30,7 +30,8 @@# LD_LIBRARY_PATH.## To reuse build artifacts between runs set TMPDIR environment variable to-# a directory where the temporary files should be placed to.+# a directory where the temporary files should be placed to, note that this+# directory is not cleaned up automatically.case $# in3) ARTIFACT="$1"@@ -126,7 +127,7 @@ test_binary() {local download_dir=binariesmkdir -p ${download_dir}- python3 $SOURCE_DIR/download_rc_binaries.py $VERSION $RC_NUMBER --dest=${download_dir}+ python $SOURCE_DIR/download_rc_binaries.py $VERSION $RC_NUMBER --dest=${download_dir}verify_dir_artifact_signatures ${download_dir}}@@ -207,11 +208,13 @@ setup_tempdir() {echo "Failed to verify release candidate. See ${TMPDIR} for details."fi}- trap cleanup EXITif [ -z "${TMPDIR}" ]; then+ # clean up automatically if TMPDIR is not definedTMPDIR=$(mktemp -d -t "$1.XXXXX")+ trap cleanup EXITelse+ # don't clean up automaticallymkdir -p "${TMPDIR}"fi}@@ -235,6 +238,15 @@ setup_miniconda() {fi. $MINICONDA/etc/profile.d/conda.sh++ conda create -n arrow-test -y -q -c conda-forge \+ python=3.6 \+ nomkl \+ numpy \+ pandas \+ six \+ cython+ conda activate arrow-test}# Build and test Java (Requires newer Maven -- I used 3.3.9)@@ -251,15 +263,6 @@ test_package_java() {# Build and test C++test_and_install_cpp() {- conda create -n arrow-test -y -q -c conda-forge \- python=3.6 \- nomkl \- numpy \- pandas \- six \- cython- conda activate arrow-test-mkdir -p cpp/buildpushd cpp/build@@ -503,7 +506,7 @@ test_integration() {export ARROW_JAVA_INTEGRATION_JAR=$JAVA_DIR/tools/target/arrow-tools-$VERSION-jar-with-dependencies.jarexport ARROW_CPP_EXE_PATH=$CPP_BUILD_DIR/release- pip3 install -e dev/archery+ pip install -e dev/archeryINTEGRATION_TEST_ARGS=""@@ -552,7 +555,6 @@ test_source_distribution() {test_package_javafiif [ ${TEST_CPP} -gt 0 ]; then- setup_minicondatest_and_install_cppfiif [ ${TEST_CSHARP} -gt 0 ]; then@@ -686,9 +688,9 @@ test_wheels() {conda create -yq -n py3-base python=3.7conda activate py3-base- python3 $SOURCE_DIR/download_rc_binaries.py $VERSION $RC_NUMBER \- --regex=${filter_regex} \- --dest=${download_dir}+ python $SOURCE_DIR/download_rc_binaries.py $VERSION $RC_NUMBER \+ --regex=${filter_regex} \+ --dest=${download_dir}verify_dir_artifact_signatures ${download_dir}@@ -751,6 +753,9 @@ setup_tempdir "arrow-${VERSION}"echo "Working in sandbox ${TMPDIR}"cd ${TMPDIR}+setup_miniconda+echo "Using miniconda environment ${MINICONDA}"+if [ "${ARTIFACT}" == "source" ]; thendist_name="apache-arrow-${VERSION}"if [ ${TEST_SOURCE} -gt 0 ]; then@@ -759,6 +764,10 @@ if [ "${ARTIFACT}" == "source" ]; thentar xf ${dist_name}.tar.gzelsemkdir -p ${dist_name}+ if [ ! -f ${TEST_ARCHIVE} ]; then+ echo "${TEST_ARCHIVE} not found, did you mean to pass TEST_SOURCE=1?"+ exit 1+ fitar xf ${TEST_ARCHIVE} -C ${dist_name} --strip-components=1fipushd ${dist_name}@@ -766,7 +775,6 @@ if [ "${ARTIFACT}" == "source" ]; thenpopdelif [ "${ARTIFACT}" == "wheels" ]; thenimport_gpg_keys- setup_minicondatest_wheelselseimport_gpg_keys