mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-28 08:21:59 +00:00
fix(build): add UBI 9 compiler tool‑chain and split fast/slow tests (#1970)
* build_container.sh - append `python3.11‑devel gcc make` to UBI 9 dnf line so C‑ext wheels build. * tests/integration - + test_ubi9_toolchain.py (fast; asserts pkgs exist in Containerfile) - + test_ubi9_compiles.py (slow; @integration, compiles hello‑world in built image) - – test_container_build.py (removed heavyweight test) * pytest.ini - register `integration` marker. * CI - tests.yml ⇒ `pytest -m "not integration"` - providers_build.yml ⇒ run integration compiler smoke for container jobs
This commit is contained in:
parent
712c6758c6
commit
2396b1e13a
6 changed files with 130 additions and 1 deletions
5
.github/workflows/providers-build.yml
vendored
5
.github/workflows/providers-build.yml
vendored
|
|
@ -76,6 +76,11 @@ jobs:
|
|||
# LLAMA_STACK_DIR is set to the current directory so we are building from the source
|
||||
USE_COPY_NOT_MOUNT=true LLAMA_STACK_DIR=. uv run llama stack build --template ${{ matrix.template }} --image-type ${{ matrix.image-type }} --image-name test
|
||||
|
||||
- name: Integration compiler smoke
|
||||
if: matrix.image-type == 'container'
|
||||
run: |
|
||||
pytest -m integration tests/integration/test_ubi9_compiles.py
|
||||
|
||||
- name: Print dependencies in the image
|
||||
if: matrix.image-type == 'venv'
|
||||
run: |
|
||||
|
|
|
|||
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
|
|
@ -35,6 +35,10 @@ jobs:
|
|||
pip install -r requirements.txt pytest
|
||||
pip install -e .
|
||||
|
||||
- name: Run fast unit & smoke tests
|
||||
run: |
|
||||
pytest -m "not integration"
|
||||
|
||||
- name: Build providers
|
||||
run: |
|
||||
llama stack build --template ${{ matrix.provider }} --image-type venv
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue