mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 12:07:34 +00:00
fix typo, other naming cleanup
This commit is contained in:
parent
cfa5c641db
commit
1b921590b0
3 changed files with 17 additions and 17 deletions
|
@ -27,24 +27,24 @@ Trigger the integration test recording workflow remotely. This way you do not ne
|
||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
-b, --branch BRANCH Branch to run the workflow on (defaults to current branch)
|
-b, --branch BRANCH Branch to run the workflow on (defaults to current branch)
|
||||||
-p, --test-setup SETUP Test setup to use: vllm, ollama, gpt, etc. (default: ollama)
|
-t, --suite SUITE Test suite to use: base, responses, vision, etc. (default: base)
|
||||||
-t, --test-suite SUITE Test suite to use: base, responses, vision, etc. (default: base)
|
-p, --setup SETUP Test setup to use: vllm, ollama, gpt, etc. (default: ollama)
|
||||||
-s, --test-subdirs DIRS Comma-separated list of test subdirectories to run (overrides suite)
|
-s, --subdirs DIRS Comma-separated list of test subdirectories to run (overrides suite)
|
||||||
-k, --test-pattern PATTERN Regex pattern to pass to pytest -k
|
-k, --pattern PATTERN Regex pattern to pass to pytest -k
|
||||||
-h, --help Show this help message
|
-h, --help Show this help message
|
||||||
|
|
||||||
EXAMPLES:
|
EXAMPLES:
|
||||||
# Record tests for current branch with agents subdirectory
|
# Record tests for current branch with agents subdirectory
|
||||||
$0 --test-subdirs "agents"
|
$0 --subdirs "agents"
|
||||||
|
|
||||||
# Record tests for specific branch with vision tests
|
# Record tests for specific branch with vision tests
|
||||||
$0 -b my-feature-branch --test-suite vision
|
$0 -b my-feature-branch --suite vision
|
||||||
|
|
||||||
# Record multiple test subdirectories with specific setup
|
# Record multiple test subdirectories with specific setup
|
||||||
$0 --test-subdirs "agents,inference" --test-setup vllm
|
$0 --subdirs "agents,inference" --setup vllm
|
||||||
|
|
||||||
# Record tests matching a specific pattern
|
# Record tests matching a specific pattern
|
||||||
$0 --test-subdirs "inference" --test-pattern "test_streaming"
|
$0 --subdirs "inference" --pattern "test_streaming"
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
@ -63,19 +63,19 @@ while [[ $# -gt 0 ]]; do
|
||||||
BRANCH="$2"
|
BRANCH="$2"
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
-s|--test-subdirs)
|
-s|--subdirs)
|
||||||
TEST_SUBDIRS="$2"
|
TEST_SUBDIRS="$2"
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
-p|--test-setup)
|
-p|--setup)
|
||||||
TEST_SETUP="$2"
|
TEST_SETUP="$2"
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
-t|--test-suite)
|
-t|--suite)
|
||||||
TEST_SUITE="$2"
|
TEST_SUITE="$2"
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
-k|--test-pattern)
|
-k|--pattern)
|
||||||
TEST_PATTERN="$2"
|
TEST_PATTERN="$2"
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
|
@ -93,10 +93,10 @@ done
|
||||||
|
|
||||||
# Validate required parameters
|
# Validate required parameters
|
||||||
if [[ -z "$TEST_SUBDIRS" && -z "$TEST_SUITE" ]]; then
|
if [[ -z "$TEST_SUBDIRS" && -z "$TEST_SUITE" ]]; then
|
||||||
echo "Error: --test-subdirs or --test-suite is required"
|
echo "Error: --subdirs or --suite is required"
|
||||||
echo "Please specify which test subdirectories to run or test suite to use, e.g.:"
|
echo "Please specify which test subdirectories to run or test suite to use, e.g.:"
|
||||||
echo " $0 --test-subdirs \"agents,inference\""
|
echo " $0 --subdirs \"agents,inference\""
|
||||||
echo " $0 --test-suite vision"
|
echo " $0 --suite vision"
|
||||||
echo ""
|
echo ""
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -143,7 +143,7 @@ fi
|
||||||
echo "=== Applying Setup Environment Variables ==="
|
echo "=== Applying Setup Environment Variables ==="
|
||||||
|
|
||||||
# the server needs this
|
# the server needs this
|
||||||
export LLAMA_STACK_INFERENCE_MODE=$INFERENCE_MODE
|
export LLAMA_STACK_TEST_INFERENCE_MODE="$INFERENCE_MODE"
|
||||||
|
|
||||||
SETUP_ENV=$(PYTHONPATH=$THIS_DIR/.. python "$THIS_DIR/get_setup_env.py" --suite "$TEST_SUITE" --setup "$TEST_SETUP" --format bash)
|
SETUP_ENV=$(PYTHONPATH=$THIS_DIR/.. python "$THIS_DIR/get_setup_env.py" --suite "$TEST_SUITE" --setup "$TEST_SETUP" --format bash)
|
||||||
echo "Setting up environment variables:"
|
echo "Setting up environment variables:"
|
||||||
|
|
|
@ -162,7 +162,7 @@ cat recordings/responses/abc123.json | jq '.'
|
||||||
#### Remote Re-recording (Recommended)
|
#### Remote Re-recording (Recommended)
|
||||||
Use the automated workflow script for easier re-recording:
|
Use the automated workflow script for easier re-recording:
|
||||||
```bash
|
```bash
|
||||||
./scripts/github/schedule-record-workflow.sh --test-subdirs "inference,agents"
|
./scripts/github/schedule-record-workflow.sh --subdirs "inference,agents"
|
||||||
```
|
```
|
||||||
See the [main testing guide](../README.md#remote-re-recording-recommended) for full details.
|
See the [main testing guide](../README.md#remote-re-recording-recommended) for full details.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue