Skip to content

Commit 809a2df

Browse files
authored
Merge pull request #866 from asimurka/bump_llama-stack_to_0.3.0
LCORE-956: Bump llama stack to 0.3.0
2 parents f20efb9 + ff31c6a commit 809a2df

54 files changed

Lines changed: 3936 additions & 1860 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/e2e_tests.yaml

Lines changed: 21 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -93,51 +93,44 @@ jobs:
9393
9494
- name: Select and configure run.yaml
9595
env:
96-
CONFIG_ENVIRONMENT: ${{ matrix.environment }}
96+
CONFIG_MODE: ${{ matrix.mode }}
9797
run: |
9898
CONFIGS_DIR="tests/e2e/configs"
99-
ENVIRONMENT="$CONFIG_ENVIRONMENT"
99+
MODE="$CONFIG_MODE"
100100
101-
echo "Looking for configurations in $CONFIGS_DIR/"
101+
echo "Deployment mode: $MODE"
102102
103-
# List available configurations
104-
if [ -d "$CONFIGS_DIR" ]; then
105-
echo "Available configurations:"
106-
ls -la "$CONFIGS_DIR"/*.yaml 2>/dev/null || echo "No YAML files found in $CONFIGS_DIR/"
103+
# Select config based on mode:
104+
# - library mode: run-library.yaml (llama-stack 0.3.0 format)
105+
# - server mode: run-ci.yaml (original format)
106+
if [ "$MODE" == "library" ]; then
107+
CONFIG_FILE="$CONFIGS_DIR/run-library.yaml"
107108
else
108-
echo "Configs directory '$CONFIGS_DIR' not found!"
109-
exit 1
109+
CONFIG_FILE="$CONFIGS_DIR/run-ci.yaml"
110110
fi
111111
112-
# Determine which config file to use
113-
CONFIG_FILE="$CONFIGS_DIR/run-$ENVIRONMENT.yaml"
114-
115-
echo "Looking for: $CONFIG_FILE"
112+
echo "Using configuration: $CONFIG_FILE"
116113
117-
if [ -f "$CONFIG_FILE" ]; then
118-
echo "Found config for $ENVIRONMENT environment"
119-
cp "$CONFIG_FILE" run.yaml
120-
else
121-
echo "Configuration file not found: $CONFIG_FILE"
122-
echo "Available files:"
123-
find "$CONFIGS_DIR" -name "*.yaml"
114+
if [ ! -f "$CONFIG_FILE" ]; then
115+
echo "❌ Configuration not found: $CONFIG_FILE"
116+
echo "Available configs:"
117+
ls -la "$CONFIGS_DIR"/*.yaml
124118
exit 1
125119
fi
126120
127-
# Update paths for container environment (relative -> absolute)
128-
sed -i 's|db_path: \.llama/distributions|db_path: /app-root/.llama/distributions|g' run.yaml
129-
sed -i 's|db_path: tmp/|db_path: /app-root/.llama/distributions/|g' run.yaml
130-
131-
echo "Successfully configured for $ENVIRONMENT environment"
132-
echo "Using configuration: $(basename "$CONFIG_FILE")"
121+
cp "$CONFIG_FILE" run.yaml
122+
echo "✅ Configuration copied to run.yaml"
133123
134124
- name: Show final configuration
135125
run: |
136126
echo "=== Configuration Summary ==="
137127
echo "Deployment mode: ${{ matrix.mode }}"
138128
echo "Environment: ${{ matrix.environment }}"
139-
echo "Source config: tests/e2e/configs/run-${{ matrix.environment }}.yaml"
140-
echo "Final file: run.yaml"
129+
if [ "${{ matrix.mode }}" == "library" ]; then
130+
echo "Source config: tests/e2e/configs/run-library.yaml"
131+
else
132+
echo "Source config: tests/e2e/configs/run-ci.yaml"
133+
fi
141134
echo ""
142135
echo "=== Configuration Preview ==="
143136
echo "Providers: $(grep -c "provider_id:" run.yaml)"

docker-compose.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ services:
2323
- RHEL_AI_PORT=${RHEL_AI_PORT}
2424
- RHEL_AI_API_KEY=${RHEL_AI_API_KEY}
2525
- RHEL_AI_MODEL=${RHEL_AI_MODEL}
26-
- LLAMA_STACK_LOGGING=all=debug # enable llama-stack debug log
2726
networks:
2827
- lightspeednet
2928
healthcheck:

0 commit comments

Comments
 (0)