From 374ec126a47a269892fc7b43c89c5b77955559c8 Mon Sep 17 00:00:00 2001 From: Teo Date: Mon, 30 Dec 2024 04:37:49 +0100 Subject: [PATCH] prevent workflow timeouts when it should just complete Signed-off-by: Teo --- .github/workflows/python-tests.yaml | 2 +- pyproject.toml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-tests.yaml b/.github/workflows/python-tests.yaml index 5b57a61b7..2f35bd9b5 100644 --- a/.github/workflows/python-tests.yaml +++ b/.github/workflows/python-tests.yaml @@ -51,7 +51,7 @@ jobs: - name: Run tests with coverage timeout-minutes: 10 run: | - uv run -m pytest -x --cov --cov-report=xml + uv run -m pytest tests/ -v --cov=agentops --cov-report=xml env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} AGENTOPS_API_KEY: ${{ secrets.AGENTOPS_API_KEY }} diff --git a/pyproject.toml b/pyproject.toml index 07f7aab3a..8f9066d0a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -90,8 +90,9 @@ test_paths = [ ] addopts = "--tb=short -p no:warnings" pythonpath = ["."] -faulthandler_timeout = 60 # Dump traceback after 20 seconds if tests hang -timeout = 300 # Global timeout for tests +faulthandler_timeout = 30 # Reduced from 60 +timeout = 60 # Reduced from 300 +disable_socket = true # Add this to prevent hanging on socket cleanup [tool.ruff] line-length = 120