Skip to content

Commit

Permalink
Remove Ubuntu 18.04 jobs and conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
anjalirai-intel committed Jun 12, 2023
1 parent 800d939 commit 64f2d92
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 363 deletions.
146 changes: 0 additions & 146 deletions ci/dockerfile/ubuntu18.04.dockerfile

This file was deleted.

143 changes: 52 additions & 91 deletions ci/lib/stage-test-examples.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,11 @@ stage('test-examples') {
gramine-${MODE} java MultiThreadMain | tee OUTPUT
'''
}
} catch (Exception e) {
env.build_ok = false
sh 'echo "Openjdk Example Test Failed"'
}
} catch (Exception e) { }
}

if (!["debian11", "almalinux9", "rockylinux9", "centos9"].contains(env.base_os)) {
if ((Float.parseFloat(env.os_version) < 21) && !((env.node_label == "graphene_18.04_5.19") && (env.SGX == '1')))
{
if ((Float.parseFloat(env.os_version) < 21)) {
try {
timeout(time: 60, unit: 'MINUTES') {
sh '''
Expand All @@ -46,22 +42,14 @@ stage('test-examples') {
sed -i "s/\\/usr\\/bin\\/env python/\\/usr\\/bin\\/env python3/" tensorflow/tensorflow/tools/git/gen_git_source.py
make GRAMINE_LOG_LEVEL=all PYTHON_BIN_PATH=${PYTHON_BIN_PATH}
fi
make GRAMINE_LOG_LEVEL=all all
make all
make ${MAKEOPTS} run-gramine | tee OUTPUT
'''
}
} catch (Exception e){
env.build_ok = false
sh 'echo "TensorFlow Example Test Failed"'
} finally {
try{
archiveArtifacts 'CI-Examples/tensorflow-lite/OUTPUT'
} catch (Exception ee){
sh 'echo "WARNING: TensorFlow Example Test OUTPUT not found"'
}
}
} catch (Exception e) { }
}
}

try {
timeout(time: 10, unit: 'MINUTES') {
sh '''
Expand All @@ -70,10 +58,7 @@ stage('test-examples') {
make ${MAKEOPTS} check | tee RESULT
'''
}
} catch (Exception e){
env.build_ok = false
sh 'echo "Curl Example Test Failed"'
}
} catch (Exception e) { }

try {
timeout(time: 5, unit: 'MINUTES') {
Expand All @@ -87,68 +72,55 @@ stage('test-examples') {
make ${MAKEOPTS} check | tee RESULT
'''
}
} catch (Exception e) { }

try {
timeout(time: (env.EDMM ? 45 : 20), unit: 'MINUTES') {
sh '''
cd CI-Examples/r
if [ "${os_release_id}" != 'ubuntu' ] && [ "${os_release_id}" != 'debian' ]
then
export R_HOME=/usr/lib64/R
sed -i \'/^sgx.trusted_files = \\[.*/a "file:/usr/bin/which",\' R.manifest.template
sed -i \'/^sgx.trusted_files = \\[.*/a "file:/usr/bin/uname",\' R.manifest.template
sed -i \'/^sgx.trusted_files = \\[.*/a "file:/usr/bin/sh",\' R.manifest.template
sed -i \'/^sgx.trusted_files = \\[.*/a "file:/usr/bin/rm",\' R.manifest.template
fi
if [ "${os_release_id}" = 'centos' ]
then
sed -i \'/^sgx.trusted_files = \\[.*/a "file:/usr/bin/coreutils",\' R.manifest.template
sed -i \'/^sgx.trusted_files = \\[.*/a "file:/usr/lib64/libcap.so.2",\' R.manifest.template
fi
make ${MAKEOPTS} all
gramine-${MODE} ./R --slave --vanilla -f scripts/sample.r | tee RESULT_1
'''
}
} catch (Exception e) { }

try {
timeout(time: 15, unit: 'MINUTES') {
sh '''
cd CI-Examples/pytorch
python3 download-pretrained-model.py
make ${MAKEOPTS} all
gramine-${MODE} ./pytorch ./pytorchexample.py
'''
}
} catch (Exception e){
env.build_ok = false
sh 'echo "Nodejs Example Test Failed"'
sh 'echo "Pytorch Example Test Failed"'
}

if (!((node_label == 'graphene_18.04_5.19') && (env.SGX == '1'))) {
if (os_release_id == "ubuntu") {
try {
timeout(time: (env.EDMM ? 45 : 20), unit: 'MINUTES') {
timeout(time: (env.EDMM ? 60 : 10), unit: 'MINUTES') {
sh '''
cd CI-Examples/r
if [ "${os_release_id}" != 'ubuntu' ] && [ "${os_release_id}" != 'debian' ]
then
export R_HOME=/usr/lib64/R
sed -i \'/^sgx.trusted_files = \\[.*/a "file:/usr/bin/which",\' R.manifest.template
sed -i \'/^sgx.trusted_files = \\[.*/a "file:/usr/bin/uname",\' R.manifest.template
sed -i \'/^sgx.trusted_files = \\[.*/a "file:/usr/bin/sh",\' R.manifest.template
sed -i \'/^sgx.trusted_files = \\[.*/a "file:/usr/bin/rm",\' R.manifest.template
fi
if [ "${os_release_id}" = 'centos' ]
then
sed -i \'/^sgx.trusted_files = \\[.*/a "file:/usr/bin/coreutils",\' R.manifest.template
sed -i \'/^sgx.trusted_files = \\[.*/a "file:/usr/lib64/libcap.so.2",\' R.manifest.template
fi
make ${MAKEOPTS} all
gramine-${MODE} ./R --slave --vanilla -f scripts/sample.r | tee RESULT_1
'''
}
} catch (Exception e){
env.build_ok = false
sh 'echo "R Example Test Failed"'
}
}

if (!((node_label == 'graphene_18.04_5.19') && (env.SGX == '1'))) {
try {
timeout(time: 15, unit: 'MINUTES') {
sh '''
cd CI-Examples/pytorch
python3 download-pretrained-model.py
cd CI-Examples/gcc
make ${MAKEOPTS} all
gramine-${MODE} ./pytorch ./pytorchexample.py
make ${MAKEOPTS} check | tee OUTPUT
'''
}
} catch (Exception e){
env.build_ok = false
sh 'echo "Pytorch Example Test Failed"'
}

if (os_release_id == "ubuntu") {
try {
timeout(time: (env.EDMM ? 60 : 10), unit: 'MINUTES') {
sh '''
cd CI-Examples/gcc
make ${MAKEOPTS} all
make ${MAKEOPTS} check | tee OUTPUT
'''
}
} catch (Exception e){
env.build_ok = false
sh 'echo "GCC Example Test Failed"'
}
}
} catch (Exception e) { }
}

if (!((env.no_cpu.toInteger() < 16) && (env.SGX == '1'))) {
Expand All @@ -168,10 +140,7 @@ stage('test-examples') {
gramine-${MODE} benchmark_app -m model/intel/${model_name}/FP32/${model_name}.xml | tee OUTPUT
'''
}
} catch (Exception e){
env.build_ok = false
sh 'echo "OpenVino Example Test Failed"'
}
} catch (Exception e) { }
}

if ((Float.parseFloat(env.os_version) >= 20) && (env.os_release_id == "ubuntu")) {
Expand All @@ -186,10 +155,7 @@ stage('test-examples') {
./run_tests.sh | tee RESULT
'''
}
} catch (Exception e) {
env.build_ok = false
sh 'echo "Scikit-learn Example Test Failed"'
}
} catch (Exception e) { }

try {
timeout(time: (env.EDMM ? 60 : 20), unit: 'MINUTES') {
Expand All @@ -206,13 +172,11 @@ stage('test-examples') {
make ${MAKEOPTS} check 2>&1 | tee RESULT
'''
}
} catch (Exception e) {
env.build_ok = false
sh 'echo "Tensorflow Serving Example Test Failed"'
}
} catch (Exception e) { }
}
}
if (env.os_release_id != "debian"){

if (env.os_release_id != "debian") {
try {
timeout(time: 30, unit: 'MINUTES') {
sh '''
Expand All @@ -229,9 +193,6 @@ stage('test-examples') {
LOOP=1 CONCURRENCY_LIST="1 32" ../common_tools/benchmark-http.sh http://127.0.0.1:3000 | tee RESULT
'''
}
} catch (Exception e){
env.build_ok = false
sh 'echo "Rust example Test Failed"'
}
} catch (Exception e) { }
}
}
5 changes: 0 additions & 5 deletions ci/resources/setup_ltp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ then
cp -f manifest_RHEL.template manifest.template
fi

if [[ "$base_os" == *"18.04"* ]]
then
cp -f manifest_18_04.template manifest.template
fi

if [[ "$base_os" == *"20.04"* ]] || [[ "$base_os" == *"22.04"* ]]
then
cp -f manifest_20_04_21_10.template manifest.template
Expand Down
4 changes: 0 additions & 4 deletions ci/resources/setup_workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,3 @@ if [[ "$base_os" == *"centos"* ]]; then
fi

cd $WORKSPACE/gramine/libos/test/regression
if [[ "$base_os" == *"ubuntu18.04"* ]]; then
sed -i '/ "rwlock",/d' tests.toml tests_musl.toml
sed -i -e "/rwlock/,+5d" meson.build
fi
Loading

0 comments on commit 64f2d92

Please sign in to comment.