feat(huggingface): Support 1.0.0rc2 by sentrivana · Pull Request #4873 · getsentry/sentry-python · GitHub
Skip to content

feat(huggingface): Support 1.0.0rc2 - #4873

Merged
sentrivana merged 16 commits into
masterfrom
ivana/support-huggingface_hub_v1
Oct 6, 2025
Merged

feat(huggingface): Support 1.0.0rc2#4873
sentrivana merged 16 commits into
masterfrom
ivana/support-huggingface_hub_v1

Conversation

@sentrivana

@sentrivana sentrivana commented Sep 29, 2025

Copy link
Copy Markdown
Contributor

Description

huggingface_hub has a release candidate out and our test suite doesn't work with it.

Two changes necessary:

  • 1.0 uses httpx, so our responses mocks don't work, we also need pytest_httpx.
  • With httpx we get additional http.client spans in the transaction, while before we were assuming the transaction only contains exactly one gen_ai.* span and nothing else.

Issues

Closes #4802

Reminders

@codecov

codecov Bot commented Sep 29, 2025

Copy link
Copy Markdown

Comment on lines +77 to +78

@sentrivana sentrivana Oct 3, 2025

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.

responses by default ignores the query string when looking for url matches, but pytest-httpx doesn't

@sentrivana
sentrivana marked this pull request as ready for review October 3, 2025 07:52
@sentrivana
sentrivana requested a review from a team as a code owner October 3, 2025 07:52
cursor[bot]

This comment was marked as outdated.

Comment thread tests/integrations/huggingface_hub/test_huggingface_hub.py
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Comment thread tests/integrations/huggingface_hub/test_huggingface_hub.py
@sentrivana
sentrivana merged commit 39cb2c5 into master Oct 6, 2025
113 checks passed
@sentrivana
sentrivana deleted the ivana/support-huggingface_hub_v1 branch October 6, 2025 08:15
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.

Support huggingface_hub v1.0

2 participants