Repository navigation
[MOD-18899] Save the 8.10 vecsim RDB fixture in RDB format 13 - #11546
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Changing this archive under the existing entry name does not update /tmp/redisearch-rdbs/redisearch_8.10_with_vecsim.rdb on a host that ran the test before this commit: getRDBFile() returns immediately whenever that destination is already nonempty (common.py:1403-1404). Such a rerun therefore still feeds the cached format-15 RDB to Redis 8.6 and aborts for the exact incompatibility this change is intended to fix; version the fixture name or make extraction validate/replace stale cached content.
AGENTS.md reference: AGENTS.md:L292-L292
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #11546 +/- ##
==========================================
- Coverage 84.31% 83.58% -0.74%
==========================================
Files 640 665 +25
Lines 85440 86403 +963
Branches 39269 40361 +1092
==========================================
+ Hits 72041 72217 +176
- Misses 13033 13812 +779
- Partials 366 374 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Thanks, that is right: a host that had already extracted the old format-15 copy would keep loading it, because Fixed in 8c00777 by versioning the fixture name, as suggested: it is now Verified by leaving the old |
The fixture was saved by Redis 8.10.1, which writes RDB format 15. Redis refuses to load an RDB whose format is newer than its own, so servers that read at most format 13 or 14 abort while loading it. That includes the Redis Enterprise 8.6 runtime that Redis Search Enterprise tests against. Regenerate it with the same Search 8.10.0 module and data on Redis 8.6.6, which writes format 13. The RediSearch payload is unchanged, so the test still covers loading and resaving an index written by Search 8.10. The fixture gets a new name because getRDBFile() reuses any cached copy with the same name, so hosts that already extracted the format-15 file would otherwise keep loading it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
583d982 to
8c00777
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d89fc41756
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|



Describe the changes in the pull request
The Search 8.10 vecsim fixture was saved in Redis RDB format 15, which Redis Enterprise 8.6 cannot load. Regenerate it with the same Search 8.10.0 module and identical data on Redis 8.6.6, which writes RDB format 13. The ZIP comment records its provenance.
Keep the original
redisearch_8.10_with_vecsim.rdbfilename.getRDBFile()now refreshes each fixture from its bundled ZIP instead of trusting an existing nonempty cached file. It extracts into a temporary directory on the destination filesystem, then atomically replaces the destination. Failed extraction preserves the previous file and cleans up temporary files; readers cannot observe a partially extracted replacement.Each checkout uses a separate cache directory keyed by a SHA-256 digest of its resolved fixture-directory path. Concurrent tests from different worktrees cannot replace one another’s fixtures before Redis opens them.
This is test-only. The fixture still covers loading and resaving an index written by Search 8.10, and its RDB container is now readable by Redis versions supporting format 13 or newer.
Which additional issues this PR fixes
Main objects this PR modified
redisearch_8.10_with_vecsim.rdb.zip: same keys, values, and index definition; RDB container format changes from 15 to 13.getRDBFile()andREDISEARCH_CACHE_DIR: refresh bundled fixtures atomically within a cache isolated by checkout.test_common.py: regression coverage for stale fixture replacement, already-open readers, and failed extraction preserving the previous file without temporary-file leftovers, and delayed reads after another checkout refreshes its same-named fixture.Validation
test_commontests passed through RLTest.Mark if applicable
Release Notes