Skip to content

Commit 5f87879

Browse files
committed
Enhance integration test script to handle failures and clean up resources. Removed unused Google API dependencies from uv.lock.
1 parent 0c90b00 commit 5f87879

File tree

2 files changed

+12
-177
lines changed

2 files changed

+12
-177
lines changed

backends/advanced/run-test.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,19 @@ export DOCKER_BUILDKIT=0
160160

161161
# Run the integration test with extended timeout (mem0 needs time for comprehensive extraction)
162162
print_info "Starting integration test (timeout: 15 minutes)..."
163-
timeout 900 uv run pytest tests/test_integration.py::test_full_pipeline_integration -v -s --tb=short --log-cli-level=INFO
163+
if timeout 900 uv run pytest tests/test_integration.py::test_full_pipeline_integration -v -s --tb=short --log-cli-level=INFO; then
164+
print_success "Integration tests completed successfully!"
165+
else
166+
TEST_EXIT_CODE=$?
167+
print_error "Integration tests FAILED with exit code: $TEST_EXIT_CODE"
168+
169+
# Clean up test containers before exiting
170+
print_info "Cleaning up test containers after failure..."
171+
docker compose -f docker-compose-test.yml down -v || true
172+
docker system prune -f || true
164173

165-
print_success "Integration tests completed successfully!"
174+
exit $TEST_EXIT_CODE
175+
fi
166176

167177
# Clean up test containers
168178
print_info "Cleaning up test containers..."

backends/advanced/uv.lock

Lines changed: 0 additions & 175 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)