From 6e8767d538bd941e8796cb54445942b335f856dd Mon Sep 17 00:00:00 2001 From: Edwin Jose Date: Mon, 11 Aug 2025 16:25:00 -0400 Subject: [PATCH] fix: increase Test time out (#9353) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Improve session fixture cleanup and engine handling Refactors the session fixture to use an in-memory SQLite engine with proper disposal and ensures tables are dropped and the engine is disposed of after tests. This enhances resource management and test isolation. * Update src/backend/tests/conftest.py * Increase pytest timeout to 150 seconds Updated the pytest timeout setting from 120 to 150 seconds in pyproject.toml to allow tests more time to complete, potentially addressing issues with longer-running tests. * Update store_pytest_durations.yml --------- Co-authored-by: Ítalo Johnny --- .github/workflows/store_pytest_durations.yml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/store_pytest_durations.yml b/.github/workflows/store_pytest_durations.yml index eb02e6b25..d27e984f1 100644 --- a/.github/workflows/store_pytest_durations.yml +++ b/.github/workflows/store_pytest_durations.yml @@ -34,7 +34,7 @@ jobs: - name: Run unit tests id: run_tests continue-on-error: true - run: uv run pytest src/backend/tests/unit --timeout=120 --durations-path src/backend/tests/.test_durations --splitting-algorithm least_duration --store-durations + run: uv run pytest src/backend/tests/unit --timeout=150 --durations-path src/backend/tests/.test_durations --splitting-algorithm least_duration --store-durations - name: Close existing PRs diff --git a/pyproject.toml b/pyproject.toml index c8f6e17e4..993032f0f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -242,7 +242,7 @@ ignore-regex = '.*(Stati Uniti|Tense=Pres).*' [tool.pytest.ini_options] -timeout = 120 +timeout = 150 timeout_method = "signal" minversion = "6.0" testpaths = ["src/backend/tests"]