Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions tests/scripts/task_ci_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -o pipefail
set -euxo pipefail

# Script to setup additional python env.
#
Expand Down
2 changes: 2 additions & 0 deletions tests/scripts/task_clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
set -euxo pipefail

echo "Cleanup data..."
cd $1 && rm -rf standalone_crt && rm -rf host_standalone_crt && rm -rf CMake* && cd ..
3 changes: 1 addition & 2 deletions tests/scripts/task_config_build_arm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -euxo pipefail

BUILD_DIR=$1
mkdir -p "$BUILD_DIR"
Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/task_config_build_cpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -euxo pipefail

BUILD_DIR=$1
mkdir -p "$BUILD_DIR"
Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/task_config_build_gpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -euxo pipefail

BUILD_DIR=$1
mkdir -p "$BUILD_DIR"
Expand Down
4 changes: 1 addition & 3 deletions tests/scripts/task_config_build_gpu_other.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@

# This file is a compiler test to ensure that runtimes can compile
# correctly, even if they aren't actively tested in the CI.

set -e
set -u
set -euxo pipefail

BUILD_DIR=$1
mkdir -p "$BUILD_DIR"
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/task_config_build_gpu_vulkan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
# Jenkinsfile from the ci-docker-staging branch, but the task scripts
# from the PR branch.

set -euo pipefail
set -euxo pipefail

./tests/scripts/task_config_build_gpu_other.sh
3 changes: 1 addition & 2 deletions tests/scripts/task_config_build_hexagon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -euxo pipefail

BUILD_DIR=$1
mkdir -p "$BUILD_DIR"
Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/task_config_build_i386.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -euxo pipefail

BUILD_DIR=$1
mkdir -p "$BUILD_DIR"
Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/task_config_build_qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -euxo pipefail

BUILD_DIR=$1
mkdir -p "$BUILD_DIR"
Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/task_config_build_wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -euxo pipefail

BUILD_DIR=$1
mkdir -p "$BUILD_DIR"
Expand Down
1 change: 1 addition & 0 deletions tests/scripts/task_convert_scripts_to_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
set -euxo pipefail

SCRIPTS_DIR=$(dirname "${BASH_SOURCE[0]}")
TVM_DIR=$(cd "${SCRIPTS_DIR}" && git rev-parse --show-toplevel)
Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/task_golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -euxo pipefail

export LD_LIBRARY_PATH="lib:${LD_LIBRARY_PATH:-}"

Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/task_java_unittest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -euxo pipefail

export PYTHONPATH=python
export LD_LIBRARY_PATH="lib:${LD_LIBRARY_PATH:-}"
Expand Down
5 changes: 2 additions & 3 deletions tests/scripts/task_mypy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -o pipefail
set -euxo pipefail

source tests/scripts/setup-pytest-env.sh

echo "Checking MyPy Type defs in the TensorIR schedule package."
Expand Down
4 changes: 2 additions & 2 deletions tests/scripts/task_python_arm_compute_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -euxo pipefail

source tests/scripts/setup-pytest-env.sh


Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/task_python_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -euo pipefail
set -euxo pipefail

source tests/scripts/setup-pytest-env.sh

Expand Down
4 changes: 2 additions & 2 deletions tests/scripts/task_python_ethosn_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -euxo pipefail

source tests/scripts/setup-pytest-env.sh


Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/task_python_frontend_cpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
# under the License.

# Test frontends that only need CPU resources
set -e
set -u
set -euxo pipefail

source tests/scripts/setup-pytest-env.sh
# to avoid openblas threading error
Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/task_python_hexagon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -euxo pipefail

device_serial="simulator"
if [ $# -ge 1 ] && [[ "$1" = "--device" ]]; then
Expand Down
2 changes: 2 additions & 0 deletions tests/scripts/task_python_integration_gpuonly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
# specific language governing permissions and limitations
# under the License.

set -exo pipefail

export TVM_TEST_TARGETS="cuda;opencl;metal;rocm;nvptx;opencl -device=mali,aocl_sw_emu"
export PYTEST_ADDOPTS="-m gpu $PYTEST_ADDOPTS"
export TVM_RELAY_TEST_TARGETS="cuda"
Expand Down
4 changes: 2 additions & 2 deletions tests/scripts/task_python_integration_i386only.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
set -e
set -u
set -euxo pipefail


export TVM_INTEGRATION_I386_ONLY=1

Expand Down
5 changes: 2 additions & 3 deletions tests/scripts/task_python_microtvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -x # NOTE(areusch): Adding to diagnose flaky timeouts
set -euxo pipefail


source tests/scripts/setup-pytest-env.sh

Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/task_python_nightly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -euxo pipefail

source tests/scripts/setup-pytest-env.sh

Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/task_python_topi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -euxo pipefail

source tests/scripts/setup-pytest-env.sh

Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/task_python_vta_fsim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -euxo pipefail

source tests/scripts/setup-pytest-env.sh
# to avoid CI thread throttling.
Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/task_python_vta_tsim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -euxo pipefail

source tests/scripts/setup-pytest-env.sh
export PYTHONPATH=${PYTHONPATH}:${TVM_PATH}/vta/python
Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/task_rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -e
set -u
set -euxo pipefail

export TVM_HOME="$(git rev-parse --show-toplevel)"
echo "Using TVM_HOME=$TVM_HOME"
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/task_show_node_info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.

set -x
set -euxo pipefail

echo "===== JENKINS INFO ====="
echo "NODE_NAME=$NODE_NAME"
Expand Down