Skip to content

fix(ci): cap redis below 8.2 in the test requirements (#4727) - #4728

Merged
vybe merged 1 commit into
devfrom
fix/4727-cap-redis-for-fakeredis
Nov 23, 2026
Merged

vybe merged 1 commit into
devfrom
fix/4727-cap-redis-for-fakeredis

Conversation

@dolho

@dolho dolho commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Fixes #4727

Problem

redis 8.2.0 was released on 2026-11-23 and breaks fakeredis 2.40.0, the latest release. Every FakeRedis() raises AttributeError: 'method_descriptor' object has no attribute '__closure__', which errors about 1,100 unit tests.

tests/requirements-test.txt had redis>=5.2.0 with 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.
  • A fresh environment from this branch's tests/requirements-test.txt resolves to redis 8.1.0 + fakeredis 2.40.0, and the same call works.
  • The unit suite itself is left to CI on this PR.

Follow-up

Lift the cap once a fakeredis release supports redis 8.2.

🤖 Generated with Claude Code

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]>

@vybe vybe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Read the diff: one-line cap (redis>=5.2.0,<8.2) in tests/requirements-test.txt; matches the ~1,100 __closure__ failures on dev (#4731). Tier 1 green on the PR.

@vybe
vybe merged commit df0d3d7 into dev Nov 23, 2026
22 checks passed
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.

2 participants