From 8996ae3cb3a97764cf9b3c3a82ec2bc9afa1bf2b Mon Sep 17 00:00:00 2001 From: "mendral-app[bot]" <233154221+mendral-app[bot]@users.noreply.github.com> Date: Wed, 22 Apr 2026 15:03:09 -0700 Subject: [PATCH 1/2] ci: isolate browser-heavy tests in a sequential step Exclude test_webvoyager_scripts.py and test_tools.py from the parallel pytest-xdist run and add a dedicated sequential step (-n 1) to prevent worker crashes from OOM when multiple Chromium sessions run concurrently on a 4-vCPU runner. --- .github/workflows/test-cicd.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-cicd.yml b/.github/workflows/test-cicd.yml index 419c3e549..613394672 100644 --- a/.github/workflows/test-cicd.yml +++ b/.github/workflows/test-cicd.yml @@ -133,7 +133,22 @@ jobs: - name: Run unit tests run: | set -o pipefail - uv run pytest -n logical tests --ignore=tests/integration/test_webvoyager_resolution.py --ignore=tests/integration/test_e2e.py --ignore=tests/examples/test_examples.py --ignore=tests/examples/test_readme.py --durations=10 --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=packages | tee pytest-coverage.txt + uv run pytest -n logical tests \ + --ignore=tests/integration/test_webvoyager_resolution.py \ + --ignore=tests/integration/test_e2e.py \ + --ignore=tests/examples/test_examples.py \ + --ignore=tests/examples/test_readme.py \ + --ignore=tests/integration/test_webvoyager_scripts.py \ + --ignore=tests/browser/test_tools.py \ + --durations=10 --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=packages | tee pytest-coverage.txt + + - name: Run browser integration tests (sequential) + run: | + set -o pipefail + uv run pytest -n 1 \ + tests/integration/test_webvoyager_scripts.py \ + tests/browser/test_tools.py \ + --durations=10 | tee -a pytest-coverage.txt - name: Pytest coverage comment if: ${{ always() && github.ref != 'refs/heads/main' }} From 3c586d72971a0fb1f306092a05bf7de997e932e4 Mon Sep 17 00:00:00 2001 From: "mendral-app[bot]" <233154221+mendral-app[bot]@users.noreply.github.com> Date: Wed, 22 Apr 2026 15:05:48 -0700 Subject: [PATCH 2/2] ci: add coverage flags to sequential browser test step --- .github/workflows/test-cicd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-cicd.yml b/.github/workflows/test-cicd.yml index 613394672..562393cdc 100644 --- a/.github/workflows/test-cicd.yml +++ b/.github/workflows/test-cicd.yml @@ -148,7 +148,7 @@ jobs: uv run pytest -n 1 \ tests/integration/test_webvoyager_scripts.py \ tests/browser/test_tools.py \ - --durations=10 | tee -a pytest-coverage.txt + --durations=10 --cov-report=term-missing:skip-covered --cov=packages --cov-append | tee -a pytest-coverage.txt - name: Pytest coverage comment if: ${{ always() && github.ref != 'refs/heads/main' }}