Repository navigation
fix(ingestion): pin anyio<4.15 in the mlflow test image to unblock py-tests shard-2 (2.0) - #32541
Conversation
Code Review ✅ ApprovedPins OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
✅ Playwright Results — workflow succeededValidated commit ✅ 110 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 1h 20m 30s ⏱️ Max setup 3m 3s · max shard execution 12m 27s · max shard-job elapsed before upload 17m 15s · reporting 6s 🌐 209.07 requests/attempt · 1.79 app boots/UI scenario · 0.00% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
|



Describe your changes:
Fixes #32528
Backport of #32525 to
2.0.py-testsshard-2 fails on this branch exactly as it did onmain. The MLflow fixture builds a throwaway MLflow server image with an unlockedpip install, so it picks up anyio 4.15.0 (published 2026-09-02T21:46:35Z). anyio 4.15 made its submodules lazily imported without exposingfrom_thread, which Starlette'sWSGIMiddlewarecalls, so every MLflow server response is a 500 and/healthnever returns 200:The auto cherry-pick bot could not land this: it cherry-picked cleanly and then tried to push straight to
2.0, which2.0.x-protectionrejects (GH013 ... Changes must be made through a pull request). Hence this PR.Type of change:
High-level design:
Same two changes as #32525: constrain the fixture image to
anyio<4.15, and movetime.sleep(2)out of theexceptblock in the readiness loop so a non-200 response waits instead of burning all 30 attempts in milliseconds.Identical to the
mainchange.Tests:
Use cases covered
/healthwith 200.Unit tests
Not applicable: test-fixture-only change.
Backend integration tests
Not applicable: no server changes.
Ingestion integration tests
Verified on
mainin #32525: all sixIntegration Tests (shard-2)jobs green across the MySQL and Postgres lanes on 3.10/3.11/3.12.End-to-end locally, building the Dockerfile bytes from this branch's
conftest.pyand starting the fixture's own containers:GET /healthAttributeError: module 'anyio' has no attribute 'from_thread'Lint verified with this branch's own pinned tooling:
ruff~=0.15.12checkandformat --checkboth clean.Playwright (UI) tests
Not applicable.
UI screen recording / screenshots:
Not applicable.
Checklist:
test_mlflowis that test; this PR restores it.