fix(ci): route all pip installs through mirror
This commit is contained in:
Vendored
+2
@@ -30,6 +30,8 @@ pipeline {
|
||||
DOCKER_CONFIG = "${WORKSPACE}/.ci/docker"
|
||||
NPM_CONFIG_CACHE = "${WORKSPACE}/.ci/npm-cache"
|
||||
PIP_CACHE_DIR = "${WORKSPACE}/.ci/pip-cache"
|
||||
PIP_INDEX_URL = 'https://pypi.tuna.tsinghua.edu.cn/simple'
|
||||
PIP_DEFAULT_TIMEOUT = '60'
|
||||
IMAGEFIND_WHEEL_CACHE = "${WORKSPACE}/.ci/wheelhouse-python312"
|
||||
IMAGEFIND_DEPENDENCY_TMPDIR = "${WORKSPACE}/.ci/dependency-tmp"
|
||||
IMAGEFIND_VERIFY_TMPDIR = "${WORKSPACE}/.ci/fnos-verify"
|
||||
|
||||
@@ -6,3 +6,9 @@ def test_fnos_dependency_download_uses_fast_configurable_index() -> None:
|
||||
assert "PIP_INDEX_URL=${PIP_INDEX_URL:-https://pypi.tuna.tsinghua.edu.cn/simple}" in script
|
||||
assert '--index-url "$PIP_INDEX_URL"' in script
|
||||
assert '--timeout "$PIP_TIMEOUT" --retries 4' in script
|
||||
|
||||
|
||||
def test_jenkins_uses_fast_index_for_every_pip_stage() -> None:
|
||||
pipeline = (Path(__file__).parents[1] / "Jenkinsfile").read_text()
|
||||
assert "PIP_INDEX_URL = 'https://pypi.tuna.tsinghua.edu.cn/simple'" in pipeline
|
||||
assert "PIP_DEFAULT_TIMEOUT = '60'" in pipeline
|
||||
|
||||
Reference in New Issue
Block a user