mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Try to speed up lintrunner in CI (#124311)
Before timing: clang is 19min and noclang is 16min After timing: clang is 17min and noclang is 15min This is still crazy slow so most likely more could be done but didn't check the logs in details. Pull Request resolved: https://github.com/pytorch/pytorch/pull/124311 Approved by: https://github.com/ezyang, https://github.com/Skylion007
This commit is contained in:
3
.github/scripts/lintrunner.sh
vendored
3
.github/scripts/lintrunner.sh
vendored
@ -6,6 +6,9 @@ CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
|
||||
eval "$(command conda 'shell.bash' 'hook' 2> /dev/null)"
|
||||
conda activate "${CONDA_ENV}"
|
||||
|
||||
# Use uv to speed up lintrunner init
|
||||
python3 -m pip install uv
|
||||
|
||||
CACHE_DIRECTORY="/tmp/.lintbin"
|
||||
# Try to recover the cached binaries
|
||||
if [[ -d "${CACHE_DIRECTORY}" ]]; then
|
||||
|
Reference in New Issue
Block a user