Skip to content

ci: use internal pip cache service instead of public mirror#132

Open
JavaPythonAIForBAT wants to merge 1 commit into
Ascend:masterfrom
JavaPythonAIForBAT:ci/use-internal-pip-mirror
Open

ci: use internal pip cache service instead of public mirror#132
JavaPythonAIForBAT wants to merge 1 commit into
Ascend:masterfrom
JavaPythonAIForBAT:ci/use-internal-pip-mirror

Conversation

@JavaPythonAIForBAT
Copy link
Copy Markdown

Summary

Replace the hardcoded -i https://mirrors.huaweicloud.com/repository/pypi/simple flags in _build-and-test.yml with a single Config pip mirror step that configures the internal K8s cache service globally via pip3 config set.

Before: each pip3 install command had an explicit -i flag pointing to the public Huawei Cloud mirror.

After: a single setup step sets global.index-url to the internal cache service, and all subsequent pip3 install commands inherit it automatically.

Benefits

  • Reduces redundancy (one place to update the mirror URL)
  • Internal cache service is faster and more reliable within the cluster
  • Consistent with the pattern used in other Ascend CI workflows

Test plan

  • Verify Config pip mirror step runs successfully in the container
  • Verify pip3 install -r requirements.txt resolves packages from the internal cache

Replace hardcoded -i https://mirrors.huaweicloud.com/repository/pypi/simple
flags with a dedicated Config pip mirror step that sets the internal K8s
cache service via pip3 config, so all subsequent pip3 install commands
use it without per-command overrides.

Co-Authored-By: wuhejun <wuhejun@h-partners.com>
@ascend-robot
Copy link
Copy Markdown

CLA Signature Pass

JavaPythonAIForBAT, thanks for your pull request. All authors of the commits have signed the CLA. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants