From: Andrew Bartlett Date: Wed, 18 Aug 2021 02:59:47 +0000 (+1200) Subject: gitlab-ci/autobuild: Add new build confirming behaviour on older MIT Kerberos X-Git-Tag: ldb-2.5.0~840 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6145c388d201d817444322dee67ca1ec1989ecd1;p=thirdparty%2Fsamba.git gitlab-ci/autobuild: Add new build confirming behaviour on older MIT Kerberos Because the MIT KDC builds are moving to current MIT and out of the default autobuild this ensures that on our default host, which is closer to what most of our users operate, Samba still works with Kerberos. This uses the ktest environment that does not require the KDC to exist and instead uses a static ccache and keytab. Signed-off-by: Andrew Bartlett Reviewed-by: Andreas Schneider --- diff --git a/.gitlab-ci-main.yml b/.gitlab-ci-main.yml index 657b28e274f..0ac6f67fcdf 100644 --- a/.gitlab-ci-main.yml +++ b/.gitlab-ci-main.yml @@ -383,6 +383,13 @@ samba-fips: samba-fileserver: extends: .needs_samba-h5l-build-private +# This is a full build without the AD DC so we test the build with MIT +# Kerberos from the default system (Ubuntu 18.04 at this stage). +# Runtime behaviour checked via the ktest (static ccache and keytab) +# environment +samba-ktest-mit: + extends: .shared_template + samba-ad-dc-1: extends: .needs_samba-def-build-private diff --git a/script/autobuild.py b/script/autobuild.py index 2338712c5cb..1b2c4c18d6a 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -430,8 +430,28 @@ tasks = { "fileserver_smb1", "fileserver_smb1_done", "maptoguest", - "ktest", # ktest is also tested in samba and samba-mitkrb5 - # but is tested here against a system Heimdal + "ktest", # ktest is also tested in samba-ktest-mit samba + # and samba-mitkrb5 but is tested here against + # a system Heimdal + ])), + ("lcov", LCOV_CMD), + ("check-clean-tree", CLEAN_SOURCE_TREE_CMD), + ], + }, + + # This is a full build without the AD DC so we test the build with + # MIT Kerberos from the current system. Runtime behaviour is + # confirmed via the ktest (static ccache and keytab) environment + + "samba-ktest-mit": { + "sequence": [ + ("random-sleep", random_sleep(300, 900)), + ("configure", "./configure.developer --without-ad-dc --with-system-mitkrb5 " + samba_configure_params), + ("make", "make -j"), + ("test", make_test(include_envs=[ + "ktest", # ktest is also tested in fileserver, samba and + # samba-mitkrb5 but is tested here against a + # system MIT krb5 ])), ("lcov", LCOV_CMD), ("check-clean-tree", CLEAN_SOURCE_TREE_CMD),