Repository navigation
Conversation
CI 失败分析:
|
The cluster-local nginx pypi cache (cache-service.nginx-pypi-cache) has been decommissioned in favour of the squid forward proxy, which caches PyPI traffic transparently. Remove the now-dead mirror wiring from the quick-start workflow, tests and example setup scripts: - quick-start-template.yml: drop PIP_INDEX_URL / PIP_TRUSTED_HOST / UV_INDEX_URL / UV_INSECURE_HOST overrides pointing at the cache - tests/*/test_quick_start_ascend.py: use https://pypi.org/simple - examples-guards/*/setup_example.sh: drop CLUSTER_PIP_* helpers, keep the public Aliyun mirror fallback; mooncake no longer configures an apt cache - lmcache / onnxruntime quick_start.md: remove commented cache probes
5bd2541 to
f32e550
Compare
The tgi setup script unsets PIP_TRUSTED_HOST but then still re-exports it and writes it to GITHUB_ENV when non-empty, which can never happen after the unset; the variable's only producer was the removed cluster-cache branch. Drop the unset and both conditional blocks, and fix the stale comment that still names the decommissioned cluster pip cache.
|
📖 文档预览:https://ascend.github.io/docs/pr-preview/pr-291/ 构建自 |
CI 现状说明:24 条失败检查均与 nginx-pypi-cache 清理无关已逐条与 1.
|
The lmcache/onnxruntime quick-start doctests and the ms-swift/specforge/slime example guards currently fail for pre-existing or upstream reasons. Revert the cleanup in these files so this PR only carries changes whose checks pass; the cleanup will be submitted in a separate PR.
fce6303 to
542f7fa
Compare
83ed2b2 to
542f7fa
Compare
背景
集群内的 nginx pypi 缓存(
cache-service.nginx-pypi-cache.svc.cluster.local)已下线,改用 squid 正向代理透明缓存 PyPI 流量。本仓库(Ascend/docs)仍保留大量指向该缓存的配置,会导致快速开始流程在缓存地址失效后无法安装依赖。改动内容
.github/workflows/quick-start-template.ymlPIP_INDEX_URL、PIP_TRUSTED_HOST、UV_INDEX_URL、UV_INSECURE_HOST环境变量覆盖,恢复为默认(走 runner 上的 squid 代理)。tests/*/test_quick_start_ascend.py(17 个文件)_CLUSTER_INDEX由http://cache-service.nginx-pypi-cache.svc.cluster.local/pypi/simple改为https://pypi.org/simple。examples-guards/*/scripts/setup_example.sh(15 个文件)CLUSTER_PIP_HOST/CLUSTER_PIP_INDEX等与集群缓存相关的辅助变量;select_pip_index()改为回落到公开镜像(Aliyun),并unset PIP_TRUSTED_HOST;configure_apt_cache()及其调用(apt 缓存同样已下线);验证
grep -rIl nginx-pypi-cache无命中examples-guards/*/scripts/setup_example.sh通过bash -ntests/**/*.py通过python -m py_compile.github/workflows/quick-start-template.ymlYAML 解析通过关联