Skip to content
Merged
Changes from 1 commit
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
23 changes: 12 additions & 11 deletions .github/workflows/scripts/load-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,13 @@ build_bifrost_http() {
fi

log_info "Building bifrost-http..."
cd "${TRANSPORTS_DIR}"
cd "${BIFROST_HTTP_DIR}"

# Ensure ui directory exists for //go:embed all:ui (load test does not need the real UI assets)
if [ ! -d "${BIFROST_HTTP_DIR}/ui" ]; then
mkdir -p "${BIFROST_HTTP_DIR}/ui"
echo "placeholder" > "${BIFROST_HTTP_DIR}/ui/.gitkeep"
fi
Comment thread
G-XD marked this conversation as resolved.
Resolved

if go build -o ${REPO_ROOT}/tmp/bifrost-http .; then
log_success "bifrost-http built successfully"
Expand All @@ -190,8 +196,9 @@ setup_mocker() {
cd "${WORK_DIR}"
else
log_info "Cloning bifrost-benchmarking repository..."
cd "${WORK_DIR}"
cd "${REPO_ROOT}/.."
git clone --depth 1 https://github.com/maximhq/bifrost-benchmarking.git
cd "${WORK_DIR}"
fi

log_success "Mocker setup complete"
Expand Down Expand Up @@ -242,7 +249,8 @@ create_config() {
{
"name": "mocker-key",
"value": "Bearer mocker-key",
"weight": 1
"weight": 1,
"models": ["*"]
}
],
"network_config": {
Expand All @@ -252,14 +260,6 @@ create_config() {
"concurrency_and_buffer_size": {
"concurrency": 20000,
"buffer_size": 40000
},
"custom_provider_config": {
"base_provider_type": "openai",
"allowed_requests": {
"list_models": false,
"chat_completion": true,
"chat_completion_stream": true
}
}
}
}
Expand Down Expand Up @@ -848,3 +848,4 @@ main() {
}

main "$@"