Skip to content

cherry pick master content into 8.10 - #1625

Merged
TalBarYakar merged 18 commits into
8.10from
tal.ba/cp/master_to_8.10
Jul 27, 2026
Merged

TalBarYakar merged 18 commits into
8.10from
tal.ba/cp/master_to_8.10

Conversation

@TalBarYakar

@TalBarYakar TalBarYakar commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary
Bumps the pinned MODULE_VERSION for RedisJSON from v8.9.90 to v8.10.0. RedisBloom and RedisTimeSeries are unchanged.

Module | From | To -- | -- | -- RedisJSON | v8.9.90 | v8.10.0

Note: this RedisJSON range contains 6 relevant commits. The main changes are apply_updates status reporting, Docker image management, bootstrap list / dry-run support, and agent guidance / spellcheck updates.

Module Changes
RedisJSON range

MOD-16872 — make apply_updates return the current update status instead of only applying changes, with pytest and CI updates (#1621)

No ticket — add Docker image management for RedisJSON CI/release flows, including Docker image push workflow wiring (#1622)

No ticket — add AGENTS.md and CLAUDE.md repo guidance files

No ticket — ignore AGENTS.md in spellcheck

No ticket — ignore CLAUDE.md in spellcheck

MOD-16952 — enhance bootstrap with dependency listing, dry-run support, retry handling, optional dependency handling, and root-without-sudo support for slim containers (#1624)

1 commit excluded
MOD-17021 / #1623 is intentionally excluded from this description.

Test Plan

CI passes for RedisJSON at the new pinned version
make all builds RedisJSON cleanly against unstable
Module tests run under make test

Summary Bumps the pinned MODULE_VERSION for RedisJSON from v8.9.90 to v8.10.0. RedisBloom and RedisTimeSeries are unchanged. Module From To RedisJSON v8.9.90 v8.10.0

Note: this RedisJSON range contains 6 relevant commits. The main changes are apply_updates status reporting, Docker image management, bootstrap list / dry-run support, and agent guidance / spellcheck updates.
Module Changes
RedisJSON range
MOD-16872 — make apply_updates return the current update status instead of only applying changes, with pytest and CI updates (#1621)
No ticket — add Docker image management for RedisJSON CI/release flows, including Docker image push workflow wiring (#1622)
No ticket — add AGENTS.md and CLAUDE.md repo guidance files
No ticket — ignore AGENTS.md in spellcheck
No ticket — ignore CLAUDE.md in spellcheck
MOD-16952 — enhance bootstrap with dependency listing, dry-run support, retry handling, optional dependency handling, and root-without-sudo support for slim containers (#1624)
1 commit excluded
MOD-17021 / #1623 is intentionally excluded from this description.
Test Plan
CI passes for RedisJSON at the new pinned version
make all builds RedisJSON cleanly against unstable
Module tests run under make test

gabsow and others added 17 commits June 23, 2026 16:07
MOD-13014 removed user data from errors but left the JSONPath engine's
trace logs, which still emitted document values, query literals and paths
at Redis `debug` log level (trace! maps to RedisLogLevel::Debug).

Gate those traces behind a cached mirror of Redis core's
`hide-user-data-from-log` server config: a new `trace_user_data!` macro
suppresses the message when the flag is on. The module reads the config
at load and refreshes it on CONFIG SET via a config-changed event
handler. Structural traces (grammar rules, "missing operand"
diagnostics) stay on plain trace! and are unaffected.

Co-authored-by: Claude Opus 4.8 <[email protected]>
* MOD-16366 LLAPI flow tests

* remove `#[cfg(not(feature = "as-library"))]` from `sync_hide_user_data_from_log`

* remove `#[cfg(not(feature = "as-library"))]` from `sync_hide_user_data_from_log`

* fail if module not available

* fixes

* CR

* .

* CR
* alma8 +rhel8+rhel9+bionic +focal passes

* fix for alpine

* fix for bionic

* fix

* fix mariner

* fix bionic bootstrap

* fix bionic

* fix bionic

* fi bionic

* fix bionic

* install aws cli for json

* bionic fix

* fix bionic

* fix for focal

* fix for focak

* fix for bionic & focal &mariner&alpine

* apply fixes

* fix remarks

* fix for alpine

* try another methood

* ci: source $HOME/.cargo/env in flow-clippy so cargo is on PATH

Match flow-linter.yml; getrust.sh now installs Rust user-scoped, so later
Actions steps don't see cargo without sourcing the env.

* CI was failing because getrust.sh ran twice. install_script.sh already
invokes it from the repo root (works), but the workflow then called
./getrust.sh sudo again from working-directory: .install — where
rust-toolchain.toml doesn't exist, so its `sed rust-toolchain.toml` errored
with "No such file or directory" (exit 2).

Removed the redundant ./getrust.sh line from flow-linter.yml and
flow-clippy.yml; install_script.sh handles Rust install on its own.

* ci(macos): add rust-toolchain.toml to sparse checkout

The macOS "Deps checkout" fetches only .install and test requirements, then
runs install_script.sh -> getrust.sh, which reads rust-toolchain.toml from
the repo root to resolve the pinned toolchain. That file wasn't in the sparse
list, so getrust failed with "sed: rust-toolchain.toml: No such file or
directory". Add it to the sparse-checkout.
…#1615)

* MOD-16300 perf(json_path): materialize filter literals once per query

* simplify

* CR + Reuse cache in whole query
* MOD-16608 Bump ijson(reduce object memory)

* clippy

* fix memory test
* MOD-16685 Add RedisJSON API to open from RedisModuleKey

Add a RedisJSON shared API V8 entry that opens a JSON root from an
already-open RedisModuleKey handle. This lets consumers such as RediSearch
reuse an existing key handle instead of manually checking isJSON and calling
RedisModule_ModuleTypeGetValue.

Update the RediSearch RedisJSON API header copy and add LLAPI coverage for the
new openKeyFromHandle path.

* use Imanager to get value for json

* fix clippy

* rename functions

* fix compilation
…#1623)

* MOD-16899: add getWithPath LLAPI to evaluate a pre-compiled JSONPath

Adds a V9 RedisJSON C API entry getWithPath(json, JSONPath) that evaluates an already-compiled path (from pathParse) instead of a path string, skipping the per-call pest compilation. Callers that resolve the same path across many documents (e.g. RediSearch FT.AGGREGATE LOAD) can compile once and reuse the handle.

- c_api.rs: json_api_get_with_path + exported JSONAPI_getWithPath, struct/initializer entry, REDIS_JSONAPI_LATEST_API_VER 8->9; parity unit test (getWithPath == get).

- include/rejson_api.h: getWithPath declaration + LATEST_API_VER bump. lib.rs: register the entrypoint.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* MOD-16899: add LLAPI flow test for getWithPath

Extend the llapi_test_module consumer with LLAPI.OPEN_GET_WITH_PATH (pathParse + getWithPath, via an open_and_get_with_path helper mirroring open_and_get, sharing reply_nodes_as_json with OPEN_GET) and assert in test_llapi.py that it matches LLAPI.OPEN_GET, plus missing-key / bad-path / projection error cases.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* getWithPath: reject projections at runtime like json_api_get

Replace the debug_assert with 'if query.is_projection() { return null(); }' so a projection path is handled identically to the string-based json_api_get in all builds (not just debug), and defensively at the FFI boundary. Add a unit test passing a compiled projection Query directly.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* getWithPath: trim projection comments

Drop the self-explanatory test doc comment and shorten the guard comment to a one-liner referencing json_api_get.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* getWithPath: drop json_api_get reference from projection guard comment

Co-Authored-By: Claude Opus 4.8 <[email protected]>

---------

Co-authored-by: Claude Opus 4.8 <[email protected]>
* enhance bootstrap - add check-deps

* write list to afile

* add optional deps

* add another optional deps

* add another optional deps

* add versioning managment

* rename command to list

* renme to list

* add dry run

* fix colors

* fix missing uv

* remove min cmake version

* fix remarks

* add the retry mechanizm to json as well

* fix remarks

* fix remarks

* add _sh so we can have the full bootstrap output

* always return to the workspace dir

* make single copy paste install all

* fix alma8

* fix bad dry-run print

* gaurd tool-set version 11

* fix curl minimal

* remove centos-release-scl for amazonlinux2

* fix macos env

* fix(bootstrap): make sudo a no-op on root containers without a sudo binary

The install scripts run privileged steps via literal `sudo` inside `_sh`
command strings (e.g. `sudo ln -sf ...`, `| sudo tee`, `&& sudo make install`).
On a slim Docker image that runs install_script.sh directly as root with no
`sudo` package installed (e.g. RedisTimeSeries' amazonlinux2 CI), those steps
fail with `sudo: command not found` (exit 127), aborting the whole bootstrap.

Add a root-only pass-through in pm.sh/deps_lib.sh: when running as root and no
real `sudo` binary exists, define `sudo()` to run its arguments directly. When
not root, a missing sudo stays a genuine error and is left unmasked.
@codecov

codecov Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.93%. Comparing base (f2ec632) to head (1314acc).

Files with missing lines Patch % Lines
redis_json/src/commands.rs 96.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             8.10    #1625      +/-   ##
==========================================
+ Coverage   85.86%   85.93%   +0.07%     
==========================================
  Files          15       15              
  Lines        5241     5275      +34     
==========================================
+ Hits         4500     4533      +33     
- Misses        741      742       +1     

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

@gabsow

gabsow commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Checked this as a master → 8.10 merge.

  • Merge commit ed7b47c has the correct parents: 8.10 (f2ec632) and current master (5ca803d).
  • The PR contains the full current master history; no master commits are missing.
  • After reviewing the merge-conflict resolutions, the final tree is identical to master except for the expected release-line values: redis_json/lockfile version 8.10.0 and compatible_redis_version: 8.10.
  • The extra 856208e commit only performs the 8.10.0 version bump.

So content-wise this is correct and includes all user features and bug fixes from master.

CI is still not green: the x64 AlmaLinux 8 job failed before compilation because the prebuilt image was unavailable and Docker Hub timed out while fetching almalinux:8. This looks infrastructure-related, but I would rerun it and wait for all pending checks before merging.

@TalBarYakar
TalBarYakar merged commit 2f00c99 into 8.10 Jul 27, 2026
61 checks passed
@TalBarYakar
TalBarYakar deleted the tal.ba/cp/master_to_8.10 branch July 27, 2026 17:31
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.

4 participants