This is an automated email from the ASF dual-hosted git repository.
MasterJH5574 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 f613161d72 [CI] Remove retired ci_lint Docker files (#19878)
f613161d72 is described below
commit f613161d7239293c80c8335a65373a39d368fb4d
Author: Shushi Hong <[email protected]>
AuthorDate: Thu Jun 25 15:40:31 2026 -0400
[CI] Remove retired ci_lint Docker files (#19878)
Remove the retired ci_lint Docker image definition and its legacy lint
wrapper after the Jenkins matrix stopped building ci_lint in #19872.
Also remove the ci_lint entry from docker-images.ini, drop the
retired-image skip from the nightly Docker updater, and update the CI
test fixture accordingly.
Keep the temporary git_change_docker.sh ignore entries for the deleted
lint Docker files so this cleanup PR does not trigger an unnecessary
Docker image rebuild.
---
ci/jenkins/docker-images.ini | 1 -
ci/scripts/jenkins/open_docker_update_pr.py | 4 --
docker/Dockerfile.ci_lint | 57 -------------------
docker/README.md | 6 --
docker/install/ubuntu_install_clang_format.sh | 31 ----------
docker/lint.sh | 82 ---------------------------
tests/python/ci/test_ci.py | 1 -
7 files changed, 182 deletions(-)
diff --git a/ci/jenkins/docker-images.ini b/ci/jenkins/docker-images.ini
index afd1c275cb..175ea8dded 100644
--- a/ci/jenkins/docker-images.ini
+++ b/ci/jenkins/docker-images.ini
@@ -21,5 +21,4 @@ ci_tag: 20260619-214849-4174cdf5
ci_arm: tlcpack/ci-arm:%(ci_tag)s
ci_cpu: tlcpack/ci-cpu:%(ci_tag)s
ci_gpu: tlcpack/ci-gpu:%(ci_tag)s
-ci_lint: tlcpack/ci-lint:%(ci_tag)s
ci_wasm: tlcpack/ci-wasm:%(ci_tag)s
diff --git a/ci/scripts/jenkins/open_docker_update_pr.py
b/ci/scripts/jenkins/open_docker_update_pr.py
index e66272c980..0172fe0221 100755
--- a/ci/scripts/jenkins/open_docker_update_pr.py
+++ b/ci/scripts/jenkins/open_docker_update_pr.py
@@ -37,7 +37,6 @@ IMAGES_FILE = JENKINS_DIR / "docker-images.ini"
GENERATE_SCRIPT = JENKINS_DIR / "generate.py"
GITHUB_TOKEN = os.environ["GITHUB_TOKEN"]
BRANCH = "nightly-docker-update"
-RETIRED_IMAGES = {"ci_lint"}
def _testing_docker_api(data: dict[str, Any]) -> Callable[[str], dict[str,
Any]]:
@@ -144,9 +143,6 @@ if __name__ == "__main__":
for key in config.options("jenkins"):
if key == "ci_tag":
continue
- if key in RETIRED_IMAGES:
- logging.info(f"Skipping retired image {key}")
- continue
image_spec = config.get("jenkins", key)
logging.info(f"Found {key} = {image_spec}")
new_image = latest_tlcpackstaging_image(image_spec)
diff --git a/docker/Dockerfile.ci_lint b/docker/Dockerfile.ci_lint
deleted file mode 100644
index 1b591d9efd..0000000000
--- a/docker/Dockerfile.ci_lint
+++ /dev/null
@@ -1,57 +0,0 @@
-# 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.
-
-# For lint test
-# CI docker lint env
-# tag: v0.60
-FROM ubuntu:22.04
-COPY --from=ghcr.io/astral-sh/uv:0.10.5 /uv /uvx /bin/
-
-COPY utils/apt-install-and-clear.sh /usr/local/bin/apt-install-and-clear
-COPY utils/download-and-verify.sh /usr/local/bin/download-and-verify
-
-RUN apt-get update --fix-missing
-
-COPY install/ubuntu_setup_tz.sh /install/ubuntu_setup_tz.sh
-RUN bash /install/ubuntu_setup_tz.sh
-
-RUN apt-get update && \
- apt-install-and-clear -y wget git sudo make parallel doxygen graphviz curl
shellcheck ca-certificates curl gnupg
-
-ENV UV_NO_CACHE=1
-ENV UV_PYTHON_INSTALL_DIR=/opt/uv/python
-ENV UV_MANAGED_PYTHON=1
-
-ENV TVM_VENV=/venv/apache-tvm-py3.10
-COPY install/ubuntu_install_python.sh /install/ubuntu_install_python.sh
-RUN bash /install/ubuntu_install_python.sh 3.10
-ENV PATH=${TVM_VENV}/bin:$PATH
-ENV VIRTUAL_ENV=${TVM_VENV}
-
-# Disable .local directory from affecting CI.
-ENV PYTHONNOUSERSITE=1
-
-RUN uv pip install jinja2==3.0.3
-
-COPY install/ubuntu_install_clang_format.sh
/install/ubuntu_install_clang_format.sh
-RUN bash /install/ubuntu_install_clang_format.sh
-
-COPY install/ubuntu_install_nodejs.sh /install/ubuntu_install_nodejs.sh
-RUN bash /install/ubuntu_install_nodejs.sh
-
-ENV LC_ALL=C.UTF-8
-ENV LANG=C.UTF-8
diff --git a/docker/README.md b/docker/README.md
index a3589c8c9d..08b16e293e 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -107,12 +107,6 @@ inside the container with the same user as the user
invoking the
docker command. Here are some common use examples to perform CI
tasks.
-- lint the python codes
-
- ```bash
- ./docker/build.sh ci_lint pre-commit run --all-files
- ```
-
- build codes with CUDA support
```bash
diff --git a/docker/install/ubuntu_install_clang_format.sh
b/docker/install/ubuntu_install_clang_format.sh
deleted file mode 100644
index 5f2dfa6069..0000000000
--- a/docker/install/ubuntu_install_clang_format.sh
+++ /dev/null
@@ -1,31 +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
-set -o pipefail
-
-wget -q -O - http://apt.llvm.org/llvm-snapshot.gpg.key \
- | gpg --dearmor -o /usr/share/keyrings/llvm-archive.gpg
-
-cat > /etc/apt/sources.list.d/llvm.list <<'EOF'
-deb [signed-by=/usr/share/keyrings/llvm-archive.gpg]
http://apt.llvm.org/jammy/ llvm-toolchain-jammy-15 main
-deb-src [signed-by=/usr/share/keyrings/llvm-archive.gpg]
http://apt.llvm.org/jammy/ llvm-toolchain-jammy-15 main
-EOF
-
-apt-get update && apt-install-and-clear -y clang-format-15
diff --git a/docker/lint.sh b/docker/lint.sh
deleted file mode 100755
index aa5b9b9609..0000000000
--- a/docker/lint.sh
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash -e
-# 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.
-
-
-source "$(dirname $0)/dev_common.sh"
-
-SCRIPT_NAME="$0"
-DEFAULT_STEPS=( precommit )
-
-inplace_fix=0
-
-function run_lint_step() {
- validate_only=0
- if [ "$1" == "--validate-only" ]; then
- validate_only=1
- shift
- fi
-
- case "$1" in
- precommit)
- cmd=( pre-commit run --all-files )
- ;;
- # Legacy aliases — these now delegate to pre-commit
-
cpplint|cppdocs|docker_format|blocklint|file_type|asf|clang_format|python_format|pylint|mypy)
- cmd=( pre-commit run --all-files )
- ;;
- *)
- echo "error: don't know how to run lint step: $1" >&2
- echo "usage: ${SCRIPT_NAME} [-i] <lint_step>" >&2
- echo >&2
- echo "options:" >&2
- echo " -i Fix lint errors in-place where possible (modifies
non-compliant files)" >&2
- echo >&2
- echo "available lint_step: ${DEFAULT_STEPS[@]}" >&2
- exit 2
- ;;
- esac
- shift
-
- if [ $validate_only -eq 0 ]; then
- if [ -t 0 ]; then
- run_docker -it "ci_lint" "${cmd[@]}"
- else
- run_docker "ci_lint" "${cmd[@]}"
- fi
- fi
-}
-
-if [ $# -eq 0 ]; then
- steps=( "${DEFAULT_STEPS[@]}" )
-else
- steps=( "$@" )
-fi
-
-validated_steps=( )
-for step in "${steps[@]}"; do
- if [ "${step}" == "-i" ]; then
- inplace_fix=1
- continue
- fi
- run_lint_step --validate-only "$step"
- validated_steps=( "${validated_steps[@]}" "$step" )
-done
-
-for step in "${validated_steps[@]}"; do
- run_lint_step "$step"
-done
diff --git a/tests/python/ci/test_ci.py b/tests/python/ci/test_ci.py
index 178a67d6f6..bfd4b32491 100644
--- a/tests/python/ci/test_ci.py
+++ b/tests/python/ci/test_ci.py
@@ -1238,7 +1238,6 @@ def test_open_docker_update_pr(
"ci_cortexm",
"ci_cpu",
"ci_gpu",
- "ci_lint",
"ci_minimal",
"ci_riscv",
"ci_wasm",