mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 15:23:51 +00:00
Merge branch 'main' into vectordb_name
This commit is contained in:
commit
a39c28ada7
2 changed files with 8 additions and 4 deletions
9
.github/workflows/integration-tests.yml
vendored
9
.github/workflows/integration-tests.yml
vendored
|
@ -53,10 +53,13 @@ jobs:
|
||||||
|
|
||||||
- name: Run Integration Tests
|
- name: Run Integration Tests
|
||||||
env:
|
env:
|
||||||
INFERENCE_MODEL: "meta-llama/Llama-3.2-3B-Instruct"
|
OLLAMA_INFERENCE_MODEL: "meta-llama/Llama-3.2-3B-Instruct" # for server tests
|
||||||
OLLAMA_INFERENCE_MODEL: "meta-llama/Llama-3.2-3B-Instruct" # for library tests
|
ENABLE_OLLAMA: "ollama" # for server tests
|
||||||
ENABLE_OLLAMA: "ollama" # for library tests
|
|
||||||
OLLAMA_URL: "http://0.0.0.0:11434"
|
OLLAMA_URL: "http://0.0.0.0:11434"
|
||||||
|
# Use 'shell' to get pipefail behavior
|
||||||
|
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
|
||||||
|
# TODO: write a precommit hook to detect if a test contains a pipe but does not use 'shell: bash'
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ matrix.client-type }}" == "library" ]; then
|
if [ "${{ matrix.client-type }}" == "library" ]; then
|
||||||
stack_config="starter"
|
stack_config="starter"
|
||||||
|
|
|
@ -42,7 +42,7 @@ def start_llama_stack_server(config_name: str) -> subprocess.Popen:
|
||||||
process = subprocess.Popen(
|
process = subprocess.Popen(
|
||||||
cmd,
|
cmd,
|
||||||
stdout=devnull, # redirect stdout to devnull to prevent deadlock
|
stdout=devnull, # redirect stdout to devnull to prevent deadlock
|
||||||
stderr=devnull, # redirect stderr to devnull to prevent deadlock
|
stderr=subprocess.PIPE, # keep stderr to see errors
|
||||||
text=True,
|
text=True,
|
||||||
env={**os.environ, "LLAMA_STACK_LOG_FILE": "server.log"},
|
env={**os.environ, "LLAMA_STACK_LOG_FILE": "server.log"},
|
||||||
)
|
)
|
||||||
|
@ -57,6 +57,7 @@ def wait_for_server_ready(base_url: str, timeout: int = 30, process: subprocess.
|
||||||
while time.time() - start_time < timeout:
|
while time.time() - start_time < timeout:
|
||||||
if process and process.poll() is not None:
|
if process and process.poll() is not None:
|
||||||
print(f"Server process terminated with return code: {process.returncode}")
|
print(f"Server process terminated with return code: {process.returncode}")
|
||||||
|
print(f"Server stderr: {process.stderr.read()}")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue