mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-22 18:46:16 +00:00
fixes
This commit is contained in:
parent
42592217ca
commit
6f2e5647bf
2 changed files with 9 additions and 9 deletions
|
|
@ -35,7 +35,7 @@ runs:
|
||||||
run: |
|
run: |
|
||||||
stack_config="${{ inputs.stack-config }}"
|
stack_config="${{ inputs.stack-config }}"
|
||||||
EXCLUDE_TESTS="builtin_tool or safety_with_image or code_interpreter or test_rag"
|
EXCLUDE_TESTS="builtin_tool or safety_with_image or code_interpreter or test_rag"
|
||||||
|
|
||||||
# Configure provider-specific settings
|
# Configure provider-specific settings
|
||||||
if [ "${{ inputs.provider }}" == "ollama" ]; then
|
if [ "${{ inputs.provider }}" == "ollama" ]; then
|
||||||
export OLLAMA_URL="http://0.0.0.0:11434"
|
export OLLAMA_URL="http://0.0.0.0:11434"
|
||||||
|
|
@ -48,13 +48,13 @@ runs:
|
||||||
EXTRA_PARAMS=""
|
EXTRA_PARAMS=""
|
||||||
EXCLUDE_TESTS="${EXCLUDE_TESTS} or test_inference_store_tool_calls"
|
EXCLUDE_TESTS="${EXCLUDE_TESTS} or test_inference_store_tool_calls"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TEST_TYPES='${{ inputs.test-types }}'
|
TEST_TYPES='${{ inputs.test-types }}'
|
||||||
echo "Test types to run: $TEST_TYPES"
|
echo "Test types to run: $TEST_TYPES"
|
||||||
|
|
||||||
for test_type in $(echo "$TEST_TYPES" | jq -r '.[]'); do
|
for test_type in $(echo "$TEST_TYPES" | jq -r '.[]'); do
|
||||||
echo "=== Running tests for: $test_type ==="
|
echo "=== Running tests for: $test_type ==="
|
||||||
|
|
||||||
if uv run pytest -s -v tests/integration/$test_type --stack-config=${stack_config} \
|
if uv run pytest -s -v tests/integration/$test_type --stack-config=${stack_config} \
|
||||||
-k "not( ${EXCLUDE_TESTS} )" \
|
-k "not( ${EXCLUDE_TESTS} )" \
|
||||||
--text-model=$TEXT_MODEL \
|
--text-model=$TEXT_MODEL \
|
||||||
|
|
|
||||||
10
.github/workflows/integration-tests.yml
vendored
10
.github/workflows/integration-tests.yml
vendored
|
|
@ -40,7 +40,7 @@ jobs:
|
||||||
discover-tests:
|
discover-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
test-type: ${{ steps.generate-matrix.outputs.test-type }}
|
test-types: ${{ steps.generate-test-types.outputs.test-types }}
|
||||||
rerecord-tests: ${{ steps.check-rerecord-tests.outputs.rerecord-tests }}
|
rerecord-tests: ${{ steps.check-rerecord-tests.outputs.rerecord-tests }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -54,7 +54,7 @@ jobs:
|
||||||
TEST_TYPES=$(find tests/integration -maxdepth 1 -mindepth 1 -type d -printf "%f\n" |
|
TEST_TYPES=$(find tests/integration -maxdepth 1 -mindepth 1 -type d -printf "%f\n" |
|
||||||
grep -Ev "^(__pycache__|fixtures|test_cases|recordings)$" |
|
grep -Ev "^(__pycache__|fixtures|test_cases|recordings)$" |
|
||||||
sort | jq -R -s -c 'split("\n")[:-1]')
|
sort | jq -R -s -c 'split("\n")[:-1]')
|
||||||
echo "test-type=$TEST_TYPES" >> $GITHUB_OUTPUT
|
echo "test-types=$TEST_TYPES" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Check if re-record-tests label exists
|
- name: Check if re-record-tests label exists
|
||||||
id: check-rerecord-tests
|
id: check-rerecord-tests
|
||||||
|
|
@ -105,7 +105,7 @@ jobs:
|
||||||
- name: Run Integration Tests for All Types (Recording Mode)
|
- name: Run Integration Tests for All Types (Recording Mode)
|
||||||
uses: ./.github/actions/run-integration-tests
|
uses: ./.github/actions/run-integration-tests
|
||||||
with:
|
with:
|
||||||
test-types: ${{ needs.discover-tests.outputs.test-type }}
|
test-types: ${{ needs.discover-tests.outputs.test-types }}
|
||||||
stack-config: 'ci-tests'
|
stack-config: 'ci-tests'
|
||||||
provider: ${{ inputs.test-provider }}
|
provider: ${{ inputs.test-provider }}
|
||||||
inference-mode: 'record'
|
inference-mode: 'record'
|
||||||
|
|
@ -181,7 +181,7 @@ jobs:
|
||||||
- name: Run Integration Tests (Replay Mode)
|
- name: Run Integration Tests (Replay Mode)
|
||||||
uses: ./.github/actions/run-integration-tests
|
uses: ./.github/actions/run-integration-tests
|
||||||
with:
|
with:
|
||||||
test-types: ${{ needs.discover-tests.outputs.test-type }}
|
test-types: ${{ needs.discover-tests.outputs.test-types }}
|
||||||
stack-config: ${{ matrix.client-type == 'library' && 'ci-tests' || 'server:ci-tests' }}
|
stack-config: ${{ matrix.client-type == 'library' && 'ci-tests' || 'server:ci-tests' }}
|
||||||
provider: ${{ matrix.provider }}
|
provider: ${{ matrix.provider }}
|
||||||
inference-mode: 'replay'
|
inference-mode: 'replay'
|
||||||
|
|
@ -196,7 +196,7 @@ jobs:
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||||
with:
|
with:
|
||||||
name: test-logs-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.provider }}-${{ matrix.client-type }}-${{ matrix.test-type }}-${{ matrix.python-version }}-${{ matrix.client-version }}
|
name: test-logs-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.provider }}-${{ matrix.client-type }}-${{ matrix.python-version }}-${{ matrix.client-version }}
|
||||||
path: |
|
path: |
|
||||||
*.log
|
*.log
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue