summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-04-26 13:37:05 +0200
committerdrebs <drebs@leap.se>2017-07-03 14:20:00 -0300
commitcd4845d50bdb7026a7a9a04453c39ce5e7c786cf (patch)
tree2293db5d4138f9caf980e32bd1357f9596616c0e
parent6a1459d51f7142ba8bf2c52d5e4e4b3fef55347b (diff)
[test] Use script to tune adbapi parameters istead of cherry-pick.
-rw-r--r--.gitlab-ci.yml3
-rwxr-xr-xtune-adbpi-parameters.sh10
2 files changed, 12 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 16106986..f4238cf1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -79,8 +79,9 @@ benchmark:
- git remote add leap https://leap.se/git/soledad
- git fetch leap
- git checkout leap/master testing/tox.ini testing/tests/benchmarks/conftest.py testing/tests/conftest.py
+ - git checkout leap/benchmark-all-commits tune-adbapi-parameters.sh
# ensure larger timeout and more retries for async/concurrent sqlcipher access
- - git cherry-pick a052c150ae1276f643e3b6e049e45571fe1a7b70
+ - ./tune-adbpi-parameters.sh
- git status
- git show -s --pretty=fuller
- cd testing
diff --git a/tune-adbpi-parameters.sh b/tune-adbpi-parameters.sh
new file mode 100755
index 00000000..22408d86
--- /dev/null
+++ b/tune-adbpi-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}