Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 21 additions & 28 deletions .github/workflows/e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,51 +93,44 @@ jobs:

- name: Select and configure run.yaml
env:
CONFIG_ENVIRONMENT: ${{ matrix.environment }}
CONFIG_MODE: ${{ matrix.mode }}
run: |
CONFIGS_DIR="tests/e2e/configs"
ENVIRONMENT="$CONFIG_ENVIRONMENT"
MODE="$CONFIG_MODE"

echo "Looking for configurations in $CONFIGS_DIR/"
echo "Deployment mode: $MODE"

# List available configurations
if [ -d "$CONFIGS_DIR" ]; then
echo "Available configurations:"
ls -la "$CONFIGS_DIR"/*.yaml 2>/dev/null || echo "No YAML files found in $CONFIGS_DIR/"
# Select config based on mode:
# - library mode: run-library.yaml (llama-stack 0.3.0 format)
# - server mode: run-ci.yaml (original format)
if [ "$MODE" == "library" ]; then
CONFIG_FILE="$CONFIGS_DIR/run-library.yaml"
else
echo "Configs directory '$CONFIGS_DIR' not found!"
exit 1
CONFIG_FILE="$CONFIGS_DIR/run-ci.yaml"
fi

# Determine which config file to use
CONFIG_FILE="$CONFIGS_DIR/run-$ENVIRONMENT.yaml"

echo "Looking for: $CONFIG_FILE"
echo "Using configuration: $CONFIG_FILE"

if [ -f "$CONFIG_FILE" ]; then
echo "Found config for $ENVIRONMENT environment"
cp "$CONFIG_FILE" run.yaml
else
echo "Configuration file not found: $CONFIG_FILE"
echo "Available files:"
find "$CONFIGS_DIR" -name "*.yaml"
if [ ! -f "$CONFIG_FILE" ]; then
echo "❌ Configuration not found: $CONFIG_FILE"
echo "Available configs:"
ls -la "$CONFIGS_DIR"/*.yaml
exit 1
fi

# Update paths for container environment (relative -> absolute)
sed -i 's|db_path: \.llama/distributions|db_path: /app-root/.llama/distributions|g' run.yaml
sed -i 's|db_path: tmp/|db_path: /app-root/.llama/distributions/|g' run.yaml

echo "Successfully configured for $ENVIRONMENT environment"
echo "Using configuration: $(basename "$CONFIG_FILE")"
cp "$CONFIG_FILE" run.yaml
echo "✅ Configuration copied to run.yaml"

- name: Show final configuration
run: |
echo "=== Configuration Summary ==="
echo "Deployment mode: ${{ matrix.mode }}"
echo "Environment: ${{ matrix.environment }}"
echo "Source config: tests/e2e/configs/run-${{ matrix.environment }}.yaml"
echo "Final file: run.yaml"
if [ "${{ matrix.mode }}" == "library" ]; then
echo "Source config: tests/e2e/configs/run-library.yaml"
else
echo "Source config: tests/e2e/configs/run-ci.yaml"
fi
echo ""
echo "=== Configuration Preview ==="
echo "Providers: $(grep -c "provider_id:" run.yaml)"
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ services:
- RHEL_AI_PORT=${RHEL_AI_PORT}
- RHEL_AI_API_KEY=${RHEL_AI_API_KEY}
- RHEL_AI_MODEL=${RHEL_AI_MODEL}
- LLAMA_STACK_LOGGING=all=debug # enable llama-stack debug log
networks:
- lightspeednet
healthcheck:
Expand Down
Loading
Loading