]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Separate bulk test deps from regression test deps
authorOtto <otto.moerbeek@open-xchange.com>
Wed, 3 Nov 2021 10:22:57 +0000 (11:22 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Wed, 3 Nov 2021 10:48:49 +0000 (11:48 +0100)
.github/workflows/build-and-test-all.yml
tasks.py

index 8bd2917032322e56660f9ac928eb0955176c52e1..731a8095fe7e03cee237e6ea8d80468535731859 100644 (file)
@@ -335,7 +335,7 @@ jobs:
           path: /opt/pdns-recursor
       - run: build-scripts/gh-actions-setup-inv  # this runs apt update+upgrade
       - run: inv install-clang-runtime
-      - run: inv install-rec-test-deps
+      - run: inv install-rec-bulk-deps
       - run: inv test-bulk-recursor ${{ matrix.threads }} ${{ matrix.mthreads }} ${{ matrix.shards }}
 
   test-dnsdist-regression:
index be67db924a9f22cd05f2aafff1e8d937c73953d0..5350513943d1672668d3f214f2a655a348b9b549 100644 (file)
--- a/tasks.py
+++ b/tasks.py
@@ -51,6 +51,20 @@ rec_build_deps = [
     'libfstrm-dev',
     'libsnmp-dev',
 ]
+rec_bulk_deps = [
+    'curl',
+    'unzip',
+    'moreutils',
+    'pdns-tools',
+    'libluajit-5.1-2',
+    'libboost-all-dev',
+    'libcap2',
+    'libssl1.1',
+    'libsystemd0',
+    'libsodium23',
+    'libfstrm0',
+    'libsnmp35'
+]
 dnsdist_build_deps = [
     'libcap-dev',
     'libcdb-dev',
@@ -156,23 +170,18 @@ def install_auth_test_deps(c, backend): # FIXME: rename this, we do way more tha
     # FIXME we may want to start a background recursor here to make ALIAS tests more robust
     setup_authbind(c)
 
+@task
+def install_rec_bulk_deps(c): # FIXME: rename this, we do way more than apt-get
+    c.sudo('apt-get --no-install-recommends -qq -y install ' + ' '.join(rec_bulk_deps))
+    c.run('chmod +x /opt/pdns-recursor/bin/* /opt/pdns-recursor/sbin/*')
+
 @task
 def install_rec_test_deps(c): # FIXME: rename this, we do way more than apt-get
-    c.sudo('apt-get --no-install-recommends install -qq -y \
-              pdns-server curl unzip pdns-backend-bind pdns-tools daemontools \
-              jq libfaketime lua-posix lua-socket moreutils bc authbind \
+    c.sudo('apt-get --no-install-recommends install -qq -y ' + ' '.join(rec_bulk_deps) + ' \
+              pdns-server pdns-backend-bind daemontools \
+              jq libfaketime lua-posix lua-socket bc authbind \
               python3-venv python3-dev default-libmysqlclient-dev libpq-dev \
-              libluajit-5.1-2 \
-              libboost-all-dev \
-              libcap2 \
-              libssl1.1 \
-              libsystemd0 \
-              libsodium23 \
-              libfstrm0 \
-              libsnmp35 \
-              protobuf-compiler \
-              snmpd \
-              prometheus')
+              protobuf-compiler snmpd prometheus')
 
     c.run('chmod +x /opt/pdns-recursor/bin/* /opt/pdns-recursor/sbin/*')