[Core] Make V1 work and enable V1 engine test (#389)

1. Make sure the version is string before parse in collect_env
2. Add basic V1 engine test

Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
This commit is contained in:
wangxiyuan
2025-03-28 19:34:23 +08:00
committed by GitHub
parent 57a84bb7be
commit 31f29b9f30
8 changed files with 66 additions and 95 deletions

View File

@@ -61,7 +61,6 @@ DEFAULT_CONDA_PATTERNS = {
"soumith",
"mkl",
"magma",
"triton",
"optree",
"transformers",
"zmq",
@@ -73,7 +72,6 @@ DEFAULT_PIP_PATTERNS = {
"numpy",
"mypy",
"flake8",
"triton",
"optree",
"onnx",
"transformers",
@@ -156,7 +154,7 @@ def get_cmake_version(run_lambda):
def _parse_version(version, version_tuple):
version_str = version_tuple[-1]
if version_str.startswith('g'):
if isinstance(version_str, str) and version_str.startswith('g'):
if '.' in version_str:
git_sha = version_str.split('.')[0][1:]
date = version_str.split('.')[-1][1:]