ci: use internal pip cache service instead of public mirror#132
Open
JavaPythonAIForBAT wants to merge 1 commit into
Open
ci: use internal pip cache service instead of public mirror#132JavaPythonAIForBAT wants to merge 1 commit into
JavaPythonAIForBAT wants to merge 1 commit into
Conversation
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>
CLA Signature PassJavaPythonAIForBAT, thanks for your pull request. All authors of the commits have signed the CLA. 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace the hardcoded
-i https://mirrors.huaweicloud.com/repository/pypi/simpleflags in_build-and-test.ymlwith a singleConfig pip mirrorstep that configures the internal K8s cache service globally viapip3 config set.Before: each
pip3 installcommand had an explicit-iflag pointing to the public Huawei Cloud mirror.After: a single setup step sets
global.index-urlto the internal cache service, and all subsequentpip3 installcommands inherit it automatically.Benefits
Test plan
Config pip mirrorstep runs successfully in the containerpip3 install -r requirements.txtresolves packages from the internal cache