4545// 'python3 jenkins/generate.py'
4646// Note: This timestamp is here to ensure that updates to the Jenkinsfile are
4747// always rebased on main before merging:
48- // Generated at 2022-04-22T12:59:15.071304
48+ // Generated at 2022-04-26T14:53:42.817114
4949
5050import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
5151// NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. -->
@@ -92,7 +92,7 @@ upstream_revision = null
9292docker_run = ' docker/bash.sh --env CI --env TVM_SHARD_INDEX --env TVM_NUM_SHARDS --env RUN_DISPLAY_URL --env PLATFORM'
9393docker_build = ' docker/build.sh'
9494// timeout in minutes
95- max_time = 240
95+ max_time = 120
9696rebuild_docker_images = false
9797
9898def per_exec_ws (folder ) {
@@ -837,17 +837,52 @@ stage('Test') {
837837 Utils . markStageSkippedForConditional(' python: i386 2 of 2' )
838838 }
839839 },
840- ' test: Hexagon' : {
840+ ' test: Hexagon 1 of 4 ' : {
841841 if (! skip_ci && is_docs_only_build != 1 ) {
842842 node(' CPU' ) {
843843 ws(" workspace/exec_${ env.EXECUTOR_NUMBER} /tvm/test-hexagon" ) {
844- timeout(time : max_time, unit : ' MINUTES' ) {
845- try {
846- init_git()
847- withEnv([' PLATFORM=hexagon' ], {
844+ try {
845+ init_git()
846+ timeout(time : max_time, unit : ' MINUTES' ) {
847+ withEnv([
848+ ' PLATFORM=hexagon' ,
849+ ' TVM_NUM_SHARDS=4' ,
850+ ' TVM_SHARD_INDEX=0' ], {
851+ unpack_lib(' hexagon' , tvm_lib)
852+ ci_setup(ci_hexagon)
853+ cpp_unittest(ci_hexagon)
854+ sh (
855+ script : " ${ docker_run} ${ ci_hexagon} ./tests/scripts/task_build_hexagon_api.sh" ,
856+ label : ' Build Hexagon API' ,
857+ )
858+ sh (
859+ script : " ${ docker_run} ${ ci_hexagon} ./tests/scripts/task_python_hexagon.sh" ,
860+ label : ' Run Hexagon tests' ,
861+ )
862+ })
863+ }
864+ } finally {
865+ junit ' build/pytest-results/*.xml'
866+ }
867+ }
868+ }
869+ } else {
870+ Utils . markStageSkippedForConditional(' test: Hexagon 1 of 4' )
871+ }
872+ },
873+ ' test: Hexagon 2 of 4' : {
874+ if (! skip_ci && is_docs_only_build != 1 ) {
875+ node(' CPU' ) {
876+ ws(" workspace/exec_${ env.EXECUTOR_NUMBER} /tvm/test-hexagon" ) {
877+ try {
878+ init_git()
879+ timeout(time : max_time, unit : ' MINUTES' ) {
880+ withEnv([
881+ ' PLATFORM=hexagon' ,
882+ ' TVM_NUM_SHARDS=4' ,
883+ ' TVM_SHARD_INDEX=1' ], {
848884 unpack_lib(' hexagon' , tvm_lib)
849885 ci_setup(ci_hexagon)
850- cpp_unittest(ci_hexagon)
851886 sh (
852887 script : " ${ docker_run} ${ ci_hexagon} ./tests/scripts/task_build_hexagon_api.sh" ,
853888 label : ' Build Hexagon API' ,
@@ -857,14 +892,78 @@ stage('Test') {
857892 label : ' Run Hexagon tests' ,
858893 )
859894 })
860- } finally {
861- junit ' build/pytest-results/*.xml'
862895 }
896+ } finally {
897+ junit ' build/pytest-results/*.xml'
898+ }
899+ }
900+ }
901+ } else {
902+ Utils . markStageSkippedForConditional(' test: Hexagon 2 of 4' )
903+ }
904+ },
905+ ' test: Hexagon 3 of 4' : {
906+ if (! skip_ci && is_docs_only_build != 1 ) {
907+ node(' CPU' ) {
908+ ws(" workspace/exec_${ env.EXECUTOR_NUMBER} /tvm/test-hexagon" ) {
909+ try {
910+ init_git()
911+ timeout(time : max_time, unit : ' MINUTES' ) {
912+ withEnv([
913+ ' PLATFORM=hexagon' ,
914+ ' TVM_NUM_SHARDS=4' ,
915+ ' TVM_SHARD_INDEX=2' ], {
916+ unpack_lib(' hexagon' , tvm_lib)
917+ ci_setup(ci_hexagon)
918+ sh (
919+ script : " ${ docker_run} ${ ci_hexagon} ./tests/scripts/task_build_hexagon_api.sh" ,
920+ label : ' Build Hexagon API' ,
921+ )
922+ sh (
923+ script : " ${ docker_run} ${ ci_hexagon} ./tests/scripts/task_python_hexagon.sh" ,
924+ label : ' Run Hexagon tests' ,
925+ )
926+ })
927+ }
928+ } finally {
929+ junit ' build/pytest-results/*.xml'
930+ }
931+ }
932+ }
933+ } else {
934+ Utils . markStageSkippedForConditional(' test: Hexagon 3 of 4' )
935+ }
936+ },
937+ ' test: Hexagon 4 of 4' : {
938+ if (! skip_ci && is_docs_only_build != 1 ) {
939+ node(' CPU' ) {
940+ ws(" workspace/exec_${ env.EXECUTOR_NUMBER} /tvm/test-hexagon" ) {
941+ try {
942+ init_git()
943+ timeout(time : max_time, unit : ' MINUTES' ) {
944+ withEnv([
945+ ' PLATFORM=hexagon' ,
946+ ' TVM_NUM_SHARDS=4' ,
947+ ' TVM_SHARD_INDEX=3' ], {
948+ unpack_lib(' hexagon' , tvm_lib)
949+ ci_setup(ci_hexagon)
950+ sh (
951+ script : " ${ docker_run} ${ ci_hexagon} ./tests/scripts/task_build_hexagon_api.sh" ,
952+ label : ' Build Hexagon API' ,
953+ )
954+ sh (
955+ script : " ${ docker_run} ${ ci_hexagon} ./tests/scripts/task_python_hexagon.sh" ,
956+ label : ' Run Hexagon tests' ,
957+ )
958+ })
959+ }
960+ } finally {
961+ junit ' build/pytest-results/*.xml'
863962 }
864963 }
865964 }
866965 } else {
867- Utils . markStageSkippedForConditional(' test: Hexagon' )
966+ Utils . markStageSkippedForConditional(' test: Hexagon 4 of 4 ' )
868967 }
869968 },
870969 ' test: QEMU' : {
0 commit comments