Merge pull request #14699 from ARajan1084/bedrock-guardrail-view

NEW Amazon Bedrock Guardrail Info View in Logs
This commit is contained in:
Krish Dholakia 2025-09-18 17:52:19 -07:00 committed by GitHub
commit ccb817d16c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 572 additions and 487 deletions

View file

@ -2825,8 +2825,8 @@ jobs:
source "$NVM_DIR/bash_completion"
# Install and use Node version
nvm install v18.17.0
nvm use v18.17.0
nvm install v20
nvm use v20
cd ui/litellm-dashboard
@ -2882,30 +2882,22 @@ jobs:
- run:
name: Run UI unit tests (Vitest)
command: |
# Use the same Node version we installed earlier with nvm
# Use Node 20 (several deps require >=20)
export NVM_DIR="/opt/circleci/.nvm"
source "$NVM_DIR/nvm.sh"
nvm use v18.17.0
nvm install 20
nvm use 20
cd ui/litellm-dashboard
# Ensure clean, deterministic install (skip if you prefer npm install)
npm ci || npm install
# Run Vitest via your package.json script:
# - --run to avoid watch mode on CI
# - --coverage to produce coverage
# - --coverage.reporter=lcov so Codecov can ingest lcov.info
# - Feel free to drop --reporter if you dont need extra output
npm run test -- --run --coverage --coverage.reporter=lcov
# If you use a JUnit reporter (e.g., vitest-junit-reporter),
# ensure it writes to ./test-results/junit.xml so Circle collects it
mkdir -p test-results || true
- store_test_results:
path: ui/litellm-dashboard/test-results
- store_artifacts:
path: ui/litellm-dashboard/coverage
destination: ui-coverage
# CI run, with both LCOV (Codecov) and HTML (artifact you can click)
CI=true npm run test -- --run --coverage \
--coverage.provider=v8 \
--coverage.reporter=lcov \
--coverage.reporter=html \
--coverage.reportsDirectory=coverage/html
- run:
name: Build Docker image

File diff suppressed because it is too large Load diff

View file

@ -52,6 +52,8 @@
"@types/react-dom": "^18",
"@types/react-syntax-highlighter": "^15.5.11",
"@types/uuid": "^10.0.0",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/ui": "^3.2.4",
"autoprefixer": "^10.4.17",
"eslint": "^8",
"eslint-config-next": "14.2.32",
@ -61,7 +63,7 @@
"tailwindcss": "^3.4.1",
"typescript": "5.3.3",
"vite": "^5.4.20",
"vitest": "^1.6.1"
"vitest": "^3.2.4"
},
"overrides": {
"prismjs": ">=1.30.0",