[Misc] Add generated git commit hash as vllm.__commit__ (#6386)

This commit is contained in:
Michael Goin
2024-07-12 18:52:15 -04:00
committed by GitHub
parent 75f64d8b94
commit 111fc6e7ec
5 changed files with 47 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
import vllm
def test_embedded_commit_defined():
assert vllm.__commit__ != "COMMIT_HASH_PLACEHOLDER"
# 7 characters is the length of a short commit hash
assert len(vllm.__commit__) >= 7