-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci][build] add tests for python only compilation (#10915)
Signed-off-by: youkaichao <[email protected]>
- Loading branch information
1 parent
a430652
commit 9743d64
Showing
4 changed files
with
46 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
# This script tests if the python only compilation works correctly | ||
# for users who do not have any compilers installed on their system | ||
|
||
set -e | ||
set -x | ||
|
||
cd /vllm-workspace/ | ||
|
||
# uninstall vllm | ||
pip3 uninstall -y vllm | ||
# restore the original files | ||
mv test_docs/vllm ./vllm | ||
|
||
# remove all compilers | ||
apt remove --purge build-essential -y | ||
apt autoremove -y | ||
|
||
echo 'import os; os.system("touch /tmp/changed.file")' >> vllm/__init__.py | ||
|
||
VLLM_USE_PRECOMPILED=1 pip3 install -vvv -e . | ||
|
||
# Run the script | ||
python3 -c 'import vllm' | ||
|
||
# Check if the clangd log file was created | ||
if [ ! -f /tmp/changed.file ]; then | ||
echo "changed.file was not created, python only compilation failed" | ||
exit 1 | ||
fi |