mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
Adds a required-check candidate that selects the tests/e2e test files a PR added or modified, boots a stage-mirror stack on the runner (migrations, backend, two gateway processes behind nginx, Postgres, Jaeger, TLS cluster Valkey), and runs those files three times with retries off. The run job sits behind the e2e-changed GitHub environment, so a reviewer approves each run before the OIDC token that reads the provider keys from AWS Secrets Manager exists. Supersedes #34981
17 lines
444 B
Bash
Executable file
17 lines
444 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -uo pipefail
|
|
|
|
STACK_DIR="${E2E_STACK_DIR:-${RUNNER_TEMP:-/tmp}/litellm-e2e-stack}"
|
|
|
|
for pid_file in "${STACK_DIR}"/pids/*.pid; do
|
|
[[ -f "${pid_file}" ]] || continue
|
|
pkill -TERM -P "$(cat "${pid_file}")" 2>/dev/null
|
|
kill -TERM "$(cat "${pid_file}")" 2>/dev/null
|
|
rm -f "${pid_file}"
|
|
done
|
|
|
|
for container in e2e-nginx e2e-valkey e2e-jaeger e2e-postgres; do
|
|
docker rm -f "${container}" >/dev/null 2>&1
|
|
done
|
|
|
|
exit 0
|