From d96a48397cfb1793b7d0725a2191374acd66d19e Mon Sep 17 00:00:00 2001 From: Steve Whittaker Date: Sun, 22 Nov 2026 13:19:08 -0600 Subject: [PATCH 1/4] fix(ci): install pytest-asyncio for the chronicle-client tests --- .github/workflows/python-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index de61a811..daddf77d 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -109,6 +109,7 @@ jobs: uv run --no-project --with ./extras/chronicle-client --with pytest + --with pytest-asyncio pytest extras/chronicle-client/tests -q backend-unit: From 6c73317ee65392e11fd8b69ce18fd1c906b93d33 Mon Sep 17 00:00:00 2001 From: Steve Whittaker Date: Sun, 22 Nov 2026 13:19:08 -0600 Subject: [PATCH 2/4] fix(ci): install the faster-whisper group for the ASR tests --- .github/workflows/python-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index daddf77d..6598a25c 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -205,11 +205,11 @@ jobs: version: "latest" - name: Install test dependencies - run: uv sync --locked --group test + run: uv sync --locked --group test --group faster-whisper - name: Run unit tests with coverage run: >- - uv run --group test pytest + uv run --group test --group faster-whisper pytest --ignore=tests/test_parakeet_service.py --cov=common --cov=providers From da20b04662cf614af57c6f2d4ba778a7eebaff5e Mon Sep 17 00:00:00 2001 From: Steve Whittaker Date: Sun, 22 Nov 2026 13:19:08 -0600 Subject: [PATCH 3/4] fix(ci): install Pi and ripgrep for the backend tests --- .github/workflows/python-tests.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 6598a25c..e0559dee 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -153,7 +153,20 @@ jobs: # imported transitively during test collection. # ffmpeg: the audio-persistence tests shell out to the binary to convert # and reconstruct WAV/Opus chunks. - run: sudo apt-get update && sudo apt-get install -y --no-install-recommends libopus0 ffmpeg + # ripgrep: the vault grep tool runs the binary. + run: sudo apt-get update && sudo apt-get install -y --no-install-recommends libopus0 ffmpeg ripgrep + + - name: Set up Node + uses: actions/setup-node@v4.0.2 + with: + node-version: "22.19.0" + + - name: Install Pi + # The Pi executor and vault tool tests drive the real Pi CLI. Keep the + # versions in step with NODE_VERSION and PI_VERSION in backend/Dockerfile. + run: >- + npm install --global --omit=dev --ignore-scripts --no-audit --no-fund + @earendil-works/pi-coding-agent@0.85.1 - name: Install test dependencies run: uv sync --locked --group test From 58700653b9d5e88af42e6458556d39f351efe41e Mon Sep 17 00:00:00 2001 From: Steve Whittaker Date: Sun, 22 Nov 2026 13:19:08 -0600 Subject: [PATCH 4/4] fix(tests): default MONGODB_URI in the device job priority test --- backend/tests/test_device_job_priority.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/tests/test_device_job_priority.py b/backend/tests/test_device_job_priority.py index 62d901d9..20cdbc7e 100644 --- a/backend/tests/test_device_job_priority.py +++ b/backend/tests/test_device_job_priority.py @@ -19,7 +19,7 @@ async def test_explicit_source_request_precedes_background_backlog_and_claims_atomically( mongo_service, ): - client = AsyncIOMotorClient(os.environ["MONGODB_URI"]) + client = AsyncIOMotorClient(os.getenv("MONGODB_URI", "mongodb://localhost:27018")) database = "test_device_job_priority_" + uuid4().hex try: await init_beanie(