Skip to content

Commit

Permalink
remove reporting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
driazati committed Mar 3, 2022
1 parent 80be3e9 commit db0cb57
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 99 deletions.
23 changes: 11 additions & 12 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ tvm_multilib_tsim = 'build/libvta_tsim.so, ' +

// command to start a docker container
docker_run = 'docker/bash.sh'
pytest_wrapper = './tests/scripts/pytest_wrapper.py'
// timeout in minutes
max_time = 240

Expand Down Expand Up @@ -255,14 +254,14 @@ def ci_setup(image) {

def python_unittest(image) {
sh (
script: "${docker_run} ${image} ${pytest_wrapper} ./tests/scripts/task_python_unittest.sh",
script: "${docker_run} ${image} ./tests/scripts/task_python_unittest.sh",
label: 'Run Python unit tests',
)
}

def fsim_test(image) {
sh (
script: "${docker_run} ${image} ${pytest_wrapper} ./tests/scripts/task_python_vta_fsim.sh",
script: "${docker_run} ${image} ./tests/scripts/task_python_vta_fsim.sh",
label: 'Run VTA tests in FSIM ',
)
}
Expand Down Expand Up @@ -459,11 +458,11 @@ stage('Test') {
label: 'Run Java unit tests',
)
sh (
script: "${docker_run} ${ci_gpu} ${pytest_wrapper} ./tests/scripts/task_python_unittest_gpuonly.sh",
script: "${docker_run} ${ci_gpu} ./tests/scripts/task_python_unittest_gpuonly.sh",
label: 'Run Python GPU unit tests',
)
sh (
script: "${docker_run} ${ci_gpu} ${pytest_wrapper} ./tests/scripts/task_python_integration_gpuonly.sh",
script: "${docker_run} ${ci_gpu} ./tests/scripts/task_python_integration_gpuonly.sh",
label: 'Run Python GPU integration tests',
)
}
Expand All @@ -486,7 +485,7 @@ stage('Test') {
timeout(time: max_time, unit: 'MINUTES') {
ci_setup(ci_cpu)
sh (
script: "${docker_run} ${ci_cpu} ${pytest_wrapper} ./tests/scripts/task_python_integration.sh",
script: "${docker_run} ${ci_cpu} ./tests/scripts/task_python_integration.sh",
label: 'Run CPU integration tests',
)
}
Expand All @@ -511,7 +510,7 @@ stage('Test') {
python_unittest(ci_cpu)
fsim_test(ci_cpu)
sh (
script: "${docker_run} ${ci_cpu} ${pytest_wrapper} ./tests/scripts/task_python_vta_tsim.sh",
script: "${docker_run} ${ci_cpu} ./tests/scripts/task_python_vta_tsim.sh",
label: 'Run VTA tests in TSIM',
)
}
Expand All @@ -535,7 +534,7 @@ stage('Test') {
ci_setup(ci_i386)
python_unittest(ci_i386)
sh (
script: "${docker_run} ${ci_i386} ${pytest_wrapper} ./tests/scripts/task_python_integration_i386only.sh",
script: "${docker_run} ${ci_i386} ./tests/scripts/task_python_integration_i386only.sh",
label: 'Run i386 integration tests',
)
fsim_test(ci_i386)
Expand Down Expand Up @@ -584,7 +583,7 @@ stage('Test') {
timeout(time: max_time, unit: 'MINUTES') {
ci_setup(ci_gpu)
sh (
script: "${docker_run} ${ci_gpu} ${pytest_wrapper} ./tests/scripts/task_python_topi.sh",
script: "${docker_run} ${ci_gpu} ./tests/scripts/task_python_topi.sh",
label: 'Run TOPI tests',
)
}
Expand All @@ -607,7 +606,7 @@ stage('Test') {
timeout(time: max_time, unit: 'MINUTES') {
ci_setup(ci_gpu)
sh (
script: "${docker_run} ${ci_gpu} ${pytest_wrapper} ./tests/scripts/task_python_frontend.sh 1",
script: "${docker_run} ${ci_gpu} ./tests/scripts/task_python_frontend.sh 1",
label: 'Run Python frontend tests (shard 1)',
)
}
Expand All @@ -630,7 +629,7 @@ stage('Test') {
timeout(time: max_time, unit: 'MINUTES') {
ci_setup(ci_gpu)
sh (
script: "${docker_run} ${ci_gpu} ${pytest_wrapper} ./tests/scripts/task_python_frontend.sh 2",
script: "${docker_run} ${ci_gpu} ./tests/scripts/task_python_frontend.sh 2",
label: 'Run Python frontend tests (shard 2)',
)
}
Expand All @@ -653,7 +652,7 @@ stage('Test') {
timeout(time: max_time, unit: 'MINUTES') {
ci_setup(ci_cpu)
sh (
script: "${docker_run} ${ci_cpu} ${pytest_wrapper} ./tests/scripts/task_python_frontend_cpu.sh",
script: "${docker_run} ${ci_cpu} ./tests/scripts/task_python_frontend_cpu.sh",
label: 'Run Python frontend tests',
)
}
Expand Down
1 change: 0 additions & 1 deletion docker/install/ubuntu_install_python_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,5 @@ pip3 install \
requests \
scipy \
synr==0.6.0 \
junitparser==2.4.2 \
six \
tornado
3 changes: 2 additions & 1 deletion tests/scripts/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def docs(
"IS_LOCAL": "1",
}
check_build()
docker(name="ci-docs", image=image, scripts=scripts, env=env)
docker(name="ci-docs", image=image, scripts=scripts, env=env, interactive=False)


def serve_docs(directory: str = "_docs") -> None:
Expand All @@ -290,6 +290,7 @@ def lint() -> None:
image="ci_lint",
scripts=["./tests/scripts/task_lint.sh"],
env={},
interactive=False,
)


Expand Down
85 changes: 0 additions & 85 deletions tests/scripts/pytest_wrapper.py

This file was deleted.

0 comments on commit db0cb57

Please sign in to comment.