fix(voice): aiortc 1.17.2, as 1.14 lost a call's audio with cryptography 51 #22

Merged
dawid merged 1 commit from fix-voice-aiortc into main 2026-12-03 19:33:51 +00:00
Owner

The voice job has failed since #21, on the PR and on main: in the call test (tests/voice/call_e2e.py) the caller hears nothing from the bot (caller heard: '').

Cause: cryptography 51.0.0 (released 2026-12-02). pip installs it with aiortc 1.14.0, and since then the call carries no audio.

  • Not the aio-talk image: latest moved to 20261202_125732, but both that tag and 20261119_161514 pass with the voice image from 11-29.
  • Not the voice code: unchanged since 1.1.0.
  • Rebuilt from main: the image differs from the 11-29 one only in cryptography 50.0.2 → 51.0.0, pyOpenSSL 26.4.0 → 26.5.1 and httpx2. It fails the call every time.
  • What fixes it: going back to cryptography 50.0.2, or aiortc 1.17.2 with cryptography 51. Going back to pyOpenSSL 26.4.0 only works because it also brings cryptography 50.

Fix: aiortc 1.14.0 → 1.17.2.

Checked locally, with the image built from this branch:

  • the 27 voice unit tests pass;
  • the call test passes against aio-talk:latest, with aiortc 1.17.2 and cryptography 51.0.0.

Renovate's #20 fails the same voice job, because it doesn't raise aiortc.

The `voice` job has failed since #21, on the PR and on main: in the call test (`tests/voice/call_e2e.py`) the caller hears nothing from the bot (`caller heard: ''`). **Cause:** cryptography 51.0.0 (released 2026-12-02). pip installs it with aiortc 1.14.0, and since then the call carries no audio. - **Not the aio-talk image:** `latest` moved to `20261202_125732`, but both that tag and `20261119_161514` pass with the voice image from 11-29. - **Not the voice code:** unchanged since 1.1.0. - **Rebuilt from main:** the image differs from the 11-29 one only in cryptography 50.0.2 → 51.0.0, pyOpenSSL 26.4.0 → 26.5.1 and httpx2. It fails the call every time. - **What fixes it:** going back to cryptography 50.0.2, or aiortc 1.17.2 with cryptography 51. Going back to pyOpenSSL 26.4.0 only works because it also brings cryptography 50. **Fix:** aiortc 1.14.0 → 1.17.2. **Checked locally**, with the image built from this branch: - the 27 voice unit tests pass; - the call test passes against `aio-talk:latest`, with aiortc 1.17.2 and cryptography 51.0.0. Renovate's #20 fails the same `voice` job, because it doesn't raise aiortc.
fix(voice): aiortc 1.17.2, as 1.14 lost a call's audio with cryptography 51
All checks were successful
CI / php (dev-master) (pull_request) Successful in 1m46s
CI / php (dev-stable33) (pull_request) Successful in 1m44s
CI / markdown (pull_request) Successful in 42s
CI / php (dev-stable35) (pull_request) Successful in 1m49s
CI / php (dev-stable32) (pull_request) Successful in 1m43s
CI / php (dev-stable34) (pull_request) Successful in 1m43s
CI / server (32) (pull_request) Successful in 2s
CI / standards (pull_request) Successful in 2m6s
CI / server (35) (pull_request) Successful in 2s
CI / talk-api (pull_request) Successful in 46s
CI / voice (pull_request) Successful in 3m58s
CI / golden (pull_request) Successful in 5m55s
b0b479e106
pip brings the newest cryptography with aiortc; with 51.0.0 (2026-12-02) the
caller of tests/voice/call_e2e.py heard nothing from the bot (CI's voice job
failing since #21; reproduced locally, and fixed by cryptography 50.0.2 or by
aiortc 1.17.2). 1.17.2 passes the call with cryptography 51.
dawid merged commit 2bae8f135c into main 2026-12-03 19:33:51 +00:00
dawid deleted branch fix-voice-aiortc 2026-12-03 19:33:51 +00:00

Tests of CI / php (dev-master): passed

266 passed, 0 failed, 0 skipped (266 tests, 10.9 s)

Of b0b479e106, the run, updated by every run.

<!-- ci-report tests: CI-php-dev-master- --> ### Tests of CI / php (dev-master): passed **266 passed, 0 failed, 0 skipped** (266 tests, 10.9 s) <sub>Of b0b479e106, [the run](https://git.ciepiela.org/dawid/nextcloud-talk-ai/actions/runs/215), updated by every run.</sub>

Tests of CI / php (dev-stable32): passed

266 passed, 0 failed, 0 skipped (266 tests, 10.7 s)

Of b0b479e106, the run, updated by every run.

<!-- ci-report tests: CI-php-dev-stable32- --> ### Tests of CI / php (dev-stable32): passed **266 passed, 0 failed, 0 skipped** (266 tests, 10.7 s) <sub>Of b0b479e106, [the run](https://git.ciepiela.org/dawid/nextcloud-talk-ai/actions/runs/215), updated by every run.</sub>

Tests of CI / php (dev-stable33): passed

266 passed, 0 failed, 0 skipped (266 tests, 10.8 s)

Of b0b479e106, the run, updated by every run.

<!-- ci-report tests: CI-php-dev-stable33- --> ### Tests of CI / php (dev-stable33): passed **266 passed, 0 failed, 0 skipped** (266 tests, 10.8 s) <sub>Of b0b479e106, [the run](https://git.ciepiela.org/dawid/nextcloud-talk-ai/actions/runs/215), updated by every run.</sub>

Tests of CI / php (dev-stable34): passed

266 passed, 0 failed, 0 skipped (266 tests, 10.8 s)

Of b0b479e106, the run, updated by every run.

<!-- ci-report tests: CI-php-dev-stable34- --> ### Tests of CI / php (dev-stable34): passed **266 passed, 0 failed, 0 skipped** (266 tests, 10.8 s) <sub>Of b0b479e106, [the run](https://git.ciepiela.org/dawid/nextcloud-talk-ai/actions/runs/215), updated by every run.</sub>

Tests of CI / php (dev-stable35): passed

266 passed, 0 failed, 0 skipped (266 tests, 10.6 s)

Of b0b479e106, the run, updated by every run.

<!-- ci-report tests: CI-php-dev-stable35- --> ### Tests of CI / php (dev-stable35): passed **266 passed, 0 failed, 0 skipped** (266 tests, 10.6 s) <sub>Of b0b479e106, [the run](https://git.ciepiela.org/dawid/nextcloud-talk-ai/actions/runs/215), updated by every run.</sub>
Sign in to join this conversation.
No description provided.