Skip to content

Fixing failed test#809

Open
MehrazRumman wants to merge 12 commits intojazzband:masterfrom
MehrazRumman:fixing_failed_test
Open

Fixing failed test#809
MehrazRumman wants to merge 12 commits intojazzband:masterfrom
MehrazRumman:fixing_failed_test

Conversation

@MehrazRumman
Copy link
Copy Markdown

@MehrazRumman MehrazRumman commented Dec 17, 2025

see #808

Trying to fix the failed test in CI

  • Fixing TestSortedSetOperations.test_zscore[sqlite_gzip]
  • Fixing TestDjangoRedisCache.test_set_call_empty_pipeline[sqlite_herd]

@MehrazRumman MehrazRumman marked this pull request as draft December 17, 2025 13:29
@MehrazRumman MehrazRumman marked this pull request as ready for review December 17, 2025 13:33
@MehrazRumman MehrazRumman requested review from kysre and ulgens December 18, 2025 10:48
@MehrazRumman MehrazRumman marked this pull request as draft December 18, 2025 10:48
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 18, 2025

Codecov Report

❌ Patch coverage is 38.46154% with 96 lines in your changes missing coverage. Please review.
✅ Project coverage is 38.1%. Comparing base (e0c234f) to head (2ed5e3a).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
django_redis/client/default.py 49.4% 6 Missing and 34 partials ⚠️
tests/test_backend.py 22.5% 38 Missing ⚠️
django_redis/cache.py 33.4% 18 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master    #809     +/-   ##
========================================
- Coverage    38.2%   38.1%   -0.0%     
========================================
  Files          48      48             
  Lines        3727    3879    +152     
  Branches      301     335     +34     
========================================
+ Hits         1420    1476     +56     
- Misses       2006    2068     +62     
- Partials      301     335     +34     
Flag Coverage Δ
mypy 38.1% <38.5%> (-<0.1%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MehrazRumman MehrazRumman marked this pull request as ready for review December 18, 2025 11:13
@MehrazRumman MehrazRumman marked this pull request as draft December 18, 2025 12:30
@MehrazRumman MehrazRumman marked this pull request as ready for review December 18, 2025 13:02
@WisdomPill
Copy link
Copy Markdown
Member

why so many new methods were added?

Comment thread tests/test_backend.py
def patch_itersize_setting() -> Iterable[None]:
# destroy cache to force recreation with overriden settings
del caches["default"]
with suppress(AttributeError):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

perhaps this should be solved somehow different? why is it needed? which Django version introduced this error?

value = int(value)
except (ValueError, TypeError):
with suppress(ValueError, TypeError):
return float(value)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we do not have incrbyfloat, why add it to hash commands?

@WisdomPill
Copy link
Copy Markdown
Member

I would have added separately the changes, this is not just a fix

@MehrazRumman
Copy link
Copy Markdown
Author

why so many new methods were added?

I was trying to solve this : #766

Copy link
Copy Markdown
Member

@ulgens ulgens left a comment

Choose a reason for hiding this comment

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

Not sure why my review was requested, but the PR seems to be handling multiple things context-wise. I wouldn't merge this without a clear focus first.

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