From c0b5e7ce3e2da2ec06af3ad12094c685ea72f568 Mon Sep 17 00:00:00 2001 From: Egon Elbre Date: Fri, 13 Nov 2020 16:52:34 +0200 Subject: [PATCH] ci: ensure cockroach doesn't pollute repo Cockroach 20.2 started automatically profiling, this is a workaround to disable it and ensure it doesn't create any folders and files in the repository. Change-Id: Ib65de01ea1fc619160d710c01602ced3a3a3492e --- Jenkinsfile.public | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile.public b/Jenkinsfile.public index 1ece3f75c..ae7155353 100644 --- a/Jenkinsfile.public +++ b/Jenkinsfile.public @@ -12,6 +12,7 @@ pipeline { environment { NPM_CONFIG_CACHE = '/npm/cache' GOTRACEBACK = 'all' + COCKROACH_MEMPROF_INTERVAL=0 } stages { stage('Build') { @@ -31,11 +32,13 @@ pipeline { sh 'make -j4 build-packages' sh 'make install-sim' - sh 'cockroach start-single-node --insecure --store=type=mem,size=2GiB --listen-addr=localhost:26256 --http-addr=localhost:8086 --cache 512MiB --max-sql-memory 512MiB --background' - sh 'cockroach start-single-node --insecure --store=type=mem,size=2GiB --listen-addr=localhost:26257 --http-addr=localhost:8087 --cache 512MiB --max-sql-memory 512MiB --background' - sh 'cockroach start-single-node --insecure --store=type=mem,size=2GiB --listen-addr=localhost:26258 --http-addr=localhost:8088 --cache 512MiB --max-sql-memory 512MiB --background' - sh 'cockroach start-single-node --insecure --store=type=mem,size=2GiB --listen-addr=localhost:26259 --http-addr=localhost:8089 --cache 512MiB --max-sql-memory 512MiB --background' - sh 'cockroach start-single-node --insecure --store=type=mem,size=2GiB --listen-addr=localhost:26260 --http-addr=localhost:8090 --cache 256MiB --max-sql-memory 256MiB --background' + dir(".build") { + sh 'cockroach start-single-node --insecure --store=type=mem,size=2GiB --listen-addr=localhost:26256 --http-addr=localhost:8086 --cache 512MiB --max-sql-memory 512MiB --background' + sh 'cockroach start-single-node --insecure --store=type=mem,size=2GiB --listen-addr=localhost:26257 --http-addr=localhost:8087 --cache 512MiB --max-sql-memory 512MiB --background' + sh 'cockroach start-single-node --insecure --store=type=mem,size=2GiB --listen-addr=localhost:26258 --http-addr=localhost:8088 --cache 512MiB --max-sql-memory 512MiB --background' + sh 'cockroach start-single-node --insecure --store=type=mem,size=2GiB --listen-addr=localhost:26259 --http-addr=localhost:8089 --cache 512MiB --max-sql-memory 512MiB --background' + sh 'cockroach start-single-node --insecure --store=type=mem,size=2GiB --listen-addr=localhost:26260 --http-addr=localhost:8090 --cache 256MiB --max-sql-memory 256MiB --background' + } } }