Commit f56e610
authored
Support Redis 8 (#282)
This PR adds testing support for Redis 8 (currently `redis:8.0-M03` from
Docker) to our GitHub Actions pipeline. Overall, our entire test suite
passed against Redis 8 with one notable exception:
**Breaking Change in Redis 8, Dialect 2 Only**
When a search query references a field that is not present in the index
schema, Redis 8 now raises:
```
redis.exceptions.ResponseError: Unknown field at offset NN near <unknown-field-name>
```
Previously (and in other dialects), Redis would allow such queries but
return empty results. This new behavior is arguably more correct, but it
breaks a test that expects an empty result when searching on a
non-indexed field.
## Context and Discussion
A single test failed where our code intentionally queries a field not in
the index, expecting empty results. With Redis 8, Dialect 2, this now
raises an error.
The team discussed whether to:
- Adjust the test to skip or otherwise handle this new behavior (since
querying a non-indexed field arguably should be an error).
- Catch and raise a more user-friendly message in our library. The Redis
error text can be cryptic, so providing a clearer explanation to users
might be beneficial.
## Decision
- Testing: We will proceed with adding Redis 8 to our CI matrix.
- The Failing Test: We will update this test to either skip on Redis 8
or handle the error more gracefully.
- Error Messaging: We may consider adding a better exception message so
that developers get a more understandable error when they inadvertently
query non-indexed fields. But this will go in a different PR.1 parent b751db7 commit f56e610
File tree
4 files changed
+28
-22
lines changed- .github/workflows
- tests
- integration
4 files changed
+28
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 29 | + | |
36 | 30 | | |
37 | 31 | | |
38 | 32 | | |
| |||
58 | 52 | | |
59 | 53 | | |
60 | 54 | | |
61 | | - | |
| 55 | + | |
62 | 56 | | |
63 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
69 | 67 | | |
70 | 68 | | |
71 | | - | |
| 69 | + | |
72 | 70 | | |
73 | 71 | | |
74 | 72 | | |
| |||
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
89 | | - | |
| 87 | + | |
90 | 88 | | |
91 | 89 | | |
92 | 90 | | |
93 | 91 | | |
94 | | - | |
| 92 | + | |
95 | 93 | | |
96 | 94 | | |
97 | 95 | | |
| |||
106 | 104 | | |
107 | 105 | | |
108 | 106 | | |
| 107 | + | |
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
773 | | - | |
| 773 | + | |
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
| |||
785 | 785 | | |
786 | 786 | | |
787 | 787 | | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
792 | 800 | | |
793 | 801 | | |
794 | 802 | | |
795 | | - | |
796 | | - | |
| 803 | + | |
797 | 804 | | |
798 | 805 | | |
799 | 806 | | |
| |||
0 commit comments