Commit 33606741 by Tianqi Chen Committed by GitHub

[CI] Simplify labeling rules (#1554)

parent 9e337746
...@@ -36,7 +36,7 @@ def init_git_win() { ...@@ -36,7 +36,7 @@ def init_git_win() {
stage("Sanity Check") { stage("Sanity Check") {
timeout(time: max_time, unit: 'MINUTES') { timeout(time: max_time, unit: 'MINUTES') {
node('linux') { node('CPU') {
ws('workspace/tvm/sanity') { ws('workspace/tvm/sanity') {
init_git() init_git()
sh "${docker_run} tvmai/ci-lint ./tests/scripts/task_lint.sh" sh "${docker_run} tvmai/ci-lint ./tests/scripts/task_lint.sh"
...@@ -80,8 +80,8 @@ def unpack_lib(name, libs) { ...@@ -80,8 +80,8 @@ def unpack_lib(name, libs) {
} }
stage('Build') { stage('Build') {
parallel 'GPU': { parallel 'BUILD: GPU': {
node('GPU' && 'linux') { node('GPUBUILD') {
ws('workspace/tvm/build-gpu') { ws('workspace/tvm/build-gpu') {
init_git() init_git()
sh """ sh """
...@@ -117,8 +117,8 @@ stage('Build') { ...@@ -117,8 +117,8 @@ stage('Build') {
} }
} }
}, },
'CPU': { 'BUILD: CPU': {
node('CPU' && 'linux') { node('CPU') {
ws('workspace/tvm/build-cpu') { ws('workspace/tvm/build-cpu') {
init_git() init_git()
sh """ sh """
...@@ -139,8 +139,8 @@ stage('Build') { ...@@ -139,8 +139,8 @@ stage('Build') {
} }
} }
}, },
'i386': { 'BUILD : i386': {
node('CPU' && 'linux') { node('CPU') {
ws('workspace/tvm/build-i386') { ws('workspace/tvm/build-i386') {
init_git() init_git()
sh """ sh """
...@@ -162,18 +162,19 @@ stage('Build') { ...@@ -162,18 +162,19 @@ stage('Build') {
stage('Unit Test') { stage('Unit Test') {
parallel 'python2/3: GPU': { parallel 'python2/3: GPU': {
node('GPU' && 'linux') { node('GPU') {
ws('workspace/tvm/ut-python-gpu') { ws('workspace/tvm/ut-python-gpu') {
init_git() init_git()
unpack_lib('gpu', tvm_multilib) unpack_lib('gpu', tvm_multilib)
timeout(time: max_time, unit: 'MINUTES') { timeout(time: max_time, unit: 'MINUTES') {
sh "${docker_run} tvmai/ci-gpu ./tests/scripts/task_python_unittest.sh" sh "${docker_run} tvmai/ci-gpu ./tests/scripts/task_python_unittest.sh"
sh "${docker_run} tvmai/ci-gpu ./tests/scripts/task_python_integration.sh"
} }
} }
} }
}, },
'python2/3: i386': { 'python2/3: i386': {
node('CPU' && 'linux') { node('CPU') {
ws('workspace/tvm/ut-python-i386') { ws('workspace/tvm/ut-python-i386') {
init_git() init_git()
unpack_lib('i386', tvm_multilib) unpack_lib('i386', tvm_multilib)
...@@ -185,8 +186,8 @@ stage('Unit Test') { ...@@ -185,8 +186,8 @@ stage('Unit Test') {
} }
} }
}, },
'java': { 'java: GPU': {
node('GPU' && 'linux') { node('GPU') {
ws('workspace/tvm/ut-java') { ws('workspace/tvm/ut-java') {
init_git() init_git()
unpack_lib('gpu', tvm_multilib) unpack_lib('gpu', tvm_multilib)
...@@ -199,22 +200,31 @@ stage('Unit Test') { ...@@ -199,22 +200,31 @@ stage('Unit Test') {
} }
stage('Integration Test') { stage('Integration Test') {
parallel 'python': { parallel 'topi: GPU': {
node('GPU' && 'linux') { node('GPU') {
ws('workspace/tvm/it-python-gpu') { ws('workspace/tvm/it-python-gpu') {
init_git() init_git()
unpack_lib('gpu', tvm_multilib) unpack_lib('gpu', tvm_multilib)
timeout(time: max_time, unit: 'MINUTES') { timeout(time: max_time, unit: 'MINUTES') {
sh "${docker_run} tvmai/ci-gpu ./tests/scripts/task_python_integration.sh"
sh "${docker_run} tvmai/ci-gpu ./tests/scripts/task_python_topi.sh" sh "${docker_run} tvmai/ci-gpu ./tests/scripts/task_python_topi.sh"
sh "${docker_run} tvmai/ci-gpu ./tests/scripts/task_cpp_topi.sh" sh "${docker_run} tvmai/ci-gpu ./tests/scripts/task_cpp_topi.sh"
}
}
}
},
'nnvm: GPU': {
node('GPU') {
ws('workspace/tvm/it-python-gpu') {
init_git()
unpack_lib('gpu', tvm_multilib)
timeout(time: max_time, unit: 'MINUTES') {
sh "${docker_run} tvmai/ci-gpu ./tests/scripts/task_python_nnvm.sh" sh "${docker_run} tvmai/ci-gpu ./tests/scripts/task_python_nnvm.sh"
} }
} }
} }
}, },
'docs': { 'docs: GPU': {
node('GPU' && 'linux') { node('GPU') {
ws('workspace/tvm/docs-python-gpu') { ws('workspace/tvm/docs-python-gpu') {
init_git() init_git()
unpack_lib('gpu', tvm_multilib) unpack_lib('gpu', tvm_multilib)
...@@ -228,7 +238,7 @@ stage('Integration Test') { ...@@ -228,7 +238,7 @@ stage('Integration Test') {
} }
stage('Deploy') { stage('Deploy') {
node('docker' && 'doc') { node('doc') {
ws('workspace/tvm/deploy-docs') { ws('workspace/tvm/deploy-docs') {
if (env.BRANCH_NAME == "master") { if (env.BRANCH_NAME == "master") {
unpack_lib('mydocs', 'docs.tgz') unpack_lib('mydocs', 'docs.tgz')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment