fix(ci): pin aiohttp<3.14 in backend test deps
aioresponses 0.7.8 (latest) does not pass the stream_writer keyword argument that aiohttp 3.14 made required on ClientResponse, so every aioresponses-mocked HTTP test fails to construct a response. core declares aiohttp>=3.9 with no upper bound, so CI floated to 3.14.0 and the backend job would break on the next run. Pin <3.14 in the test install in both build.yml and release.yml until aioresponses ships an aiohttp-3.14-compatible release.
This commit is contained in:
@@ -66,7 +66,11 @@ jobs:
|
||||
|
||||
- name: Install backend + test deps
|
||||
run: |
|
||||
/tmp/venv/bin/pip install /tmp/wheels/*.whl pytest pytest-asyncio httpx aioresponses prometheus_client
|
||||
# Pin aiohttp <3.14: aioresponses 0.7.8 (latest) doesn't pass the
|
||||
# stream_writer kwarg that aiohttp 3.14 made required on ClientResponse,
|
||||
# breaking every aioresponses-mocked test. Drop once aioresponses ships
|
||||
# an aiohttp-3.14-compatible release.
|
||||
/tmp/venv/bin/pip install /tmp/wheels/*.whl pytest pytest-asyncio httpx aioresponses 'aiohttp<3.14' prometheus_client
|
||||
|
||||
- name: Run pytest
|
||||
env:
|
||||
|
||||
@@ -33,7 +33,11 @@ jobs:
|
||||
|
||||
- name: Install backend + test deps
|
||||
run: |
|
||||
/tmp/venv/bin/pip install /tmp/wheels/*.whl pytest pytest-asyncio httpx aioresponses prometheus_client
|
||||
# Pin aiohttp <3.14: aioresponses 0.7.8 (latest) doesn't pass the
|
||||
# stream_writer kwarg that aiohttp 3.14 made required on ClientResponse,
|
||||
# breaking every aioresponses-mocked test. Drop once aioresponses ships
|
||||
# an aiohttp-3.14-compatible release.
|
||||
/tmp/venv/bin/pip install /tmp/wheels/*.whl pytest pytest-asyncio httpx aioresponses 'aiohttp<3.14' prometheus_client
|
||||
|
||||
- name: Run pytest
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user