-
Notifications
You must be signed in to change notification settings - Fork 692
[XPU][CI] Set pip index URL to Tsinghua mirror #5277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for your contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request configures the XPU CI pipeline to use Tsinghua University's PyPI mirror for faster package downloads in China-based CI environments.
- Adds pip configuration to use Tsinghua mirror as the global index URL
- Aims to improve package installation speed during XPU CI runs
| python -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple | ||
| echo "pip requirements" | ||
| python -m pip install -r requirements.txt |
Copilot
AI
Nov 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pip config set global.index-url command permanently modifies the user's pip configuration file (~/.pip/pip.conf or ~/.config/pip/pip.conf). This can affect pip behavior outside of this CI script. Consider using the -i or --index-url flag directly in the pip install commands instead (e.g., python -m pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple) to scope the mirror usage to just this script without persisting global configuration changes.
| python -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple | |
| echo "pip requirements" | |
| python -m pip install -r requirements.txt | |
| # Use Tsinghua mirror for this install only | |
| echo "pip requirements" | |
| python -m pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5277 +/- ##
==========================================
Coverage ? 60.63%
==========================================
Files ? 320
Lines ? 39054
Branches ? 5871
==========================================
Hits ? 23681
Misses ? 13514
Partials ? 1859
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Motivation
Modifications
Usage or Command
Accuracy Tests
Checklist
[FDConfig],[APIServer],[Engine],[Scheduler],[PD Disaggregation],[Executor],[Graph Optimization],[Speculative Decoding],[RL],[Models],[Quantization],[Loader],[OP],[KVCache],[DataProcessor],[BugFix],[Docs],[CI],[Optimization],[Feature],[Benchmark],[Others],[XPU],[HPU],[GCU],[DCU],[Iluvatar],[Metax]]pre-commitbefore commit.releasebranch, make sure the PR has been submitted to thedevelopbranch, then cherry-pick it to thereleasebranch with the[Cherry-Pick]PR tag.