Skip to content

[MOD-18899] Save the 8.10 vecsim RDB fixture in RDB format 13 - #11546

Merged
dor-forer merged 3 commits into
masterfrom
dor-mod18899-810-vecsim-fixture-rdb13
Sep 29, 2026
Merged

dor-forer merged 3 commits into
masterfrom
dor-mod18899-810-vecsim-fixture-rdb13

Conversation

@dor-forer

@dor-forer dor-forer commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

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.rdb filename. 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

  1. MOD-18899

Main objects this PR modified

  1. redisearch_8.10_with_vecsim.rdb.zip: same keys, values, and index definition; RDB container format changes from 15 to 13.
  2. getRDBFile() and REDISEARCH_CACHE_DIR: refresh bundled fixtures atomically within a cache isolated by checkout.
  3. 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

  • All 11 test_common tests passed through RLTest.
  • The stale-cache regression fails against the original helper and passes with the fix.
  • The checkout-isolation regression fails against the shared-cache implementation and passes with isolated directories; it exercises real extraction and a delayed symlink open.
  • All 22 bundled fixtures refresh correctly, including fixtures in nested directories.
  • Restoring the original archive/member names preserves the regenerated format-13 RDB bytes and ZIP provenance comment exactly.
  • Independent review found no actionable issues.
  • The full vector compatibility test was not rerun for this follow-up.

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

Release Notes

  • This PR requires release notes
  • This PR does not require release notes

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-24T12:42:53.398495Z 5a4f12d New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

PK������c8]����T�%��redisearch_8.10_with_vecsim.rdbu�OhTW��o�y�L(v���� ��.�N2�ɤ�y�`!���q���̈)��'j����� ""%�������T��"e�"Y�3;CWn

P2 Badge Invalidate the cached copy when replacing the fixture

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

codecov Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.58%. Comparing base (ec75beb) to head (5a4f12d).
⚠️ Report is 22 commits behind head on master.

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     
Flag Coverage Δ
flow 84.67% <ø> (-0.04%) ⬇️
unit 58.88% <ø> (-0.32%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@dor-forer

dor-forer commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator Author

Thanks, that is right: a host that had already extracted the old format-15 copy would keep loading it, because getRDBFile() reuses any cached file with the same name.

Fixed in 8c00777 by versioning the fixture name, as suggested: it is now redisearch_8.10_with_vecsim_v2.rdb, and the old archive is removed. getRDBFile() is unchanged. A stale redisearch_8.10_with_vecsim.rdb left in the cache is simply never read again.

Verified by leaving the old REDIS0015 copy in the cache under the old name and running testRDBCompatibility_vecsim 5 times: all passed, loading the format-13 _v2 file.

@github-actions github-actions Bot added size:S and removed size:XS labels Sep 24, 2026
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]>
@dor-forer
dor-forer force-pushed the dor-mod18899-810-vecsim-fixture-rdb13 branch from 583d982 to 8c00777 Compare September 24, 2026 11:53
@github-actions github-actions Bot added size:XS and removed size:S labels Sep 24, 2026
@github-actions github-actions Bot added size:S and removed size:XS labels Sep 24, 2026
@dor-forer
dor-forer requested a review from kei-nan September 24, 2026 12:24

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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".

Comment thread tests/pytests/common.py Resolved
@sonarqubecloud

Copy link
Copy Markdown

@dor-forer
dor-forer enabled auto-merge September 24, 2026 13:47
@dor-forer
dor-forer added this pull request to the merge queue Sep 29, 2026
Merged via the queue into master with commit 21b1c05 Sep 29, 2026
61 checks passed
@dor-forer
dor-forer deleted the dor-mod18899-810-vecsim-fixture-rdb13 branch September 29, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants