File tree Expand file tree Collapse file tree 2 files changed +12
-177
lines changed
Expand file tree Collapse file tree 2 files changed +12
-177
lines changed Original file line number Diff line number Diff 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)
162162print_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
168178print_info " Cleaning up test containers..."
You can’t perform that action at this time.
0 commit comments