Skip to content

Bump dependencies#4265

Merged
PastelStorm merged 5 commits intomainfrom
evoss/bump-deps
Feb 25, 2026
Merged

Bump dependencies#4265
PastelStorm merged 5 commits intomainfrom
evoss/bump-deps

Conversation

@PastelStorm
Copy link
Copy Markdown
Contributor

@PastelStorm PastelStorm commented Feb 25, 2026

Note

Medium Risk
Dependency upgrades (especially transformers major version and weaviate-client API shift) can introduce runtime or test regressions; CI runner change may also surface environment-specific failures.

Overview
Bumps the release to 0.21.7 and updates dependency pins in pyproject.toml, notably moving to wrapt 2.x+, transformers 5.x, and weaviate-client 4.x (including constraint updates).

Updates the Weaviate staging integration test to use the weaviate.connect_to_embedded() / collections.* API instead of the legacy Client/schema API. CI unit-test jobs are moved from ubuntu-latest to the opensource-linux-8core runner, and .gitignore now ignores .venv* directories.

Written by Cursor Bugbot for commit 8e26501. This will update automatically on new commits. Configure here.

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

client = weaviate.connect_to_embedded()
try:
client.collections.delete(class_name)
client.collections.create_from_dict(unstructured_class)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weaviate schema format may be incorrect for create_from_dict

Medium Severity

The v3 code passed {"classes": [unstructured_class]} to schema.create(), but the v4 migration passes unstructured_class directly to create_from_dict(). If create_from_dict expects the full schema format (with a "classes" array) for v3 compatibility, the call may fail or create the collection incorrectly.

Fix in Cursor Fix in Web

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, there's nothing to fix. The cursor bot is wrong here — it's analyzing the code change without understanding the weaviate v4 API.

To be concrete, create_from_dict in weaviate-client v4 expects a single class config dict, which is exactly what create_unstructured_weaviate_class() returns:

{"class": "UnstructuredDocument", "properties": [...]}

And we have empirical proof — the test ran against a real embedded Weaviate 1.30.5 instance and passed:

test_unstructured/staging/test_weaviate.py::test_weaviate_schema_is_valid PASSED [100%]

If the format were wrong, Weaviate would have rejected it with a 422.

@PastelStorm PastelStorm added this pull request to the merge queue Feb 25, 2026
Merged via the queue into main with commit 031b0cf Feb 25, 2026
57 checks passed
@PastelStorm PastelStorm deleted the evoss/bump-deps branch February 25, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants