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 efdf2b2dbb [CI] Fix NameError in nightly docker update workflow
(#18692)
efdf2b2dbb is described below
commit efdf2b2dbb674d990e32b881c3de0e62986c9407
Author: Guan-Ming (Wesley) Chiu <[email protected]>
AuthorDate: Tue Feb 3 20:12:07 2026 +0800
[CI] Fix NameError in nightly docker update workflow (#18692)
## Why
The Nightly Docker Update CI workflow fails with NameError: name 'Sh' is
not defined because Sh is used but not imported.
https://github.com/apache/tvm/actions/workflows/nightly_docker_update.yml
## How
- Add Sh to the import from cmd_utils
- Sort the import with ruff
---
ci/scripts/jenkins/open_docker_update_pr.py | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/ci/scripts/jenkins/open_docker_update_pr.py
b/ci/scripts/jenkins/open_docker_update_pr.py
index 0531bdb678..b6897b9e44 100755
--- a/ci/scripts/jenkins/open_docker_update_pr.py
+++ b/ci/scripts/jenkins/open_docker_update_pr.py
@@ -17,16 +17,17 @@
# under the License.
import argparse
-import logging
import datetime
-import os
import json
+import logging
+import os
import re
import shlex
+from typing import Any, Callable, Dict, List, Optional
from urllib import error
-from typing import List, Dict, Any, Optional, Callable
-from git_utils import git, parse_remote, GitHubRepo
-from cmd_utils import REPO_ROOT, init_log
+
+from cmd_utils import REPO_ROOT, Sh, init_log
+from git_utils import GitHubRepo, git, parse_remote
from should_rebuild_docker import docker_api
JENKINS_DIR = REPO_ROOT / "ci" / "jenkins"