[SCM] Samba Shared Repository - branch v4-14-test updated

Jule Anger janger at samba.org
Thu Sep 23 08:55:01 UTC 2021


The branch, v4-14-test has been updated
       via  f53c532c229 autobuild: allow AUTOBUILD_FAIL_IMMEDIATELY=0 (say from a gitlab variable)
      from  53b48cbe9a8 tests/krb5: Allow KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN for a missing sname

https://git.samba.org/?p=samba.git;a=shortlog;h=v4-14-test


- Log -----------------------------------------------------------------
commit f53c532c2292d07ab3374920bd83c1266663038e
Author: Andrew Bartlett <abartlet at samba.org>
Date:   Fri Sep 17 16:43:00 2021 +1200

    autobuild: allow AUTOBUILD_FAIL_IMMEDIATELY=0 (say from a gitlab variable)
    
    This allows making a push to do a full test ignoring errors without
    needing "HACK!!!" commits on top.
    
    Use like this:
    
    git push -o ci.variable='AUTOBUILD_FAIL_IMMEDIATELY=0'
    
    RN: Samba CI runs can now continue past the first error if AUTOBUILD_FAIL_IMMEDIATELY=0 is set
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=14841
    
    Signed-off-by: Andrew Bartlett <abartlet at samba.org>
    Reviewed-by: Michael Adam <obnox at samba.org
    Reviewed-by: Noel Power <npower at samba.org>
    
    [abartlet at samba.org backported from commit b81f6f3d71487085bb355392ce7f8eff2db5bb4d
     due to changes in 4.15 and later for the autobuild dependent jobs work
     that avoids rebuilding Samba in each task]
    
    Autobuild-User(v4-14-test): Jule Anger <janger at samba.org>
    Autobuild-Date(v4-14-test): Thu Sep 23 08:54:03 UTC 2021 on sn-devel-184

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

Summary of changes:
 script/autobuild.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/script/autobuild.py b/script/autobuild.py
index dded5c9dec9..c069e1d3ccd 100755
--- a/script/autobuild.py
+++ b/script/autobuild.py
@@ -159,7 +159,6 @@ def format_option(name, value=None):
 
 def make_test(
         cmd='make test',
-        FAIL_IMMEDIATELY=1,
         TESTS='',
         include_envs=None,
         exclude_envs=None):
@@ -174,7 +173,13 @@ def make_test(
         TESTS = (TESTS + ' ' + ' '.join(test_options)).strip()
 
     _options = []
-    if FAIL_IMMEDIATELY:
+
+    # Allow getting a full CI with
+    # git push -o ci.variable='AUTOBUILD_FAIL_IMMEDIATELY=0'
+
+    FAIL_IMMEDIATELY = os.getenv("AUTOBUILD_FAIL_IMMEDIATELY", "1")
+
+    if int(FAIL_IMMEDIATELY):
         _options.append('FAIL_IMMEDIATELY=1')
     if TESTS:
         _options.append("TESTS='{}'".format(TESTS))


-- 
Samba Shared Repository



More information about the samba-cvs mailing list