From 7502bf9928780648b8c1f79ab24eb53e3f1d620d Mon Sep 17 00:00:00 2001 From: drebs Date: Wed, 5 Jul 2017 16:26:49 -0300 Subject: [benchmarks] move adbapi tuning script to benchmark scripts folder --- .gitlab-ci.yml | 4 ++-- scripts/benchmark/tune-adbapi-parameters.sh | 10 ++++++++++ tune-adbapi-parameters.sh | 10 ---------- 3 files changed, 12 insertions(+), 12 deletions(-) create mode 100755 scripts/benchmark/tune-adbapi-parameters.sh delete mode 100755 tune-adbapi-parameters.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 03af5822..bfbba031 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -86,9 +86,9 @@ benchmark: testing/tests/benchmarks/conftest.py testing/tests/conftest.py testing/check-pysqlcipher.py - - git checkout leap/benchmark-all-commits tune-adbapi-parameters.sh + - git checkout leap/benchmark-all-commits scripts/benchmark/tune-adbapi-parameters.sh # ensure larger timeout and more retries for async/concurrent sqlcipher access - - ./tune-adbapi-parameters.sh + - ./scripts/benchmark/tune-adbapi-parameters.sh - git status - git show -s --pretty=fuller - cd testing diff --git a/scripts/benchmark/tune-adbapi-parameters.sh b/scripts/benchmark/tune-adbapi-parameters.sh new file mode 100755 index 00000000..22408d86 --- /dev/null +++ b/scripts/benchmark/tune-adbapi-parameters.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +FILE=client/src/leap/soledad/client/adbapi.py + +if [ ! -f ${FILE} ]; then + exit 0 +fi + +sed -i -e "s/\(SQLCIPHER_MAX_RETRIES\) =.*/\1 = 100/" ${FILE} +sed -i -e "s/\(SQLCIPHER_CONNECTION_TIMEOUT\) =.*/\1 = 100/" ${FILE} diff --git a/tune-adbapi-parameters.sh b/tune-adbapi-parameters.sh deleted file mode 100755 index 22408d86..00000000 --- a/tune-adbapi-parameters.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -FILE=client/src/leap/soledad/client/adbapi.py - -if [ ! -f ${FILE} ]; then - exit 0 -fi - -sed -i -e "s/\(SQLCIPHER_MAX_RETRIES\) =.*/\1 = 100/" ${FILE} -sed -i -e "s/\(SQLCIPHER_CONNECTION_TIMEOUT\) =.*/\1 = 100/" ${FILE} -- cgit v1.2.3