ci(retrieval): disable unstable Xet downloads
This commit is contained in:
1 parent
9e74b9be4a
commit
cb6cebb3d4
3 files changed
+7
No files matched your search
@@ -172,6 +172,7 @@ jobs:
|
|||||||
- name: Run retrieval tests with real models
|
- name: Run retrieval tests with real models
|
||||||
env:
|
env:
|
||||||
QWEN_TEST_MODEL_CACHE: ${{ github.workspace }}/.cache/huggingface
|
QWEN_TEST_MODEL_CACHE: ${{ github.workspace }}/.cache/huggingface
|
||||||
|
HF_HUB_DISABLE_XET: '1'
|
||||||
run: python scripts/tests/test-retrieval-server.py
|
run: python scripts/tests/test-retrieval-server.py
|
||||||
|
|
||||||
security:
|
security:
|
||||||
|
|||||||
@@ -172,6 +172,7 @@ jobs:
|
|||||||
- name: Run retrieval tests with real models
|
- name: Run retrieval tests with real models
|
||||||
env:
|
env:
|
||||||
QWEN_TEST_MODEL_CACHE: ${{ github.workspace }}/.cache/huggingface
|
QWEN_TEST_MODEL_CACHE: ${{ github.workspace }}/.cache/huggingface
|
||||||
|
HF_HUB_DISABLE_XET: '1'
|
||||||
run: python scripts/tests/test-retrieval-server.py
|
run: python scripts/tests/test-retrieval-server.py
|
||||||
|
|
||||||
security:
|
security:
|
||||||
|
|||||||
@@ -27,6 +27,11 @@ def embedding():
|
|||||||
|
|
||||||
|
|
||||||
class RetrievalServerTests(unittest.TestCase):
|
class RetrievalServerTests(unittest.TestCase):
|
||||||
|
def test_ci_disables_xet_for_model_downloads(self):
|
||||||
|
for workflow in ('.github/workflows/ci.yml', '.gitea/workflows/ci.yml'):
|
||||||
|
content = (ROOT / workflow).read_text(encoding='utf-8')
|
||||||
|
self.assertIn("HF_HUB_DISABLE_XET: '1'", content)
|
||||||
|
|
||||||
def test_runtime_python_uses_adjacent_virtualenv(self):
|
def test_runtime_python_uses_adjacent_virtualenv(self):
|
||||||
with TemporaryDirectory() as temporary:
|
with TemporaryDirectory() as temporary:
|
||||||
script = Path(temporary) / 'semantic-retrieval' / 'server.py'
|
script = Path(temporary) / 'semantic-retrieval' / 'server.py'
|
||||||
|
|||||||
Reference in new issue
Block a user