Repository navigation
fix(ci): cap redis below 8.2 in the test requirements (#4727) - #4728
Merged
Merged
Conversation
redis 8.2.0 (2026-11-23) breaks fakeredis 2.40.0: every FakeRedis() raises "'method_descriptor' object has no attribute '__closure__'", which errors about 1,100 unit tests. The floor was uncapped, so CI installed 8.2.0 as soon as it was published. The backend image pins redis 5.2.1 and is not affected. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Merged
5 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4727
Problem
redis8.2.0 was released on 2026-11-23 and breaksfakeredis2.40.0, the latest release. EveryFakeRedis()raisesAttributeError: 'method_descriptor' object has no attribute '__closure__', which errors about 1,100 unit tests.tests/requirements-test.txthadredis>=5.2.0with no upper bound, so any unit-suite run that installs dependencies now picks up 8.2.0. First seen on #4682, where the same head and seed passed with 8.1.0 and failed with 8.2.0 on a re-run.Change
One line:
redis>=5.2.0,<8.2, with a comment saying why and when to lift it.The backend image pins
redis==5.2.1, so this changes only what CI and contributors install for tests.Test evidence
redis==8.2.0+fakeredis==2.40.0:FakeRedis().set('a', 1)raises the error above.tests/requirements-test.txtresolves toredis 8.1.0+fakeredis 2.40.0, and the same call works.Follow-up
Lift the cap once a
fakeredisrelease supports redis 8.2.🤖 Generated with Claude Code