from invoke import task
from invoke.exceptions import Failure, UnexpectedExit
+import json
import os
import sys
import time
auth_backend_ip_addr = os.getenv('AUTH_BACKEND_IP_ADDR', '127.0.0.1')
clang_version = os.getenv('CLANG_VERSION', '13')
-quiche_version = '0.20.1'
-quiche_hash = '9c460d8ecf6c80c06bf9b42f91201ef33f912e2615a871ff2d0e50197b901c71'
all_build_deps = [
'ccache',
'libsqlite3-dev',
'libyaml-cpp-dev',
'libzmq3-dev',
- 'ruby-bundler',
- 'ruby-dev',
+ 'python3-venv',
'sqlite3',
'unixodbc-dev',
'cmake',
'libzmq3-dev',
'lmdb-utils',
'prometheus',
- 'ruby-bundler',
- 'ruby-dev',
+ 'python3-venv',
'socat',
'softhsm2',
'unbound-host',
@task
def ci_install_rust(c, repo):
- c.sudo(f'{repo}/builder-support/helpers/install_rust.sh')
+ with c.cd(f'{repo}/builder-support/helpers/'):
+ c.run('sudo sh install_rust.sh')
def install_libdecaf(c, product):
c.run('git clone https://git.code.sf.net/p/ed448goldilocks/code /tmp/libdecaf')
@task
def ci_auth_install_remotebackend_test_deps(c):
- with c.cd('modules/remotebackend'):
- # c.run('bundle config set path vendor/bundle')
- c.run('sudo ruby -S bundle install')
c.sudo('apt-get install -y socat')
@task
res = c.run('make check', warn=True)
if res.exited != 0:
c.run('cat pdns/test-suite.log', warn=True)
- c.run('cat modules/remotebackend/test-suite.log', warn=True)
+ c.run('more modules/remotebackend/*.log', warn=True)
raise UnexpectedExit(res)
@task
https://scan.coverity.com/builds?project={project}', hide=True)
@task
-def ci_build_and_install_quiche(c):
+def ci_build_and_install_quiche(c, repo):
+ with open(f'{repo}/builder-support/helpers/quiche.json') as quiche_json:
+ quiche_data = json.load(quiche_json)
+ quiche_version = quiche_data['version']
+ quiche_hash = quiche_data['SHA256SUM']
+
# we have to pass -L because GitHub will do a redirect, sadly
c.run(f'curl -L -o quiche-{quiche_version}.tar.gz https://github.com/cloudflare/quiche/archive/{quiche_version}.tar.gz')
# Line below should echo two spaces between digest and name