Skip to content

build: bound dependencies to tested versions, release 1.7.0 - #275

Merged
galshubeli merged 2 commits into
mainfrom
bound-deps-and-release-1.7.0
Aug 13, 2026
Merged

build: bound dependencies to tested versions, release 1.7.0#275
galshubeli merged 2 commits into
mainfrom
bound-deps-and-release-1.7.0

Conversation

@Naseem77

@Naseem77 Naseem77 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

What

Two commits:

  1. build: — bound redis and python-dateutil to the versions this client is tested against
  2. chore(release): — bump to 1.7.0
 dependencies = [
-    "redis>=7.1.0",
-    "python-dateutil>=2.9.0",
+    "redis>=7.2,<8.2",
+    "python-dateutil>=2.9.0,<3",
 ]

Why

Both dependencies had a lower bound only, so a fresh pip install falkordb always resolved to whatever was newest on PyPI. Nothing in this repo decided that — PyPI did.

That is exactly how redis 8.1 reached users: it added five pool-only keyword arguments to ConnectionPool.connection_kwargs, Is_Cluster() forwarded them to the synchronous redis.Redis() constructor, and every async client died with TypeError: Redis.__init__() got an unexpected keyword argument 'himport_registry' before a single query ran. Fixed in #262, but it reached users first because nothing constrained the resolve.

Our uv.lock pins redis 7.4.0, which is why CI stayed green throughout — the lockfile governs this repo's own CI and nothing downstream. Consumers only ever see the range in pyproject.toml.

The lower bound was also wrong

falkordb/falkordb.py:4 does from redis.driver_info import DriverInfo. That module first appears in redis 7.2, so >=7.1.0 advertised a floor that fails on import. Raised to >=7.2.

Why 1.7.0 and not 1.6.3

The bug fixes alone would be a patch, but narrowing the redis range changes which environments can install the client, which is more than a patch should do.

Since 1.6.2:

Tradeoff worth naming

Upper bounds on a library are not free. If a user installs falkordb alongside a package that requires redis>=8.2, pip cannot satisfy both and the install fails with ResolutionImpossible — and there is nothing the user can do except wait for a release from us. That is the cost we are accepting in exchange for never shipping an untested transitive version again.

Two things keep that cost small:

The bound should be raised as a routine chore whenever that daily job passes on a newer version — not left to drift until it blocks someone.

Testing

uv.lock carries only the three lines that had to change (the falkordb version and the two specifier strings). Note it was generated by a newer uv than 0.7.19 — running uv lock on an older uv rewrites revision = 3 to 2 and drops a python_full_version < '3.13' marker, so it was hand-edited to keep the diff honest.

Summary by CodeRabbit

  • Chores
    • Updated the project to version 1.7.0.
    • Refined supported version ranges for Redis and python-dateutil to improve compatibility and stability.

Both dependencies were declared with a lower bound only, so a fresh
install always resolved to whatever was newest on PyPI. That is how
redis 8.1 reached users unannounced and broke Is_Cluster().

Cap both at the next incompatible release so an install only picks
versions this client has been tested against, and raise redis's lower
bound to 7.2: falkordb imports redis.driver_info, which does not exist
in 7.1, so the declared floor was never actually installable.
Minor rather than patch: the release narrows the redis range, so it
changes which environments can install the client.

Since 1.6.2:
- fix: Is_Cluster() no longer forwards pool-only kwargs to redis.Redis,
  which broke every async client on redis 8.1 (#262)
- fix: the execution plan parser attaches every sibling operation to its
  parent instead of nesting siblings under each other (#267)
- build: redis and python-dateutil bounded to tested versions
@Naseem77
Naseem77 requested a review from galshubeli August 13, 2026 07:57
@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e0a66f9f-05ae-4748-abfa-dcba62f237ac

📥 Commits

Reviewing files that changed from the base of the PR and between a9c7510 and 99cdf69.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • pyproject.toml

📝 Walkthrough

Walkthrough

The project version changes to 1.7.0. Redis and python-dateutil dependencies now include compatibility bounds and explanatory comments.

Changes

Release metadata and dependency bounds

Layer / File(s) Summary
Project version and dependency constraints
pyproject.toml
The project version changes from 1.6.2 to 1.7.0. Redis is constrained to >=7.2,<8.2, and python-dateutil is constrained to >=2.9.0,<3. Comments document the compatibility bounds and Redis import requirement.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Mergeability Score: ⚪ Minimal · up to 99cdf

This change narrows dependency versions and updates the release version; no actionable merge-blocking risk remains after normal checks and review.

Suggested reviewers: galshubeli, gkorland

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the dependency constraints and 1.7.0 release included in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bound-deps-and-release-1.7.0

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.84%. Comparing base (a9c7510) to head (99cdf69).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #275   +/-   ##
=======================================
  Coverage   92.84%   92.84%           
=======================================
  Files          39       39           
  Lines        3088     3088           
=======================================
  Hits         2867     2867           
  Misses        221      221           

☔ View full report in Codecov by Harness.
📢 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.

@galshubeli
galshubeli merged commit 34f0f61 into main Aug 13, 2026
16 checks passed
@galshubeli
galshubeli deleted the bound-deps-and-release-1.7.0 branch August 13, 2026 09:40
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