[arvados] updated: 2.7.0-6266-g2a0299c0a2

git repository hosting git at public.arvados.org
Tue Apr 2 20:51:15 UTC 2024


Summary of changes:
 build/run-tests.sh | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

       via  2a0299c0a203a14d3ac95d5afeb9ded6475e0f9e (commit)
      from  fab6a2603007e5ef60385148d09d51f3ed0f5b2c (commit)

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 2a0299c0a203a14d3ac95d5afeb9ded6475e0f9e
Author: Brett Smith <brett.smith at curii.com>
Date:   Tue Apr 2 16:50:41 2024 -0400

    21601: Add test for arvados_version.py synchronization
    
    Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith at curii.com>

diff --git a/build/run-tests.sh b/build/run-tests.sh
index ca7c793a49..b8d2081e6e 100755
--- a/build/run-tests.sh
+++ b/build/run-tests.sh
@@ -691,6 +691,7 @@ do_test() {
             check_arvados_config "$1"
             ;;
         gofmt \
+            | arvados_version.py \
             | cmd/arvados-package \
             | doc \
             | lib/boot \
@@ -1008,6 +1009,23 @@ test_gofmt() {
     go vet -composites=false ./...
 }
 
+test_arvados_version.py() {
+    local orig_fn=""
+    local fail_count=0
+    while read -d "" fn; do
+        if [[ -z "$orig_fn" ]]; then
+            orig_fn="$fn"
+        elif ! cmp "$orig_fn" "$fn"; then
+            fail_count=$(( $fail_count + 1 ))
+            printf "FAIL: %s and %s are not identical\n" "$orig_fn" "$fn"
+        fi
+    done < <(git -C "$WORKSPACE" ls-files -z | grep -z '/arvados_version\.py$')
+    case "$orig_fn" in
+        "") return 66 ;;  # EX_NOINPUT
+        *) return "$fail_count" ;;
+    esac
+}
+
 test_services/api() {
     rm -f "$WORKSPACE/services/api/git-commit.version"
     cd "$WORKSPACE/services/api" \
@@ -1105,6 +1123,7 @@ test_all() {
     fi
 
     do_test gofmt
+    do_test arvados_version.py
     do_test doc
     do_test sdk/ruby-google-api-client
     do_test sdk/ruby

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list