Skip to content

Commit 8e2c99b

Browse files
lesebnathan-weinberg
authored andcommitted
wip
1 parent e23d4d5 commit 8e2c99b

File tree

2 files changed

+71
-67
lines changed

2 files changed

+71
-67
lines changed

.github/workflows/redhat-distro-container.yml

Lines changed: 70 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -74,69 +74,73 @@ jobs:
7474
shell: bash
7575
run: ./tests/run_integration_tests.sh
7676

77-
- name: Gather logs and debugging information
78-
if: always()
79-
shell: bash
80-
run: |
81-
# Create logs directory
82-
mkdir -p logs
83-
84-
docker logs llama-stack > logs/llama-stack.log 2>&1 || echo "Failed to get llama-stack logs" > logs/llama-stack.log
85-
docker logs vllm > logs/vllm.log 2>&1 || echo "Failed to get vllm logs" > logs/vllm.log
86-
87-
# Gather system information
88-
echo "=== System information ==="
89-
{
90-
echo "Disk usage:"
91-
df -h
92-
echo "Memory usage:"
93-
free -h
94-
echo "Docker images:"
95-
docker images
96-
echo "Docker containers:"
97-
docker ps -a
98-
} > logs/system-info.log 2>&1
99-
100-
# Gather integration test logs if they exist
101-
echo "=== Integration test artifacts ==="
102-
if [ -d "/tmp/llama-stack-integration-tests" ]; then
103-
find /tmp/llama-stack-integration-tests -name "*.log" -o -name "pytest.log" -o -name "*.out" 2>/dev/null | while read -r file; do
104-
cp "$file" "logs/$(basename "$file")" || true
105-
done
106-
fi
107-
108-
- name: Upload logs as artifacts
109-
if: always()
110-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.7.0
111-
with:
112-
name: ci-logs-${{ github.sha }}
113-
path: logs/
114-
retention-days: 7
115-
116-
- name: cleanup
117-
if: always()
118-
shell: bash
119-
run: |
120-
docker rm -f vllm llama-stack
121-
122-
- name: Log in to Quay.io
123-
id: login
124-
if: github.event_name == 'push'
125-
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
126-
with:
127-
registry: ${{ env.REGISTRY }}
128-
username: ${{ secrets.QUAY_USERNAME }}
129-
password: ${{ secrets.QUAY_PASSWORD }}
130-
131-
- name: Publish image to Quay.io
132-
id: publish
133-
if: github.event_name == 'push'
134-
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
135-
with:
136-
context: .
137-
file: distribution/Containerfile
138-
platforms: ${{ matrix.platform }}
139-
push: true
140-
tags: ${{ env.IMAGE_NAME }}:${{ github.sha }}${{ github.ref == 'refs/heads/main' && format(',{0}:latest', env.IMAGE_NAME) || '' }} # only update 'latest' tag if push is to the 'main' branch
141-
cache-from: type=gha
142-
cache-to: type=gha,mode=max
77+
# - name: Gather logs and debugging information
78+
# if: always()
79+
# shell: bash
80+
# run: |
81+
# # Create logs directory
82+
# mkdir -p logs
83+
84+
# docker logs llama-stack > logs/llama-stack.log 2>&1 || echo "Failed to get llama-stack logs" > logs/llama-stack.log
85+
# docker logs vllm > logs/vllm.log 2>&1 || echo "Failed to get vllm logs" > logs/vllm.log
86+
87+
# # Gather system information
88+
# echo "=== System information ==="
89+
# {
90+
# echo "Disk usage:"
91+
# df -h
92+
# echo "Memory usage:"
93+
# free -h
94+
# echo "Docker images:"
95+
# docker images
96+
# echo "Docker containers:"
97+
# docker ps -a
98+
# } > logs/system-info.log 2>&1
99+
100+
# # Gather integration test logs if they exist
101+
# echo "=== Integration test artifacts ==="
102+
# if [ -d "/tmp/llama-stack-integration-tests" ]; then
103+
# find /tmp/llama-stack-integration-tests -name "*.log" -o -name "pytest.log" -o -name "*.out" 2>/dev/null | while read -r file; do
104+
# cp "$file" "logs/$(basename "$file")" || true
105+
# done
106+
# fi
107+
108+
# - name: Upload logs as artifacts
109+
# if: always()
110+
# uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.7.0
111+
# with:
112+
# name: ci-logs-${{ github.sha }}
113+
# path: logs/
114+
# retention-days: 7
115+
116+
# - name: cleanup
117+
# if: always()
118+
# shell: bash
119+
# run: |
120+
# docker rm -f vllm llama-stack
121+
122+
# - name: Log in to Quay.io
123+
# id: login
124+
# if: github.event_name == 'push'
125+
# uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
126+
# with:
127+
# registry: ${{ env.REGISTRY }}
128+
# username: ${{ secrets.QUAY_USERNAME }}
129+
# password: ${{ secrets.QUAY_PASSWORD }}
130+
131+
# - name: Publish image to Quay.io
132+
# id: publish
133+
# if: github.event_name == 'push'
134+
# uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
135+
# with:
136+
# context: .
137+
# file: distribution/Containerfile
138+
# platforms: ${{ matrix.platform }}
139+
# push: true
140+
# tags: ${{ env.IMAGE_NAME }}:${{ github.sha }}${{ github.ref == 'refs/heads/main' && format(',{0}:latest', env.IMAGE_NAME) || '' }} # only update 'latest' tag if push is to the 'main' branch
141+
# cache-from: type=gha
142+
# cache-to: type=gha,mode=max
143+
144+
- name: Setup tmate session
145+
if: ${{ always() }}
146+
uses: mxschmitt/action-tmate@v3

tests/run_integration_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function run_integration_tests() {
5050
exit 1
5151
fi
5252

53-
uv run pytest -s -v tests/integration/inference/ \
53+
uv run pytest -s -vvvv tests/integration/inference/test_text_inference.py::test_text_chat_completion_structured_output \
5454
--stack-config=server:"$STACK_CONFIG_PATH" \
5555
--text-model=vllm-inference/"$INFERENCE_MODEL" \
5656
--embedding-model=granite-embedding-125m \

0 commit comments

Comments
 (0)