Skip to content

Commit

Permalink
Jenkins job waits and holds the container for 100 hours in case failure
Browse files Browse the repository at this point in the history
  • Loading branch information
shosseinimotlagh committed Feb 7, 2024
1 parent 7ccd134 commit 529b590
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,17 @@ pipeline {

stage("Compile") {
steps {
sh "conan create ${BUILD_MISSING} -pr debug -o ${PROJECT}:sanitize=True . ${PROJECT}/${TAG} ; \
sh "hostname ; \
echo $NODE_NAME ; \
conan create ${BUILD_MISSING} -pr debug -o ${PROJECT}:sanitize=True . ${PROJECT}/${TAG} ; \
conan create ${BUILD_MISSING} -pr debug . ${PROJECT}/${TAG} ; \
conan create ${BUILD_MISSING} -pr test -o sisl:malloc_impl=tcmalloc . ${PROJECT}/${TAG} ; \
conan create ${BUILD_MISSING} -pr test -o sisl:prerelease=True -o sisl:malloc_impl=tcmalloc . ${PROJECT}/${TAG} ; \
"
}
post {
failure { script { sleep 3600000 } }
}
}

stage("Deploy") {
Expand Down
10 changes: 7 additions & 3 deletions src/tests/test_scripts/btree_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@
class TestFailedError(Exception):
pass

def long_runnig_index():
def long_runnig_index(type=0):
print("normal test started with (%s)" % (btree_options+ " " + run_time))
# " --operation_list=query:20 --operation_list=put:20 --operation_list=remove:20"
cmd_opts = "--gtest_filter=BtreeConcurrentTest/0.ConcurrentAllOps --gtest_break_on_failure " + btree_options + " "+log_mods + run_time
cmd_opts = "--gtest_filter=BtreeConcurrentTest/" + str(type) +".ConcurrentAllOps --gtest_break_on_failure " + btree_options + " "+log_mods + run_time
subprocess.check_call(dirpath + "test_index_btree " + cmd_opts, stderr=subprocess.STDOUT, shell=True)
print("Long running test completed")

Expand Down Expand Up @@ -147,7 +147,11 @@ def test_index_btree():
time.sleep(60)

def nightly():
# long_runnig_index()
long_runnig_index(0)
long_runnig_index(1)
long_runnig_index(2)
long_runnig_index(3)

# long_running_clean_shutdown()
test_index_btree()
# crash_recovery_framework()
Expand Down

0 comments on commit 529b590

Please sign in to comment.