Skip to content

Commit

Permalink
index service long running (eBay#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
shosseinimotlagh authored Nov 17, 2023
1 parent 1fd188a commit 0f460de
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 22 deletions.
19 changes: 19 additions & 0 deletions .jenkins/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# ########## ####### ############
FROM hub.tess.io/sds/sds_develop:4.x-latest
LABEL description="Automated HomeStore compilation"

WORKDIR /output

RUN set -eux; \
sed -i 's/master/latest/g' /etc/apt/sources.list; \
apt-get update; \
apt-get upgrade -y; \
apt-get install iputils-ping; \
apt-get install net-tools; \
rm -rf /var/lib/apt/lists/*;

COPY test_index_btree /usr/local/bin/test_index_btree
COPY btree_test.py /usr/local/bin/scripts/btree_test.py

EXPOSE 5000
# ########## ####### ############
27 changes: 6 additions & 21 deletions .jenkins/jenkinsfile_nightly
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
pipeline {
agent any
agent { label 'sds-builder-2204' }
triggers {
cron('TZ=US/Pacific\nH H(0-2) * * *')
}

environment {
ORG = 'sds'
ECR_URL = 'ecr.vip.ebayc3.com'
ECR_URL = 'hub.tess.io'
ARTIFACTORY_PASS = credentials('ARTIFACTORY_PASS')
CONAN_USER = 'sds'
failed_stage = ""
Expand All @@ -24,7 +24,7 @@ pipeline {
script {
PROJECT = sh(script: "grep -m 1 'name =' conanfile.py | awk '{print \$3}' | tr -d '\n' | tr -d '\"'", returnStdout: true)
VER = sh(script: "grep -m 1 'version =' conanfile.py | awk '{print \$3}' | tr -d '\n' | tr -d '\"'", returnStdout: true)
NIGHTLY_TAG = "master-nightly-debug"
NIGHTLY_TAG = "master-nightly-debug-4.0"
ECR_PATH = "${ECR_URL}/${ORG}/${PROJECT}"
failed_stage = ""
}
Expand All @@ -40,16 +40,9 @@ pipeline {
}
stage("Build") {
steps {
sh "conan create --build missing -o sisl:prerelease=True -o homestore:sanitize=True -o homestore:testing=full -o homestore:skip_testing=True -pr debug . ${PROJECT}/${VER}@"
sh "find ${CONAN_USER_HOME} -type f -wholename '*bin/test_load' -exec cp {} .jenkins/test_load \\;"
sh "find ${CONAN_USER_HOME} -type f -wholename '*bin/test_volume' -exec cp {} .jenkins/test_volume \\;"
sh "find ${CONAN_USER_HOME} -type f -wholename '*bin/check_btree' -exec cp {} .jenkins/check_btree \\;"
sh "find ${CONAN_USER_HOME} -type f -wholename '*bin/test_log_store' -exec cp {} .jenkins/test_log_store \\;"
sh "find ${CONAN_USER_HOME} -type f -wholename '*bin/test_meta_blk_mgr' -exec cp {} .jenkins/test_meta_blk_mgr \\;"
sh "find ${CONAN_USER_HOME} -type f -wholename '*bin/hs_svc_tool ' -exec cp {} .jenkins/hs_svc_tool \\;"
sh "find . -type f -wholename '*test_scripts/vol_test.py' -exec cp -a {} .jenkins/vol_test.py \\;"
sh "find ${CONAN_USER_HOME} -type d -wholename '*bin/scripts' -exec cp -a {} .jenkins/scripts \\;"
sh "find ${CONAN_USER_HOME} -type f -wholename '*bin/test_log_store' -exec cp {} .jenkins/test_log_store \\;"
sh "conan create --build missing -o sisl:prerelease=True -o homestore:sanitize=True -o homestore:skip_testing=True -pr debug . ${PROJECT}/${VER}@"
sh "find ${CONAN_USER_HOME} -type f -wholename '*bin/test_index_btree' -exec cp {} .jenkins/test_index_btree \\;"
sh "find ${CONAN_USER_HOME} -type f -wholename '*bin/scripts/btree_test.py' -exec install -Dm755 {} .jenkins/btree_test.py \\; "
}
post {
failure {
Expand Down Expand Up @@ -77,12 +70,4 @@ pipeline {
}
}
}

post {
failure {
script {
slackSend color: '#E43237', channel: '#homestore-build', message: "@here [Nightly] HomeStore build *${PROJECT}/${VER}* has had a failure in the stage ${failed_stage}: ${BUILD_URL}"
}
}
}
}
2 changes: 1 addition & 1 deletion src/tests/test_scripts/btree_test.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
def normal():
print("normal test started with (%s)" % btree_options)
# " --operation_list=query:20 --operation_list=put:20 --operation_list=remove:20"
cmd_opts = " --gtest_filter=BtreeConcurrentTest/*.ConcurrentAllOps" + btree_options + " "+log_mods
cmd_opts = " --gtest_filter=BtreeConcurrentTest/*.ConcurrentAllOps --gtest_break_on_failure " + btree_options + " "+log_mods
subprocess.check_call(dirpath + "test_index_btree " + cmd_opts, stderr=subprocess.STDOUT, shell=True)
print("normal test completed")

Expand Down

0 comments on commit 0f460de

Please sign in to comment.