Skip to content

Commit c1492fb

Browse files
debug: add anyio package inspection to CI
Add debugging step to lowest-direct tests to inspect the actual anyio package being installed. This will help diagnose why the CI is seeing code that tries to import RunFinishedError (which only exists in anyio 4.11+) even though anyio 4.5.0 is being installed. The debug step will output: - Installed anyio version - Package location - Whether RunFinishedError appears in the source - First 100 lines of _backends/_asyncio.py - Package directory contents This runs only on lowest-direct tests to avoid cluttering logs.
1 parent 03de4ae commit c1492fb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/shared.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,26 @@ jobs:
5656
- name: Install the project
5757
run: uv sync ${{ matrix.dep-resolution.install-flags }} --all-extras --python ${{ matrix.python-version }}
5858

59+
- name: Debug - Inspect installed anyio package
60+
if: matrix.dep-resolution.name == 'lowest-direct'
61+
run: |
62+
set -x
63+
echo "=== Anyio Version ==="
64+
uv run python -c "from importlib.metadata import version; print(version('anyio'))"
65+
66+
echo "=== Anyio Package Location ==="
67+
ANYIO_PATH=$(uv run python -c "import anyio, os; print(os.path.dirname(anyio.__file__))")
68+
echo "$ANYIO_PATH"
69+
70+
echo "=== Checking for RunFinishedError in _asyncio.py ==="
71+
grep -n "RunFinishedError" "$ANYIO_PATH/_backends/_asyncio.py" || echo "Not found"
72+
73+
echo "=== First 100 lines of _asyncio.py ==="
74+
head -100 "$ANYIO_PATH/_backends/_asyncio.py"
75+
76+
echo "=== List anyio package contents ==="
77+
ls -la "$ANYIO_PATH"
78+
5979
- name: Run pytest
6080
run: uv run --frozen --no-sync pytest
6181

0 commit comments

Comments
 (0)