Skip to content

MOD-16952 - enhance bootstrap (add list and dry-run arg) - #1624

Merged
TalBarYakar merged 26 commits into
masterfrom
tal.ba/feat/enhance_bootstrap
Jul 27, 2026
Merged

TalBarYakar merged 26 commits into
masterfrom
tal.ba/feat/enhance_bootstrap

Conversation

@TalBarYakar

@TalBarYakar TalBarYakar commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Note

Medium Risk
Broad changes to multi-OS bootstrap and package install primitives could affect real installs via new idempotency paths and RHEL Python wiring, though list/dry-run are isolated read-only paths.

Overview
Adds read-only bootstrap modes wired through the Makefile: make bootstrap list runs install_script.sh with CHECK_DEPS=1 (reports required vs missing deps, optional deps separately, non-zero exit if required gaps remain) and does not remove venv or install anything; make bootstrap dry-run prints the exact commands that would run for still-missing pieces, also without mutating the host.

The install stack is refactored around CHECK_DEPS / DRY_RUN in pm.sh: package helpers record presence via _check_pkgs instead of installing; _run / _sh centralize execute vs print vs skip; SUDO is neutralized in check/dry-run so repo enables, symlinks, and profile edits cannot run. OPTIONAL_PKGS and sparse MIN_VERSIONS classify test/debug tooling vs hard requirements. install_script.sh skips git safe.directory in these modes, aggregates results to DEPS_REPORT_FILE when set, and handles Rust/cargo as check-or-print instead of invoking getrust.sh.

Per-OS scripts gain idempotency guards (skip PPA/cmake source builds, devtoolset/openssl/cmake symlinks, compiler alternatives when already satisfied) and route mutating steps through _run/_sh. Notable install-path tweaks: RHEL python is installed via rhel_default_install with an EL8 RHEL_PYTHON override so list/dry-run don’t false-flag python3; Amazon Linux 2 gates x86_64-only SCL/devtoolset; apt gets Acquire::Retries; root without sudo gets a sudo pass-through stub.

Reviewed by Cursor Bugbot for commit 2dc37d7. Bugbot is set up for automated code reviews on this repo. Configure here.

Comment thread .install/os/macos.sh Resolved
Comment thread .install/lib/packages.sh Resolved
@codecov

codecov Bot commented Jul 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.97%. Comparing base (628013e) to head (2dc37d7).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1624   +/-   ##
=======================================
  Coverage   85.97%   85.97%           
=======================================
  Files          15       15           
  Lines        5305     5305           
=======================================
  Hits         4561     4561           
  Misses        744      744           

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

Comment thread .install/lib/pm.sh

if [ "$CHECK_DEPS" = 1 ] || [ "$DRY_RUN" = 1 ]; then
_SUDO_DISPLAY="$SUDO" # remember the real sudo prefix for dry-run printing
SUDO=":" # neutralize privileged side-commands (no mutation)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

list/dry-run are not actually read-only, and both under-report — the safety model misses the per-OS scripts.

The mode machinery neutralizes only two things: $SUDO → : and the *_install primitives. Any command in an os/<osnick>.sh file (or lib/packages.sh) that touches the network/disk/pip directly bypasses both and runs for real under make bootstrap list / dry-run:

  • install_aws_cli (lib/packages.sh) — curl … -o /tmp/awscliv2.zip + unzip execute; only the trailing $SUDO …/aws/install is neutralized. Reached from os/rocky8.sh, rocky9.sh, mariner2.sh, azurelinux3.sh, bionic.sh.
  • os/bionic.sh — builds CMake from source (wget + tar + ./configure + make -j) and runs pip3 install dataclasses (redis scripts/bootstrap.sh exports PIP_BREAK_SYSTEM_PACKAGES=1), plus two keyserver wgets.

Two more consequences of the same design:

  • Abort on a fresh host: os/focal.sh:12 / os/bionic.sh:27 run _cur=$(gcc -dumpversion | cut -d. -f1) ungated. In check mode gcc was only recorded, not installed, so on a clean ubuntu:20.04/18.04 the pipeline exits 127 and set -euo pipefail kills the script before any report prints — the exact fresh-host case list targets. (Same shape: _pm_enable_el8_extras does return 1 on subscription-less RHEL 8.)
  • Under-reporting: because SUDO=":" swallows every $SUDO-prefixed non-primitive, list never records epel-release, the Development Tools groupinstall, or the gcc-toolset symlinks/update-alternatives, and dry-run's "commands above are what bootstrap would run" is false for those lines.

Probably needs a mode-aware wrapper (a _run-style guard, or gating) around the raw curl/wget/pip/make/tool-probe calls in os/*.sh, not just $SUDO.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Main items here are fixed in the latest commit ✅ — the gcc -dumpversion probe no longer aborts (… 2>/dev/null | … || echo 0), and the raw install_aws_cli / cmake-from-source / pip3 install / keyserver-wget mutations are now gated (dry-run prints them; aws-cli is recorded as optional).

One minor, non-blocking gap remains: list/dry-run still don't record the $SUDO-neutralized side-commands on EL8/9 — epel-release, the Development Tools groupinstall, and the gcc-toolset symlinks — so they won't appear in the report. Fine to leave as a follow-up.

Comment thread .install/os/macos.sh Outdated
if ! command -v python3 >/dev/null 2>&1; then
echo "==> [redisjson] python3 not on PATH; installing brew [email protected]"
HOMEBREW_NO_AUTO_UPDATE=1 brew install [email protected]
HOMEBREW_NO_AUTO_UPDATE=1 _run brew install [email protected]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

macOS list never reports a missing python3 (dry-run does) — the two modes disagree.

python is deliberately absent from BREW_BASE, and this conditional routes through _run, which is a no-op under CHECK_DEPS that records nothing into DEPS_*. So on a Mac with no python3, make bootstrap list reports everything present and exits 0, while make bootstrap dry-run does print brew install [email protected]. list should record python3 as a (missing) dependency so it matches dry-run and the real install. (Minor, same line: the dry-run print drops the HOMEBREW_NO_AUTO_UPDATE=1 prefix, so the copy-paste command differs from what bootstrap runs.)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fixed ✅ — macos.sh now records [email protected] into DEPS_OK/DEPS_MISSING under list and prints the install command under dry-run, so the two modes agree.

Comment thread .install/lib/pm.sh Outdated
# which the base image doesn't preinstall) then blocks on an interactive
# prompt and the bootstrap hangs.
$SUDO env DEBIAN_FRONTEND=noninteractive apt-get install -yqq --no-install-recommends "$@"
_run env DEBIAN_FRONTEND=noninteractive apt-get install -yqq --no-install-recommends "$@"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

JSON's apt_install drops the Acquire::Retries=5 that RedisTimeSeries/RedisBloom carry. Their apt_install passes -o Acquire::Retries=5 on both apt-get update and apt-get install (comment there: ports.ubuntu.com's arm64 mirror intermittently drops connections and fails the whole docker build, exit 100). JSON passes neither, so JSON's bootstrap is more prone to transient apt failures than its siblings — and the dry-run output prints the retry-less command too. Suggest matching the other two modules.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fixed ✅ — apt_install now sets and passes -o Acquire::Retries=5, matching RedisTimeSeries/RedisBloom.

[ "$_uv" = ok ] && DEPS_OPT_OK="$DEPS_OPT_OK uv" || DEPS_OPT_MISSING="$DEPS_OPT_MISSING uv"
else
[ "$_uv" = ok ] && DEPS_OK="$DEPS_OK uv" || DEPS_MISSING="$DEPS_MISSING uv"
fi

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

List passes without required uv

Medium Severity

make bootstrap list treats uv as optional because it appears in OPTIONAL_PKGS, so a missing uv is recorded under optional gaps and the check still exits 0. A normal make bootstrap hard-fails in setup-python.sh when uv is absent, so list can report success while bootstrap cannot proceed.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5e3ddc8. Configure here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

uv isn't a pre-requisite — a real make bootstrap installs it itself (curl … astral.sh/uv/install.sh), same as it provisions cmake/rust/aws-cli. The hard-fail in setup-python.sh only fires if that install fails, not when uv is simply absent. So list correctly treats uv as optional: a missing uv doesn't block bootstrap, and flagging it required would fail the check on every clean host even though bootstrap proceeds fine.

Comment thread .install/lib/pm.sh
else
DEPS_OK="$DEPS_OK $_p"
fi
fi

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Optional list hides missing base packages

Medium Severity

_check_pkgs sends any name in OPTIONAL_PKGS to the optional buckets, but that list overlaps heavily with DEBIAN_BASE / RHEL_BASE entries such as curl, tcl, zlib1g-dev, and libev-dev. Missing packages in that overlap are omitted from DEPS_MISSING, so make bootstrap list can exit 0 even when bootstrap would still install required build libraries.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5e3ddc8. Configure here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Intentional, not a bug. These names are in the *_BASE install superset but aren't actual build/link requirements — the module builds and runs without them (verified), so they're classified optional on purpose: list should only fail on deps that genuinely break build/run. Marking them required would make list fail on machines that build fine. OPTIONAL_PKGS deliberately holds only non-build-critical names (test/coverage/debug + install-superset extras).

Comment thread .install/lib/pm.sh Resolved
Comment thread .install/os/bionic.sh Resolved
Comment thread .install/os/bionic.sh Resolved
gabsow
gabsow previously approved these changes Jul 23, 2026

@gabsow gabsow left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-reviewed after the latest commit — all my earlier review points are addressed. LGTM 🚀

Comment thread .install/os/bionic.sh Resolved
Comment thread .install/os/macos.sh Resolved
Comment thread .install/lib/pm.sh
# copy-pasteable script; list: skip; else: execute via eval. Write the string
# with a literal `sudo` (these raw steps are Linux-only, where bootstrap ensures
# sudo) so the printed line runs as-is.
_sh() {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Minor / non-blocking: _sh hardcodes a literal sudo in its command strings, whereas _run uses the MODE-aware prefix (${_SUDO_DISPLAY:-$SUDO}). These _sh 'sudo …' steps replace former $SUDO … calls, so on a Linux-root environment run with INSTALL_SCRIPT_MODE="" and no sudo binary they'd fail (sudo: command not found) where the old $SUDO-based code ran the command directly. Not a blocker (the redis dispatcher installs sudo when root on Linux, and MODE defaults to sudo) — but threading the real prefix through _sh like _run does would make it MODE-consistent.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Acknowledged — very minor. Only reachable on subscription-less real RHEL 8 (Alma/Rocky skip the ID=rhel branch, so CI is unaffected), where CodeReady Builder is genuinely required for gcc-toolset-11, so the hard abort with the CRB diagnostic is acceptable. Leaving as-is.

Comment thread .install/lib/pm.sh
if [ -n "$rid" ]; then
$SUDO dnf config-manager --set-enabled "$rid"
dnf repolist --enabled 2>/dev/null | grep -q "$rid" \
|| _run dnf config-manager --set-enabled "$rid"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Minor / non-blocking (niche): a few lines below, the return 1 when no CodeReady repo is found makes _pm_enable_el8_extras exit non-zero, and el8_default_install calls it unguarded — so under set -euo pipefail that aborts make bootstrap list before the dependency report prints. Only reachable on a subscription-less real RHEL 8 (Alma/Rocky report ID=almalinux/rocky and skip this branch, so CI is unaffected). A || true at the call site would let list degrade gracefully.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Acknowledged — very minor / niche. Only reachable on subscription-less real RHEL 8 (Alma/Rocky skip the ID=rhel branch, so CI is unaffected), where CodeReady Builder is genuinely required for gcc-toolset-11. The hard abort with the "fix RHUI/subscription repos" diagnostic is acceptable there, so leaving as-is rather than adding || true.

gabsow
gabsow previously approved these changes Jul 26, 2026

@gabsow gabsow left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-reviewed the latest revision. The read-only routing via _sh/_run, the idempotency guards, and the arm64 Amazon Linux 2 fix all look good, and the earlier follow-up is resolved — list/dry-run now report (and print) the side-commands that were previously swallowed by SUDO=":", with nothing mutating. LGTM 🚀

Left two minor, non-blocking notes inline (_sh hardcoded sudo vs MODE-aware prefix; _pm_enable_el8_extras return 1 on subscription-less RHEL 8) — neither needs to hold the merge.

Comment thread .install/lib/pm.sh
# report the stale apt version).
_get_installed_version() {
case "$1" in
gcc|g++) "$1" -dumpversion 2>/dev/null ;;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing || true in gcc version probe risks abort

Low Severity

The gcc|g++ branch of _get_installed_version lacks the || true that the * branch has. Under set -euo pipefail, if the package is recorded as installed by the package manager but the binary isn't on PATH (e.g., gcc-toolset installs to /opt/rh/…), "$1" -dumpversion fails and the caller _have=$(_get_installed_version …) aborts the script. Currently latent because MIN_VERSIONS is empty, but the asymmetry with the * case is a trap for anyone adding a gcc:NN entry later.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 6ee2e1a. Configure here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Acknowledged — low severity, leaving as-is. Latent here since MIN_VERSIONS="", so the gcc|g++ return value is never version-compared. It would only bite on a broken/unrunnable gcc that the package DB still reports as installed — a degenerate case where make bootstrap list exiting non-zero is acceptable. Not worth the change for that edge.

Comment thread .install/lib/pm.sh
# fail looking for Python.h that matches the wrong interpreter.
el8_default_install() {
$SUDO dnf -y install epel-release
rpm -q epel-release >/dev/null 2>&1 || _run dnf -y install epel-release

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unguarded function abort prevents list report on RHEL 8

Low Severity

In el8_default_install, _pm_enable_el8_extras is called without guarding against its return 1. On subscription-less real RHEL 8 (where no codeready-builder-for-rhel-8 repo is found), the function returns 1, and under set -e (active in install_script.sh), the script aborts before the dependency report at the end of install_script.sh can print. A || true at the call site would let make bootstrap list degrade gracefully.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit c0703bb. Configure here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Acknowledged — very minor, same as the related el8 threads. Only reachable on subscription-less real RHEL 8 (Alma/Rocky skip the ID=rhel branch, so CI is unaffected), where CodeReady Builder is required for gcc-toolset-11 regardless. The hard abort with the CRB diagnostic is acceptable there, so leaving as-is.

@TalBarYakar
TalBarYakar force-pushed the tal.ba/feat/enhance_bootstrap branch from d5cd5d3 to b04e841 Compare July 27, 2026 06:36
Comment thread .install/lib/pm.sh
# copy-pasteable script; list: skip; else: execute via eval. Write the string
# with a literal `sudo` (these raw steps are Linux-only, where bootstrap ensures
# sudo) so the printed line runs as-is.
_sh() {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(Re-posting after the rebase orphaned it — non-blocking.) _sh hardcodes a literal sudo, whereas _run uses the MODE-aware prefix (${_SUDO_DISPLAY:-$SUDO}). On a Linux-root env run with INSTALL_SCRIPT_MODE="" and no sudo binary, these _sh 'sudo …' steps would fail where the old $SUDO-based code ran directly. Not a blocker (bootstrap ensures sudo when root; MODE defaults to sudo) — threading the real prefix through _sh would make it MODE-consistent.

Comment thread .install/lib/pm.sh
if [ -n "$rid" ]; then
$SUDO dnf config-manager --set-enabled "$rid"
dnf repolist --enabled 2>/dev/null | grep -q "$rid" \
|| _run dnf config-manager --set-enabled "$rid"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(Re-posting after the rebase orphaned it — non-blocking, niche.) The return 1 when no CodeReady repo is found makes _pm_enable_el8_extras exit non-zero, and el8_default_install calls it unguarded, so under set -euo pipefail that aborts make bootstrap list before the report. Only on subscription-less real RHEL 8 (Alma/Rocky skip this branch). A || true at the call site would let list degrade gracefully.

gabsow
gabsow previously approved these changes Jul 27, 2026

@gabsow gabsow left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-approving after the rebase — I diffed every file each PR touches at my previously-approved commit vs this rebased head and they are byte-identical, so this is a pure rebase with no content change (which is what dismissed the approval). Nothing new to review. LGTM 🚀

The two minor, non-blocking notes from before still apply (re-posted inline): _sh literal sudo vs MODE-aware prefix; _pm_enable_el8_extras return 1 on subscription-less RHEL 8.

…inary

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.
@TalBarYakar TalBarYakar added the docker-image-changes Build image locally instead of pulling from registry label Jul 27, 2026

@cursor cursor 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

There are 5 total unresolved issues (including 4 from previous reviews).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2dc37d7. Configure here.

Comment thread .install/lib/pm.sh
fi
fi
done
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

List mode double-counts packages across install calls

Low Severity

_check_pkgs unconditionally appends to DEPS_OK/DEPS_MISSING/DEPS_OPT_* without deduplication. When the same package appears in multiple install calls (e.g., wget, curl, ca-certificates in both bionic's explicit apt_install and DEBIAN_BASE), it gets appended and counted multiple times. The word-count logic in install_script.sh (set -- $DEPS_OK; echo $#) then produces inflated totals, and VERBOSE=1 output shows visible duplicate entries.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 2dc37d7. Configure here.

@TalBarYakar
TalBarYakar merged commit 5ca803d into master Jul 27, 2026
60 of 61 checks passed
@TalBarYakar
TalBarYakar deleted the tal.ba/feat/enhance_bootstrap branch July 27, 2026 09:57
TalBarYakar added a commit that referenced this pull request Jul 27, 2026
* MOD-13014: redact user data from JSONPath trace logs (#1605)

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]>

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

* MOD-16366 json add flow tests to check llapi c api (#1614)

* 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

* MOD-16514 - fix bootstrap & build for al os (#1612)

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

* MOD-16300 perf(json_path): materialize filter literals once per query (#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) (#1617)

* MOD-16608 Bump ijson(reduce object memory)

* clippy

* fix memory test

* MOD-16274 | MOD-16275 add size/sizeof and empty operators on object (#1618)

* MOD-16685 Add RedisJSON API to open from RedisModuleKey (#1619)

* 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

* MOD-16872 make `apply_updates` return the current status of updates (#1621)

* add docker image managment to json (#1622)

* Add `AGENTS.md` and `CLAUDE.md`

* ignore AGENS.MD in spellcheck

* ignore CLAUDE.MD in spellcheck

* [MOD-17021] Add getWithPath LLAPI to evaluate a pre-compiled JSONPath (#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]>

* MOD-16952 - enhance bootstrap (add list and dry-run arg) (#1624)

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

* version update

* Revert "[MOD-17021] Add getWithPath LLAPI to evaluate a pre-compiled JSONPath (#1623)"

This reverts commit 628013e.

---------

Co-authored-by: Tom Gabsow <[email protected]>
Co-authored-by: Claude Opus 4.8 <[email protected]>
Co-authored-by: Aviv David <[email protected]>
Co-authored-by: avivdavid23 <[email protected]>
Co-authored-by: Itzikvaknin <[email protected]>
YaacovHazan pushed a commit to redis/redis that referenced this pull request Jul 29, 2026
## Module Update

This PR bumps the pinned **MODULE_VERSION** for **RedisJSON** from
**v8.9.90** to **v8.10.0**. RedisBloom and RedisTimeSeries are
unchanged.

## Changes

| 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](RedisJSON/RedisJSON@v8.9.90...v8.10.0)

- MOD-16872 — make `apply_updates` return the current update status
instead of only applying changes, with pytest and CI updates
([#1621](RedisJSON/RedisJSON#1621))
- No ticket — add Docker image management for RedisJSON CI/release
flows, including Docker image push workflow wiring
([#1622](RedisJSON/RedisJSON#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](RedisJSON/RedisJSON#1624))

## Excluded Commits

**1 commit excluded**

MOD-17021 / [#1623](RedisJSON/RedisJSON#1623) is
intentionally excluded from this description.

## Verification

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

---

*This PR was automatically created by the Redis Module Release
Orchestrator.*

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Single manifest pin bump with no Redis core or load-path changes; risk
is limited to RedisJSON module behavior at the new upstream release.
> 
> **Overview**
> Pins **RedisJSON** in `modules/modules.yaml` from **v8.9.90** to
**v8.10.0**; RedisBloom, RediSearch, and RedisTimeSeries refs are
unchanged.
> 
> After merge, `make modules-update redisjson` (or a full modules
refresh) will pull the new tag for `modules/redisjson/src/` and rebuild
**`rejson.so`** per the existing manifest wiring.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
27f5ca7. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker-image-changes Build image locally instead of pulling from registry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants