Skip to content

Commit

Permalink
Disable tests with MXNet 1.5 completely
Browse files Browse the repository at this point in the history
Instead of running tests for nightly version twice
  • Loading branch information
leezu committed Oct 10, 2019
1 parent 819c2f5 commit d0a5ee5
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 83 deletions.
70 changes: 35 additions & 35 deletions ci/jenkins/Jenkinsfile_py3_cpu_unittest
Original file line number Diff line number Diff line change
Expand Up @@ -31,39 +31,39 @@ node {
}
utils.assign_node_labels(linux_gpu: 'linux-gpu', linux_cpu: 'linux-cpu')

utils.main_wrapper(
core_logic: {
utils.parallel_stage('Sanity', [
build_steps.sanity_lint('gluon-nlp-cpu-py3', 'cpu/py3', 'src/gluonnlp')
])
// utils.main_wrapper(
// core_logic: {
// utils.parallel_stage('Sanity', [
// build_steps.sanity_lint('gluon-nlp-cpu-py3', 'cpu/py3', 'src/gluonnlp')
// ])

utils.parallel_stage('Tests', [
build_steps.test_unittest('gluon-nlp-cpu-py3', 'cpu/py3',
'tests/unittest', 'src/gluonnlp',
'not (gpu or serial)',
4, false, false),
build_steps.test_unittest('gluon-nlp-cpu-py3', 'cpu/py3',
'tests/unittest', 'src/gluonnlp',
'(not gpu) and serial',
0, false, false),
build_steps.test_unittest('gluon-nlp-cpu-py3', 'cpu/py3',
'scripts/tests', 'src/gluonnlp',
'not (gpu or serial or integration)',
4, false, false),
build_steps.test_unittest('gluon-nlp-cpu-py3', 'cpu/py3',
'scripts/tests', 'src/gluonnlp',
'not (gpu or integration) and serial',
0, false, false),
build_steps.test_unittest('gluon-nlp-cpu-py3', 'cpu/py3',
'scripts/tests', 'src/gluonnlp',
'not (gpu or serial) and integration',
4, false, false),
build_steps.test_unittest('gluon-nlp-cpu-py3', 'cpu/py3',
'scripts/tests', 'src/gluonnlp',
'(not gpu) and serial and integration',
0, false, false)
])
}
,
failure_handler: {}
)
// utils.parallel_stage('Tests', [
// build_steps.test_unittest('gluon-nlp-cpu-py3', 'cpu/py3',
// 'tests/unittest', 'src/gluonnlp',
// 'not (gpu or serial)',
// 4, false, false),
// build_steps.test_unittest('gluon-nlp-cpu-py3', 'cpu/py3',
// 'tests/unittest', 'src/gluonnlp',
// '(not gpu) and serial',
// 0, false, false),
// build_steps.test_unittest('gluon-nlp-cpu-py3', 'cpu/py3',
// 'scripts/tests', 'src/gluonnlp',
// 'not (gpu or serial or integration)',
// 4, false, false),
// build_steps.test_unittest('gluon-nlp-cpu-py3', 'cpu/py3',
// 'scripts/tests', 'src/gluonnlp',
// 'not (gpu or integration) and serial',
// 0, false, false),
// build_steps.test_unittest('gluon-nlp-cpu-py3', 'cpu/py3',
// 'scripts/tests', 'src/gluonnlp',
// 'not (gpu or serial) and integration',
// 4, false, false),
// build_steps.test_unittest('gluon-nlp-cpu-py3', 'cpu/py3',
// 'scripts/tests', 'src/gluonnlp',
// '(not gpu) and serial and integration',
// 0, false, false)
// ])
// }
// ,
// failure_handler: {}
// )
38 changes: 19 additions & 19 deletions ci/jenkins/Jenkinsfile_py3_gpu_integration
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ node {
}
utils.assign_node_labels(linux_gpu: 'linux-gpu', linux_cpu: 'linux-cpu')

utils.main_wrapper(
core_logic: {
utils.parallel_stage('Sanity', [
build_steps.sanity_lint('gluon-nlp-gpu-py3', 'gpu/py3', 'scripts')
])
// utils.main_wrapper(
// core_logic: {
// utils.parallel_stage('Sanity', [
// build_steps.sanity_lint('gluon-nlp-gpu-py3', 'gpu/py3', 'scripts')
// ])

utils.parallel_stage('Scripts', [
build_steps.test_unittest('gluon-nlp-gpu-py3', 'gpu/py3',
'scripts/tests', 'src/gluonnlp',
'gpu and (not serial) and integration',
4, true, true),
build_steps.test_unittest('gluon-nlp-gpu-py3', 'gpu/py3',
'scripts/tests', 'src/gluonnlp',
'gpu and serial and integration',
0, true, true)
])
}
,
failure_handler: {}
)
// utils.parallel_stage('Scripts', [
// build_steps.test_unittest('gluon-nlp-gpu-py3', 'gpu/py3',
// 'scripts/tests', 'src/gluonnlp',
// 'gpu and (not serial) and integration',
// 4, true, true),
// build_steps.test_unittest('gluon-nlp-gpu-py3', 'gpu/py3',
// 'scripts/tests', 'src/gluonnlp',
// 'gpu and serial and integration',
// 0, true, true)
// ])
// }
// ,
// failure_handler: {}
// )
54 changes: 27 additions & 27 deletions ci/jenkins/Jenkinsfile_py3_gpu_unittest
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,31 @@ node {
}
utils.assign_node_labels(linux_gpu: 'linux-gpu', linux_cpu: 'linux-cpu')

utils.main_wrapper(
core_logic: {
utils.parallel_stage('Sanity', [
build_steps.sanity_lint('gluon-nlp-gpu-py3', 'gpu/py3', 'src/gluonnlp')
])
// utils.main_wrapper(
// core_logic: {
// utils.parallel_stage('Sanity', [
// build_steps.sanity_lint('gluon-nlp-gpu-py3', 'gpu/py3', 'src/gluonnlp')
// ])

utils.parallel_stage('Tests', [
build_steps.test_unittest('gluon-nlp-gpu-py3', 'gpu/py3',
'tests/unittest', 'src/gluonnlp',
'gpu and not serial',
4, true, false),
build_steps.test_unittest('gluon-nlp-gpu-py3', 'gpu/py3',
'tests/unittest', 'src/gluonnlp',
'gpu and serial',
0, true, false),
build_steps.test_unittest('gluon-nlp-gpu-py3', 'gpu/py3',
'scripts/tests', 'src/gluonnlp',
'gpu and not (serial or integration)',
4, true, false),
build_steps.test_unittest('gluon-nlp-gpu-py3', 'gpu/py3',
'scripts/tests', 'src/gluonnlp',
'gpu and serial and not integration',
0, true, false)
])
}
,
failure_handler: {}
)
// utils.parallel_stage('Tests', [
// build_steps.test_unittest('gluon-nlp-gpu-py3', 'gpu/py3',
// 'tests/unittest', 'src/gluonnlp',
// 'gpu and not serial',
// 4, true, false),
// build_steps.test_unittest('gluon-nlp-gpu-py3', 'gpu/py3',
// 'tests/unittest', 'src/gluonnlp',
// 'gpu and serial',
// 0, true, false),
// build_steps.test_unittest('gluon-nlp-gpu-py3', 'gpu/py3',
// 'scripts/tests', 'src/gluonnlp',
// 'gpu and not (serial or integration)',
// 4, true, false),
// build_steps.test_unittest('gluon-nlp-gpu-py3', 'gpu/py3',
// 'scripts/tests', 'src/gluonnlp',
// 'gpu and serial and not integration',
// 0, true, false)
// ])
// }
// ,
// failure_handler: {}
// )
2 changes: 1 addition & 1 deletion env/cpu/py3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies:
- scipy=1.3.1
- pip:
- pylint-quotes==0.2.1
- mxnet-mkl>=1.6.0b20191006
- mxnet-mkl>=1.5.0
- sacremoses
- sentencepiece<0.2
- https://github.com/szha/mx-theme/tarball/master
Expand Down
2 changes: 1 addition & 1 deletion env/gpu/py3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies:
- scipy=1.3.1
- pip:
- pylint-quotes==0.2.1
- mxnet-cu101mkl>=1.6.0b20191006
- mxnet-cu101mkl>=1.5.0
- sacremoses
- sentencepiece<0.2
- https://github.com/szha/mx-theme/tarball/master
Expand Down

0 comments on commit d0a5ee5

Please sign in to comment.