Skip to content

fix: restore grpcio-reflection test dep for python 3.10 - #9889

Open
nikitabelonogov wants to merge 1 commit into
developfrom
fix/restore-grpcio-reflection-py310
Open

fix: restore grpcio-reflection test dep for python 3.10#9889
nikitabelonogov wants to merge 1 commit into
developfrom
fix/restore-grpcio-reflection-py310

Conversation

@nikitabelonogov

Copy link
Copy Markdown
Member

Problem

Tests / LS SQLite Ubuntu (3.10) (and Windows 3.10) fail on develop with 167 failed tests (example run). 165 of them are tavern tests all erroring at setup with:

tavern._core.exceptions.PluginLoadError: Error loading plugin EntryPoint(name='grpc', value='tavern._plugins.grpc.tavernhook', group='tavern_grpc') - No module named 'grpc_reflection'

(The remaining 2 are the known order-dependent TestColdStartScenarios flakes, unrelated.)

Root cause

Python 3.10 uses tavern 2.17.0, which unconditionally loads its grpc plugin whenever grpcio is importable (it is, transitively via google-api-core[grpc]), and the plugin requires grpc_reflection. #9882 added grpcio-reflection==1.78.0 ; python_full_version < '3.11' to the test group for exactly this reason.

Commit 3e9c6b3 (BROS-1527, a frontend video fix synced from the monorepo with GitOrigin-RevId) regenerated pyproject.toml/uv.lock from a base that predates that fix and silently reverted the dependency. Python ≥3.11 jobs are unaffected because tavern 3.3.3 doesn't have this behavior.

Fix

Re-add the dependency (with a comment explaining why it exists, to make the next accidental revert more visible) and regenerate the lock. The lock diff is minimal — only the grpcio-reflection entries, identical hashes to the original fix.

Verification

On Python 3.10 with uv sync --frozen --group test:

  • tavern_grpc entry point loads cleanly
  • pytest label_studio/tests/data_manager/filters/int.tavern.yml → 4 passed (these fail on develop)

⚠️ Monorepo caveat

This is the second time a monorepo-synced commit clobbered these files. The same dependency line needs to be added on the monorepo side, otherwise the next sync that touches pyproject.toml/uv.lock will revert it again.

🤖 Generated with Claude Code

Commit 3e9c6b3 (BROS-1527, synced from the monorepo) regenerated
pyproject.toml/uv.lock from a base that predates #9882 and silently
dropped the grpcio-reflection test dependency. On Python 3.10 tavern
2.x unconditionally loads its grpc plugin (grpcio is present
transitively), so every tavern test errors at setup with
PluginLoadError: No module named 'grpc_reflection' — 165 failures in
the LS SQLite Ubuntu/Windows (3.10) jobs on develop.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@netlify

netlify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploy Preview for label-studio-storybook failed. Why did it fail? →

Name Link
🔨 Latest commit 5736e0a
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/6a7609bcc18e5f0009b35b3a

@netlify

netlify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploy Preview for label-studio-playground failed. Why did it fail? →

Name Link
🔨 Latest commit 5736e0a
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/6a7609bc1beb340008b33522

@netlify

netlify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploy Preview for label-studio-docs-new-theme canceled.

Name Link
🔨 Latest commit 5736e0a
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/6a7609bca9d6f60008849d65

@github-actions github-actions Bot added the fix label Aug 7, 2026
@netlify

netlify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit 5736e0a
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/6a7609bcac67bc0008f4ac16

@codecov

codecov Bot commented Aug 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant