mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
Integration tests now support replaying TypeScript SDK tests alongside Python tests when running against server-mode stacks. This enables cross-language validation of API contracts and ensures the TypeScript client properly handles recorded responses. The implementation adds a new `RUN_CLIENT_TS_TESTS` environment variable that triggers TypeScript test execution after successful Python runs. A mapping file (`suites.json`) defines which TypeScript test files correspond to each Python test suite/setup combination. The script automatically installs npm dependencies, forwards server configuration (base URL and model defaults from setup definitions), and executes matching TypeScript tests using Jest. CI integration is enabled for server-based test jobs, and the feature can be exercised locally with commands like: \`\`\`bash RUN_CLIENT_TS_TESTS=1 scripts/integration-tests.sh --stack-config server:ci-tests --suite responses --setup gpt \`\`\` The TypeScript tests reuse existing replay fixtures through the forwarded \`TEST_API_BASE_URL\`, avoiding the need for duplicate response recordings.
38 lines
612 B
Text
38 lines
612 B
Text
.env
|
|
__pycache__
|
|
dist
|
|
*.egg-info
|
|
dev_requirements.txt
|
|
build
|
|
.DS_Store
|
|
llama_stack/configs/*
|
|
.cursor/
|
|
xcuserdata/
|
|
*.hmap
|
|
.DS_Store
|
|
.build/
|
|
Package.resolved
|
|
*.pte
|
|
*.ipynb_checkpoints*
|
|
.idea
|
|
.venv/
|
|
.vscode
|
|
_build
|
|
# Sample tool-calling datasets generated by NVIDIA notebooks
|
|
docs/notebooks/nvidia/tool_calling/sample_data/
|
|
pyrightconfig.json
|
|
venv/
|
|
pytest-report.xml
|
|
.coverage
|
|
.python-version
|
|
AGENTS.md
|
|
server.log
|
|
CLAUDE.md
|
|
.claude/
|
|
docs/.docusaurus/
|
|
docs/node_modules/
|
|
docs/static/imported-files/
|
|
docs/docs/api-deprecated/
|
|
docs/docs/api-experimental/
|
|
docs/docs/api/
|
|
tests/integration/client-typescript/node_modules/
|