[ARVADOS] updated: 2.1.0-1529-g1e8731c24

Git user git at public.arvados.org
Tue Oct 26 19:28:55 UTC 2021


Summary of changes:
 build/get-package-version.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

  discards  048b2f4b27b966b0e02538a829eefb7f6370e567 (commit)
       via  1e8731c242c2e2926819e24856743d0ec7e70a56 (commit)

This update added new revisions after undoing existing revisions.  That is
to say, the old revision is not a strict subset of the new revision.  This
situation occurs when you --force push a change and generate a repository
containing something like this:

 * -- * -- B -- O -- O -- O (048b2f4b27b966b0e02538a829eefb7f6370e567)
            \
             N -- N -- N (1e8731c242c2e2926819e24856743d0ec7e70a56)

When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 1e8731c242c2e2926819e24856743d0ec7e70a56
Author: Ward Vandewege <ward at curii.com>
Date:   Tue Oct 26 14:52:32 2021 -0400

    18264: add a script that uses the existing version logic in the build
           scripts to generate a package version string from a local Arvados
           git checkout.
    
    Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward at curii.com>

diff --git a/build/get-package-version.sh b/build/get-package-version.sh
new file mode 100755
index 000000000..e4579cbb3
--- /dev/null
+++ b/build/get-package-version.sh
@@ -0,0 +1,64 @@
+#!/bin/bash
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+# When run with WORKSPACE pointing at a git checkout of arvados, this script
+# calculates the package version of an Arvados component.
+
+# set to --no-cache-dir to disable pip caching
+CACHE_FLAG=
+STDOUT_IF_DEBUG=/dev/null
+STDERR_IF_DEBUG=/dev/null
+DASHQ_UNLESS_DEBUG=-q
+ITERATION="${ARVADOS_BUILDING_ITERATION:-1}"
+
+. `dirname "$(readlink -f "$0")"`/run-library.sh
+
+TYPE_LANG=$1
+SRC_PATH=$2
+
+if [[ "$TYPE_LANG" == "" ]] || [[ "$SRC_PATH" == "" ]]; then
+  echo "Syntax: $0 <lang> <src_path>"
+  echo
+  echo "Example: $0 go cmd/arvados-client"
+  echo "Example: $0 python3 services/fuse"
+  echo
+  exit 1
+fi
+
+if [[ "$WORKSPACE" == "" ]]; then
+  echo "The WORKSPACE environment variable must be set, pointing at the root of the arvados git tree"
+  exit 1
+fi
+
+
+debug_echo "package_go_binary $SRC_PATH"
+
+if [[ "$TYPE_LANG" == "go" ]]; then
+  calculate_go_package_version go_package_version $SRC_PATH
+  echo "${go_package_version}-${ITERATION}"
+elif [[ "$TYPE_LANG" == "python3" ]]; then
+
+  cd $WORKSPACE/$SRC_PATH
+
+  rm -rf dist/*
+
+  # Get the latest setuptools
+  if ! pip3 install $DASHQ_UNLESS_DEBUG $CACHE_FLAG -U 'setuptools<45'; then
+    echo "Error, unable to upgrade setuptools with"
+    echo "  pip3 install $DASHQ_UNLESS_DEBUG $CACHE_FLAG -U 'setuptools<45'"
+    exit 1
+  fi
+  # filter a useless warning (when building the cwltest package) from the stderr output
+  if ! python3 setup.py $DASHQ_UNLESS_DEBUG sdist 2> >(grep -v 'warning: no previously-included files matching' |grep -v 'for version number calculation'); then
+    echo "Error, unable to run python3 setup.py sdist for $SRC_PATH"
+    exit 1
+  fi
+
+  PYTHON_VERSION=$(awk '($1 == "Version:"){print $2}' *.egg-info/PKG-INFO)
+  UNFILTERED_PYTHON_VERSION=$(echo -n $PYTHON_VERSION | sed s/\.dev/~dev/g |sed 's/\([0-9]\)rc/\1~rc/g')
+
+  echo "${UNFILTERED_PYTHON_VERSION}-${ITERATION}"
+fi
+

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list