This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch areusch/freeze-dependencies in repository https://gitbox.apache.org/repos/asf/tvm.git
commit 31911ddda1952093c4d22374761c280b5e071834 Author: Andrew Reusch <[email protected]> AuthorDate: Fri May 13 17:14:08 2022 -0700 move pack/unpack earlier --- Jenkinsfile | 64 +++++++++++++++++++++++++------------------------- jenkins/Jenkinsfile.j2 | 62 ++++++++++++++++++++++++------------------------ 2 files changed, 63 insertions(+), 63 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e19ca26c11..f3869a4a6f 100755 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,7 +45,7 @@ // 'python3 jenkins/generate.py' // Note: This timestamp is here to ensure that updates to the Jenkinsfile are // always rebased on main before merging: -// Generated at 2022-05-13T17:18:24.432075 +// Generated at 2022-05-13T17:18:31.710370 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils // NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. --> @@ -323,6 +323,37 @@ stage('Lint') { // a method (so the code can't all be inlined) lint() +// Specifications to Jenkins "stash" command for use with various pack_ and unpack_ functions. +tvm_runtime = 'build/libtvm_runtime.so, build/config.cmake' // use libtvm_runtime.so. +tvm_lib = 'build/libtvm.so, ' + tvm_runtime // use libtvm.so to run the full compiler. +// LLVM upstream lib +tvm_multilib = 'build/libtvm.so, ' + + 'build/libvta_fsim.so, ' + + tvm_runtime + +tvm_multilib_tsim = 'build/libvta_tsim.so, ' + + tvm_multilib + +microtvm_tar_gz = 'build/microtvm_template_projects.tar.gz' + +// pack libraries for later use +def pack_lib(name, libs) { + sh (script: """ + echo "Packing ${libs} into ${name}" + echo ${libs} | sed -e 's/,/ /g' | xargs md5sum + """, label: 'Stash libraries and show md5') + stash includes: libs, name: name +} + +// unpack libraries saved before +def unpack_lib(name, libs) { + unstash name + sh (script: """ + echo "Unpacked ${libs} from ${name}" + echo ${libs} | sed -e 's/,/ /g' | xargs md5sum + """, label: 'Unstash libraries and show md5') +} + def freeze_python_deps() { hash = sh( returnStdout: true, @@ -523,37 +554,6 @@ def make(docker_type, path, make_flag) { } } -// Specifications to Jenkins "stash" command for use with various pack_ and unpack_ functions. -tvm_runtime = 'build/libtvm_runtime.so, build/config.cmake' // use libtvm_runtime.so. -tvm_lib = 'build/libtvm.so, ' + tvm_runtime // use libtvm.so to run the full compiler. -// LLVM upstream lib -tvm_multilib = 'build/libtvm.so, ' + - 'build/libvta_fsim.so, ' + - tvm_runtime - -tvm_multilib_tsim = 'build/libvta_tsim.so, ' + - tvm_multilib - -microtvm_tar_gz = 'build/microtvm_template_projects.tar.gz' - -// pack libraries for later use -def pack_lib(name, libs) { - sh (script: """ - echo "Packing ${libs} into ${name}" - echo ${libs} | sed -e 's/,/ /g' | xargs md5sum - """, label: 'Stash libraries and show md5') - stash includes: libs, name: name -} - -// unpack libraries saved before -def unpack_lib(name, libs) { - unstash name - sh (script: """ - echo "Unpacked ${libs} from ${name}" - echo ${libs} | sed -e 's/,/ /g' | xargs md5sum - """, label: 'Unstash libraries and show md5') -} - // compress microtvm template projects and pack the tar. def pack_microtvm_template_projects(name) { sh( diff --git a/jenkins/Jenkinsfile.j2 b/jenkins/Jenkinsfile.j2 index 23bbc1e263..d7ccdc168c 100644 --- a/jenkins/Jenkinsfile.j2 +++ b/jenkins/Jenkinsfile.j2 @@ -240,6 +240,37 @@ stage('Lint') { // a method (so the code can't all be inlined) lint() +// Specifications to Jenkins "stash" command for use with various pack_ and unpack_ functions. +tvm_runtime = 'build/libtvm_runtime.so, build/config.cmake' // use libtvm_runtime.so. +tvm_lib = 'build/libtvm.so, ' + tvm_runtime // use libtvm.so to run the full compiler. +// LLVM upstream lib +tvm_multilib = 'build/libtvm.so, ' + + 'build/libvta_fsim.so, ' + + tvm_runtime + +tvm_multilib_tsim = 'build/libvta_tsim.so, ' + + tvm_multilib + +microtvm_tar_gz = 'build/microtvm_template_projects.tar.gz' + +// pack libraries for later use +def pack_lib(name, libs) { + sh (script: """ + echo "Packing ${libs} into ${name}" + echo ${libs} | sed -e 's/,/ /g' | xargs md5sum + """, label: 'Stash libraries and show md5') + stash includes: libs, name: name +} + +// unpack libraries saved before +def unpack_lib(name, libs) { + unstash name + sh (script: """ + echo "Unpacked ${libs} from ${name}" + echo ${libs} | sed -e 's/,/ /g' | xargs md5sum + """, label: 'Unstash libraries and show md5') +} + def freeze_python_deps() { hash = sh( returnStdout: true, @@ -386,37 +417,6 @@ def make(docker_type, path, make_flag) { } } -// Specifications to Jenkins "stash" command for use with various pack_ and unpack_ functions. -tvm_runtime = 'build/libtvm_runtime.so, build/config.cmake' // use libtvm_runtime.so. -tvm_lib = 'build/libtvm.so, ' + tvm_runtime // use libtvm.so to run the full compiler. -// LLVM upstream lib -tvm_multilib = 'build/libtvm.so, ' + - 'build/libvta_fsim.so, ' + - tvm_runtime - -tvm_multilib_tsim = 'build/libvta_tsim.so, ' + - tvm_multilib - -microtvm_tar_gz = 'build/microtvm_template_projects.tar.gz' - -// pack libraries for later use -def pack_lib(name, libs) { - sh (script: """ - echo "Packing ${libs} into ${name}" - echo ${libs} | sed -e 's/,/ /g' | xargs md5sum - """, label: 'Stash libraries and show md5') - stash includes: libs, name: name -} - -// unpack libraries saved before -def unpack_lib(name, libs) { - unstash name - sh (script: """ - echo "Unpacked ${libs} from ${name}" - echo ${libs} | sed -e 's/,/ /g' | xargs md5sum - """, label: 'Unstash libraries and show md5') -} - // compress microtvm template projects and pack the tar. def pack_microtvm_template_projects(name) { sh(
