-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redis 8 compatibility improvements and test infrastructure updates #2893
base: master
Are you sure you want to change the base?
Conversation
ab31e4a
to
66a0d27
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed the unsafe shell command construction
8bfc0ae
to
483e072
Compare
This switches our testing infrastructure from redis/redis-stack to redislabs/client-libs-test Docker image across all packages. This change also updates the default Docker version from 7.4.0-v1 to 8.0-M04-pre.
6600a14
to
2cbfd02
Compare
- Add tests for Redis 8 search configuration settings - Deprecate Redis Search CONFIG commands in favor of standard CONFIG - Test read-only config restrictions for Redis 8
- Update GEOPOS tests to handle increased precision in Redis 8 (17 decimal places vs 14) - Add precision-aware coordinate comparison helper - Add comprehensive test suite for coordinate comparison function
- Update tests to expect empty array ([]) instead of null for SUGGET variants - Affects sugGet, sugGetWithPayloads, sugGetWithScores, and sugGetWithScoresWithPayloads
- Add indexes_all field introduced in Redis 8 to index definition test
272498b
to
0c27ce5
Compare
0c27ce5
to
24f34b0
Compare
- BREAKING CHANGE: FT.PROFILE now returns raw response, letting users implement their own parsing
- Add `testWithClientIfVersionWithinRange` method to run tests for specific Redis versions - Refactor TestUtils to handle version comparisons more accurately - Update test utilities across Redis modules to run tests against multiple versions, and not against latest only
24f34b0
to
cd214f5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
assert.ok( | ||
Math.abs(Number(result[0].longitude) - Number(coordinates.longitude)) < Math.pow(10, -PRECISION), | ||
`Longitude mismatch: ${result[0].longitude} vs ${coordinates.longitude}` | ||
); | ||
assert.ok( | ||
Math.abs(Number(result[0].latitude) - Number(coordinates.latitude)) < Math.pow(10, -PRECISION), | ||
`Latitude mismatch: ${result[0].latitude} vs ${coordinates.latitude}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason not to use compareWithPrecision
?
Key Changes:
redislabs/client-libs-test
containerBreaking Changes:
Test Coverage:
testWithClientIfVersionWithinRange
helperThis change set prepares the codebase for full Redis 8 compatibility while maintaining support for earlier versions.