X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b20fb44b419ba6dd800874552bcfb5b87479611d..58f3ef79e9c3b4fb45d5d516c519df16ef6b9147:/build/run-library.sh diff --git a/build/run-library.sh b/build/run-library.sh index 12fb34f65f..e3c0e251bf 100755 --- a/build/run-library.sh +++ b/build/run-library.sh @@ -455,7 +455,7 @@ test_package_presence() { fi else local rpm_root - case "TARGET" in + case "$TARGET" in centos7) rpm_root="CentOS/7/dev" ;; rocky8) rpm_root="CentOS/8/dev" ;; *) @@ -656,6 +656,13 @@ handle_cwltest () { rm -rf "$WORKSPACE/cwltest" fi git clone https://github.com/common-workflow-language/cwltest.git + + # The subsequent release of cwltest confirms that files exist on disk, since + # our files are in Keep, all the tests fail. + # We should add [optional] Arvados support to cwltest so it can access + # Keep but for the time being just package the last working version. + (cd cwltest && git checkout 2.3.20230108193615) + # signal to our build script that we want a cwltest executable installed in /usr/bin/ mkdir cwltest/bin && touch cwltest/bin/cwltest fpm_build_virtualenv "cwltest" "cwltest" "$package_format" "$target_arch" @@ -792,7 +799,7 @@ fpm_build_virtualenv_worker () { PACKAGE_PATH=`(cd dist; ls *tar.gz)` if [[ "arvados-python-client" == "$PKG" ]]; then - PYSDK_PATH=`pwd`/dist/ + PYSDK_PATH="-f $(pwd)/dist/" fi if [[ -n "$ONLY_BUILD" ]] && [[ "$PYTHON_PKG" != "$ONLY_BUILD" ]] && [[ "$PKG" != "$ONLY_BUILD" ]]; then @@ -856,16 +863,16 @@ fpm_build_virtualenv_worker () { echo "wheel version: `build/usr/share/$python/dist/$PYTHON_PKG/bin/wheel version`" if [[ "$TARGET" != "centos7" ]] || [[ "$PYTHON_PKG" != "python-arvados-fuse" ]]; then - build/usr/share/$python/dist/$PYTHON_PKG/bin/$pip install $DASHQ_UNLESS_DEBUG $CACHE_FLAG -f $PYSDK_PATH $PACKAGE_PATH + build/usr/share/$python/dist/$PYTHON_PKG/bin/$pip install $DASHQ_UNLESS_DEBUG $CACHE_FLAG $PYSDK_PATH $PACKAGE_PATH else # centos7 needs these special tweaks to install python-arvados-fuse build/usr/share/$python/dist/$PYTHON_PKG/bin/$pip install $DASHQ_UNLESS_DEBUG $CACHE_FLAG docutils - PYCURL_SSL_LIBRARY=nss build/usr/share/$python/dist/$PYTHON_PKG/bin/$pip install $DASHQ_UNLESS_DEBUG $CACHE_FLAG -f $PYSDK_PATH $PACKAGE_PATH + PYCURL_SSL_LIBRARY=nss build/usr/share/$python/dist/$PYTHON_PKG/bin/$pip install $DASHQ_UNLESS_DEBUG $CACHE_FLAG $PYSDK_PATH $PACKAGE_PATH fi if [[ "$?" != "0" ]]; then echo "Error, unable to run" - echo " build/usr/share/$python/dist/$PYTHON_PKG/bin/$pip install $DASHQ_UNLESS_DEBUG $CACHE_FLAG -f $PYSDK_PATH $PACKAGE_PATH" + echo " build/usr/share/$python/dist/$PYTHON_PKG/bin/$pip install $DASHQ_UNLESS_DEBUG $CACHE_FLAG $PYSDK_PATH $PACKAGE_PATH" exit 1 fi