This is an automated email from the ASF dual-hosted git repository.

tlopex pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 91e9e2d2ca [CI] Remove stale test scripts (i386, hexagon, mypy) 
(#18851)
91e9e2d2ca is described below

commit 91e9e2d2caf724c214789c870d50bac5e5f12925
Author: Tianqi Chen <[email protected]>
AuthorDate: Sat Feb 28 10:42:29 2026 -0500

    [CI] Remove stale test scripts (i386, hexagon, mypy) (#18851)
    
    ## Summary
    
    Remove 9 test scripts from `tests/scripts/` that are no longer used in
    CI —
    i386 and hexagon architectures were removed from CI, mypy moved to
    pre-commit,
    and several others are unreferenced.
---
 tests/python/contrib/test_hexagon/README.md   | 18 +++-----
 tests/scripts/ci.py                           | 15 -------
 tests/scripts/task_build_hexagon_api.sh       | 50 ---------------------
 tests/scripts/task_clean.sh                   | 21 ---------
 tests/scripts/task_config_build_gpu_vulkan.sh | 28 ------------
 tests/scripts/task_config_build_hexagon.sh    | 44 ------------------
 tests/scripts/task_config_build_i386.sh       | 31 -------------
 tests/scripts/task_mypy.sh                    | 20 ---------
 tests/scripts/task_opencl_cpp_unittest.sh     | 39 ----------------
 tests/scripts/task_python_hexagon.sh          | 65 ---------------------------
 10 files changed, 5 insertions(+), 326 deletions(-)

diff --git a/tests/python/contrib/test_hexagon/README.md 
b/tests/python/contrib/test_hexagon/README.md
index bf37debcb3..7c79626f9e 100644
--- a/tests/python/contrib/test_hexagon/README.md
+++ b/tests/python/contrib/test_hexagon/README.md
@@ -40,8 +40,6 @@ You can find more information about downloading [Hexagon 
SDK](https://developer.
 
 First build Hexagon API application under `apps/hexagon_api`. This step will 
generate `tvm_rpc_android` and `libtvm_runtime.so` to run on Android. Also, it 
generates `libtvm_runtime.a` `libtvm_runtime.so`, `libhexagon_rpc_skel.so` and 
`libhexagon_rpc_sim.so` to run on Hexagon device or Hexagon simulator.
 
-**Note:** To get the most updated instructions, please take a look at 
[task_build_hexagon_api.sh](https://github.com/apache/tvm/blob/main/tests/scripts/task_build_hexagon_api.sh).
-
 ```bash
 cd apps/hexagon_api
 mkdir build
@@ -59,8 +57,6 @@ make -j2
 
 Next, we need to build TVM on host with RPC and Hexagon dependencies. To do 
that follow these commands.
 
-**Note:** To get the most recent configs for this step, please take a look at 
[task_config_build_hexagon.sh](https://github.com/apache/tvm/blob/main/tests/scripts/task_config_build_hexagon.sh).
-
 ```bash
 cd tvm
 mkdir build
@@ -83,14 +79,12 @@ To use hexagon docker image, install TVM and Hexagon API 
follow these steps from
 
 # Build TVM
 rm -rf build
-./tests/scripts/task_config_build_hexagon.sh build
-cd build
-cmake ..
+mkdir build && cd build
+cmake -DUSE_LLVM=ON \
+      -DUSE_RPC=ON \
+      -DUSE_HEXAGON_SDK=$HEXAGON_SDK_PATH \
+      -DUSE_HEXAGON=ON ..
 make -j2
-
-# Build Hexagon API
-cd ..
-./tests/scripts/task_build_hexagon_api.sh
 ```
 
 Now that you have built required tools, you can jump to [run test 
examples](#run-tests).
@@ -98,8 +92,6 @@ Now that you have built required tools, you can jump to [run 
test examples](#run
 ## Run Tests
 You have the options of running Hexagon test on real hardware or on Hexagon 
simulator. Also, depending on whether you decided to use Hexagon docker image 
or not we will explain both cases here.
 
-**Note: You can always find updated instructions based on this 
[script](https://github.com/apache/tvm/blob/main/tests/scripts/task_python_hexagon.sh).**
-
 ### Only follow these steps if running tests outside of docker
 ```bash
 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"path to `llvm-clang/lib` 
sub-directory"
diff --git a/tests/scripts/ci.py b/tests/scripts/ci.py
index 80145254e3..9cd0d6affb 100755
--- a/tests/scripts/ci.py
+++ b/tests/scripts/ci.py
@@ -590,7 +590,6 @@ generated = [
                 "run unit tests",
                 [
                     "./tests/scripts/task_java_unittest.sh",
-                    "./tests/scripts/task_opencl_cpp_unittest.sh {build_dir}",
                     "./tests/scripts/task_python_unittest_gpuonly.sh",
                     "./tests/scripts/task_python_integration_gpuonly.sh",
                 ],
@@ -637,20 +636,6 @@ generated = [
             "test": ("run WASM tests", ["./tests/scripts/task_web_wasm.sh"]),
         },
     ),
-    generate_command(
-        name="hexagon",
-        help="Run Hexagon build and test(s)",
-        post_build=["./tests/scripts/task_build_hexagon_api.sh --output 
build-hexagon"],
-        options={
-            "cpp": CPP_UNITTEST,
-            "test": (
-                "run Hexagon API/Python tests",
-                [
-                    "./tests/scripts/task_python_hexagon.sh",
-                ],
-            ),
-        },
-    ),
     generate_command(
         name="arm",
         help="Run ARM build and test(s) (native or via QEMU on x86)",
diff --git a/tests/scripts/task_build_hexagon_api.sh 
b/tests/scripts/task_build_hexagon_api.sh
deleted file mode 100755
index cff6d7a6ba..0000000000
--- a/tests/scripts/task_build_hexagon_api.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -e
-set -u
-
-output_directory_parent=$(realpath ${PWD}/build)
-if [ $# -ge 1 ] && [[ "$1" == "--output" ]]; then
-    shift 1
-    output_directory_parent=$(realpath $1)
-    shift 1
-fi
-output_directory="${output_directory_parent}/hexagon_api_output"
-rm -rf ${output_directory}
-
-use_cache=false
-if [ $# -ge 1 ] && [[ "$1" == "--use-cache" ]]; then
-    use_cache=true
-    shift 1
-fi
-
-cd apps/hexagon_api
-if [ "$use_cache" = false ]; then
-    rm -rf build
-fi
-mkdir -p build
-cd build
-
-cmake -DUSE_HEXAGON_ARCH=v68 \
-    -DUSE_HEXAGON_SDK="${HEXAGON_SDK_ROOT}" \
-    -DUSE_HEXAGON_TOOLCHAIN="${HEXAGON_TOOLCHAIN}" \
-    -DUSE_OUTPUT_BINARY_DIR="${output_directory}" \
-    -DUSE_HEXAGON_GTEST="${HEXAGON_SDK_ROOT}/utils/googletest/gtest" ..
-
-make -j$(nproc)
diff --git a/tests/scripts/task_clean.sh b/tests/scripts/task_clean.sh
deleted file mode 100755
index c84dbfff06..0000000000
--- a/tests/scripts/task_clean.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# 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 CMake* && cd ..
diff --git a/tests/scripts/task_config_build_gpu_vulkan.sh 
b/tests/scripts/task_config_build_gpu_vulkan.sh
deleted file mode 100755
index f3859b9aa0..0000000000
--- a/tests/scripts/task_config_build_gpu_vulkan.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# TODO(Lunderberg): Remove this file once the Jenkinsfile in the
-# ci-docker-staging branch no longer references it.
-
-# This file is a backwards compatibility file, as the TVM CI uses the
-# Jenkinsfile from the ci-docker-staging branch, but the task scripts
-# from the PR branch.
-
-set -euxo pipefail
-
-./tests/scripts/task_config_build_gpu_other.sh
diff --git a/tests/scripts/task_config_build_hexagon.sh 
b/tests/scripts/task_config_build_hexagon.sh
deleted file mode 100755
index ca9b02d798..0000000000
--- a/tests/scripts/task_config_build_hexagon.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -euxo pipefail
-
-BUILD_DIR=$1
-mkdir -p "$BUILD_DIR"
-cd "$BUILD_DIR"
-cp ../cmake/config.cmake .
-
-echo set\(USE_SORT ON\) >> config.cmake
-echo set\(USE_RPC ON\) >> config.cmake
-echo set\(USE_LLVM "${CLANG_LLVM_HOME}/bin/llvm-config"\) >> config.cmake
-
-if [[ ${CI:-false} == "true" ]]; then
-    # sccache needs to be used in CI to speed up builds
-    echo set\(CMAKE_C_COMPILER "/opt/sccache/cc"\) >> config.cmake
-    echo set\(CMAKE_CXX_COMPILER "/opt/sccache/c++"\) >> config.cmake
-else
-    echo 'Skipping sccache setup for local build'
-    echo set\(CMAKE_C_COMPILER \"/usr/bin/cc\"\) >> config.cmake
-    echo set\(CMAKE_CXX_COMPILER \"/usr/bin/c++\"\) >> config.cmake
-fi
-
-echo set\(USE_HEXAGON "ON"\) >> config.cmake
-echo set\(USE_HEXAGON_SDK "${HEXAGON_SDK_ROOT}"\) >> config.cmake
-echo set\(USE_CCACHE OFF\) >> config.cmake
-echo set\(SUMMARIZE ON\) >> config.cmake
-echo set\(USE_HEXAGON_QHL ON\) >> config.cmake
diff --git a/tests/scripts/task_config_build_i386.sh 
b/tests/scripts/task_config_build_i386.sh
deleted file mode 100755
index c038fa6076..0000000000
--- a/tests/scripts/task_config_build_i386.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -euxo pipefail
-
-BUILD_DIR=$1
-mkdir -p "$BUILD_DIR"
-cd "$BUILD_DIR"
-cp ../cmake/config.cmake .
-
-echo set\(USE_SORT ON\) >> config.cmake
-echo set\(USE_RPC ON\) >> config.cmake
-echo set\(USE_LLVM llvm-config-10\) >> config.cmake
-echo set\(CMAKE_CXX_FLAGS -Werror\) >> config.cmake
-echo set\(USE_CCACHE OFF\) >> config.cmake
-echo set\(SUMMARIZE ON\) >> config.cmake
diff --git a/tests/scripts/task_mypy.sh b/tests/scripts/task_mypy.sh
deleted file mode 100755
index e59c0056ad..0000000000
--- a/tests/scripts/task_mypy.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# Deprecated: functionality moved to pre-commit hooks. Kept as no-op for 
backward compatibility.
-exit 0
diff --git a/tests/scripts/task_opencl_cpp_unittest.sh 
b/tests/scripts/task_opencl_cpp_unittest.sh
deleted file mode 100755
index 7ea6ea470d..0000000000
--- a/tests/scripts/task_opencl_cpp_unittest.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -euxo pipefail
-
-if [ $# -gt 0 ]; then
-    BUILD_DIR="$1"
-elif [ -n "${TVM_BUILD_PATH:-}" ]; then
-    # TVM_BUILD_PATH may contain multiple space-separated paths.  If
-    # so, use the first one.
-    BUILD_DIR=$(IFS=" "; set -- $TVM_BUILD_PATH; echo $1)
-else
-    BUILD_DIR=build
-fi
-
-
-# to avoid CI thread throttling.
-export TVM_BIND_THREADS=0
-export OMP_NUM_THREADS=1
-
-pushd "${BUILD_DIR}"
-# run cpp test executable
-./opencl-cpptest
-popd
diff --git a/tests/scripts/task_python_hexagon.sh 
b/tests/scripts/task_python_hexagon.sh
deleted file mode 100755
index 6d91759805..0000000000
--- a/tests/scripts/task_python_hexagon.sh
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -euxo pipefail
-
-device_serial="simulator"
-if [ $# -ge 1 ] && [[ "$1" = "--device" ]]; then
-    shift 1
-    device_serial="$1"
-    shift
-fi
-
-source tests/scripts/setup-pytest-env.sh
-
-# setup tvm-ffi into python folder
-python3 -m pip install  -v --target=python ./3rdparty/tvm-ffi/
-
-# disable hexagon tests for now
-exit 0
-
-
-if [[ "${device_serial}" == "simulator" ]]; then
-    export TVM_TRACKER_PORT=9190
-    export TVM_TRACKER_HOST=0.0.0.0
-    env PYTHONPATH=python python3 -m tvm.exec.rpc_tracker --host 
"${TVM_TRACKER_HOST}" --port "${TVM_TRACKER_PORT}" &
-    TRACKER_PID=$!
-    sleep 5   # Wait for tracker to bind
-
-    # Temporary workaround for symbol visibility
-    export HEXAGON_SHARED_LINK_FLAGS="-Lbuild/hexagon_api_output 
-lhexagon_rpc_sim"
-fi
-
-num_of_devices=0
-if [ ! "${device_serial}" == "simulator" ]; then
-    IFS=',' read -ra ADDR <<< "$device_serial"
-    for i in "${ADDR[@]}"; do
-        num_of_devices=$(($num_of_devices+1))
-    done
-fi
-
-export ANDROID_SERIAL_NUMBER=${device_serial}
-if [ "${device_serial}" == "simulator" ]; then
-    run_pytest python-contrib-hexagon tests/python/contrib/test_hexagon
-else
-    run_pytest python-contrib-hexagon tests/python/contrib/test_hexagon 
-n=$num_of_devices
-fi
-
-if [[ "${device_serial}" == "simulator" ]]; then
-    kill ${TRACKER_PID}
-fi

Reply via email to