Skip to content

Conversation

@sentrivana
Copy link
Contributor

@sentrivana sentrivana commented May 20, 2025

This commit in redis-py moved away from using the Pipeline's command_stack and is now using _execution_strategy.command_queue instead. We need to adapt to use the new command source if present.

This fixes redis-latest in CI.

@codecov
Copy link

codecov bot commented May 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.66%. Comparing base (ac7646b) to head (0c318ee).
Report is 2 commits behind head on master.

⚠️ Parser warning

The parser emitted a warning. Please review your JUnit XML file:

Warning while parsing testcase attributes: Limit of string is 1000 chars, for name, we got 2301 at 1:2550 in /__w/sentry-python/sentry-python/.junitxml
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4404      +/-   ##
==========================================
+ Coverage   80.62%   80.66%   +0.04%     
==========================================
  Files         142      142              
  Lines       15961    15966       +5     
  Branches     2726     2726              
==========================================
+ Hits        12868    12879      +11     
+ Misses       2238     2231       -7     
- Partials      855      856       +1     
Files with missing lines Coverage Δ
sentry_sdk/integrations/redis/_sync_common.py 86.79% <100.00%> (+1.37%) ⬆️
sentry_sdk/integrations/redis/utils.py 92.20% <100.00%> (ø)

... and 3 files with indirect coverage changes

@sentrivana sentrivana marked this pull request as ready for review May 20, 2025 09:10
@sentrivana sentrivana requested a review from a team as a code owner May 20, 2025 09:10
Copy link
Member

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

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

Do we need any tests for this, or will it just get "automatically" tested by the latest redis tests?

@szokeasaurusrex szokeasaurusrex dismissed their stale review May 20, 2025 12:10

noticed a potential problem

@sentrivana
Copy link
Contributor Author

sentrivana commented May 20, 2025

Do we need any tests for this, or will it just get "automatically" tested by the latest redis tests?

The command_stack version is tested by all tests running redis-py<3.1, and the command_queue version is tested by >=3.1, so this is covered.

Copy link
Member

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

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

🚀

@sentrivana sentrivana merged commit 9582a48 into master May 20, 2025
137 checks passed
@sentrivana sentrivana deleted the ivana/fix-redis-2 branch May 20, 2025 12:57
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.

3 participants