chore: Combined main unblock (#8045)

* Pin structlog to 24.2.0 due to unit test failures

* Remove object init parameter in huggingface_hub unit tests

* Use less restrictive structlog pin

* Add release note
This commit is contained in:
Vladimir Blagojevic 2024-07-19 10:39:10 +02:00 committed by GitHub
parent 913078dfaa
commit a59de1d7b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 4 deletions

View File

@ -112,7 +112,7 @@ extra-dependencies = [
"ddtrace",
# Structured logging
"structlog",
"structlog<=24.2.0",
# Looking for missing imports
"isort",

View File

@ -0,0 +1,4 @@
---
fixes:
- |
Pins structlog to <= 24.2.0 to avoid some unit test failures. This is a temporary fix until we can upgrade tests to a newer versions of structlog.

View File

@ -44,7 +44,6 @@ def mock_chat_completion():
],
id="some_id",
model="some_model",
object="some_object",
system_fingerprint="some_fingerprint",
usage={"completion_tokens": 10, "prompt_tokens": 5, "total_tokens": 15},
created=1710498360,
@ -215,7 +214,6 @@ class TestHuggingFaceAPIGenerator:
],
id="some_id",
model="some_model",
object="some_object",
system_fingerprint="some_fingerprint",
created=1710498504,
)
@ -228,7 +226,6 @@ class TestHuggingFaceAPIGenerator:
],
id="some_id",
model="some_model",
object="some_object",
system_fingerprint="some_fingerprint",
created=1710498504,
)