gitlab-ci/autobuild: Add new build confirming behaviour on older MIT Kerberos
authorAndrew Bartlett <abartlet@samba.org>
Wed, 18 Aug 2021 02:59:47 +0000 (14:59 +1200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 26 Aug 2021 06:16:35 +0000 (06:16 +0000)
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 <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
.gitlab-ci-main.yml
script/autobuild.py

index 657b28e274ff5b623ef7a35af6564c818710cc70..0ac6f67fcdfada1c0a2bda62bc545f5cf1e71332 100644 (file)
@@ -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
 
index 2338712c5cbfec3ebafde9ea4d81fa9b034f8b59..1b2c4c18d6a110f29a456fc85fe1d30bb1e82c22 100755 (executable)
@@ -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),