improve e2e tests (#731)

* fix build break

docs build was breaking because requirements file was getting ignored from .dockerignore

* improve e2e tests time

* fix: bump GH Actions to latest versions (checkout@v4, setup-python@v5, build-push-action@v6)

* more improvements

* fix perm

* more improvements

* parallel runs
This commit is contained in:
Adil Hafeez 2026-02-09 13:20:06 -08:00 committed by GitHub
parent 99077d83fb
commit 4d9ed74b68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 327 additions and 31 deletions

View file

@ -0,0 +1,48 @@
#!/bin/bash
# Runs the openai responses API with state storage e2e test suite.
# Requires the plano Docker image to already be built/loaded.
set -e
. ./common_scripts.sh
print_disk_usage
mkdir -p ~/plano_logs
touch ~/plano_logs/modelserver.log
print_debug() {
log "Received signal to stop"
log "Printing debug logs for docker"
log "===================================="
tail -n 100 ../build.log 2>/dev/null || true
planoai logs --debug 2>/dev/null | tail -n 100 || true
}
trap 'print_debug' INT TERM ERR
log starting > ../build.log
# Install plano CLI
log "building and installing plano cli"
cd ../../cli
uv sync
uv tool install .
cd -
# Re-sync e2e deps
uv sync
# Start gateway with state storage config
log "startup arch gateway with state storage config"
cd ../../
planoai down || true
planoai up tests/e2e/config_memory_state_v1_responses.yaml
cd -
# Run tests
log "running e2e tests for openai responses api with state"
uv run pytest test_openai_responses_api_client_with_state.py
# Cleanup
log "shutting down"
planoai down || true