Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package retry for openSUSE:Factory checked 
in at 2022-06-28 15:22:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/retry (Old)
 and      /work/SRC/openSUSE:Factory/.retry.new.1548 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "retry"

Tue Jun 28 15:22:55 2022 rev:2 rq:985528 version:1655407786.7ff7de5

Changes:
--------
--- /work/SRC/openSUSE:Factory/retry/retry.changes      2022-06-15 
00:32:09.826514526 +0200
+++ /work/SRC/openSUSE:Factory/.retry.new.1548/retry.changes    2022-06-28 
15:23:14.702020552 +0200
@@ -1,0 +2,14 @@
+Mon Jun 27 12:33:18 UTC 2022 - [email protected]
+
+- Update to version 1655407786.7ff7de5:
+  * CI: Fix mergify branch rule
+  * Add optional parameter for fine-tuning base factor
+  * Add mock for sleep
+  * Add tests for exponential back-off
+  * Add simple binary exponential back-off algorithm
+  * Document default sleep value
+  * dist: Rephrase summary trying to prevent name repetition
+  * dist: Skip build-tests due to test-more-bash absence
+  * CI: Rely on environment provided checkbashisms by default
+
+-------------------------------------------------------------------

Old:
----
  retry-1655022297.3f3b5a2.obscpio

New:
----
  retry-1655407786.7ff7de5.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ retry.spec ++++++
--- /var/tmp/diff_new_pack.8zH5Iz/_old  2022-06-28 15:23:15.154021227 +0200
+++ /var/tmp/diff_new_pack.8zH5Iz/_new  2022-06-28 15:23:15.158021234 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package retry
 #
-# Copyright SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,17 +12,18 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
+
 Name:           retry
-Version:        1655022297.3f3b5a2
+Version:        1655407786.7ff7de5
 Release:        0
 Summary:        A simple tool for retrying command executions in plain POSIX sh
 License:        MIT
 Group:          Development/Tools/Other
 BuildArch:      noarch
-Url:            https://github.com/okurz/retry
+URL:            https://github.com/okurz/retry
 Source0:        %{name}-%{version}.tar.xz
 
 %description

++++++ retry-1655022297.3f3b5a2.obscpio -> retry-1655407786.7ff7de5.obscpio 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/retry-1655022297.3f3b5a2/.mergify.yml 
new/retry-1655407786.7ff7de5/.mergify.yml
--- old/retry-1655022297.3f3b5a2/.mergify.yml   2022-06-12 10:24:57.000000000 
+0200
+++ new/retry-1655407786.7ff7de5/.mergify.yml   2022-06-16 21:29:46.000000000 
+0200
@@ -3,7 +3,7 @@
   - name: automatic merge
     conditions:
       - and: &base_checks
-        - base=master
+        - base=main
         - -label~=^acceptance-tests-needed|not-ready
         - "status-success~=test"
         - "status-success~=style"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/retry-1655022297.3f3b5a2/retry 
new/retry-1655407786.7ff7de5/retry
--- old/retry-1655022297.3f3b5a2/retry  2022-06-12 10:24:57.000000000 +0200
+++ new/retry-1655407786.7ff7de5/retry  2022-06-16 21:29:46.000000000 +0200
@@ -3,27 +3,32 @@
 usage() {
     echo "usage: $0 [options] [cmd...]
 options:
-    -h,--help               Show this help
-    -r,--retries=RETRIES    How many retries to do on command failure after the
-                            initial try. Defaults to 3.
-    -s,--sleep=SLEEP        How many seconds to sleep between retries
+    -h,--help                   Show this help
+    -r,--retries=RETRIES        How many retries to do on command failure after
+                                the initial try. Defaults to 3.
+    -s,--sleep=SLEEP            How many seconds to sleep between retries.
+                                Defaults to 3 seconds.
+    -e,--exponential[=FACTOR]   Enable simple exponential back-off algorithm.
+                                Disabled by default, factor defaults to 2
+                                (binary exponential back-off).
     "
     exit "$1"
 }
 
 # parse arguments
 opts=$(getopt \
-    --options h,r:,s: \
-    --longoptions help,retries:,sleep: \
+    --options h,r:,s:,e:: \
+    --longoptions help,retries:,sleep:,exponential:: \
     --name "$(basename "$0")" -- "$@") || usage 1
 eval set -- "$opts"
 while [ $# -gt 0 ]; do
   case "$1" in
-    -h | --help    ) usage 0; shift   ;;
-    -r | --retries ) retries=$2; shift 2 ;;
-    -s | --sleep   ) sleep=$2; shift 2 ;;
-    --             ) shift; break ;;
-    *              ) break ;;
+    -h | --help        ) usage 0; shift ;;
+    -r | --retries     ) retries=$2; shift 2 ;;
+    -s | --sleep       ) sleep=$2; shift 2 ;;
+    -e | --exponential ) exponential=${2:-2}; shift 2 ;;
+    --                 ) shift; break ;;
+    *                  ) break ;;
   esac
 done
 
@@ -35,5 +40,6 @@
     echo "Retrying up to $retries more times after sleeping ${sleep}s ???" >&2
     retries=$((retries-1))
     sleep "$sleep"
+    [ -n "$exponential" ] && sleep=$((sleep*exponential))
 done
 [ $retries -gt 0 ]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/retry-1655022297.3f3b5a2/test/01-retry.t 
new/retry-1655407786.7ff7de5/test/01-retry.t
--- old/retry-1655022297.3f3b5a2/test/01-retry.t        2022-06-12 
10:24:57.000000000 +0200
+++ new/retry-1655407786.7ff7de5/test/01-retry.t        2022-06-16 
21:29:46.000000000 +0200
@@ -13,10 +13,13 @@
 
 source bash+ :std
 use Test::More
-plan tests 10
+plan tests 12
 
 PATH=$dir/..:$PATH
 
+sleep() { :;}
+export -f sleep
+
 ok "$(retry)" 'retry without parameter is ok'
 like "$(retry --help)" usage: 'retry help is shown'
 ok $? 'calling help returns success'
@@ -25,8 +28,11 @@
 like "$out" 'unrecognized option.*usage:' 'retry help is shown for unknown 
option'
 ok "$(retry true)" 'successful command returns success'
 is "$(retry true)" '' 'successful command does not show any output by default'
-set +e; out=$(retry -s 0 false 2>&1); rc=$?; set -e
+set +e; out=$(retry false 2>&1); rc=$?; set -e
 like "$out" 'Retrying up to 3 more.*Retrying up to 1' 'failing command retries'
 is $rc 1 'failing command returns no success'
-set +e; out=$(retry -s 0 -r 1 -- sh -c 'echo -n .; false' 2>/dev/null); set -e
+set +e; out=$(retry -s 1 -e -r 2 false 2>&1); rc=$?; set -e
+like "$out" 'sleeping 1s.*sleeping 2s' 'sleep amount doubles'
+is $rc 1 'failing command returns no success'
+set +e; out=$(retry -r 1 -- sh -c 'echo -n .; false' 2>/dev/null); set -e
 is "$out" '..' 'specified number of tries (1+retries)'

++++++ retry.obsinfo ++++++
--- /var/tmp/diff_new_pack.8zH5Iz/_old  2022-06-28 15:23:15.286021425 +0200
+++ /var/tmp/diff_new_pack.8zH5Iz/_new  2022-06-28 15:23:15.286021425 +0200
@@ -1,5 +1,5 @@
 name: retry
-version: 1655022297.3f3b5a2
-mtime: 1655022297
-commit: 3f3b5a29ca4d80936d0e80530cda4b45c5925f7c
+version: 1655407786.7ff7de5
+mtime: 1655407786
+commit: 7ff7de5aec112c827dbea928990b4b8a20c1cf29
 

Reply via email to