Skip to content

Align master to 8.10 & bump version to 8.9.81 - #1616

Merged
TalBarYakar merged 6 commits into
8.10from
tal.ba/feat/bootstrap_update_to_8_10
Jul 5, 2026
Merged

TalBarYakar merged 6 commits into
8.10from
tal.ba/feat/bootstrap_update_to_8_10

Conversation

@TalBarYakar

@TalBarYakar TalBarYakar commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor
  • 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.


Note

Medium Risk
Bootstrap and toolchain changes affect all platforms and CI; LLAPI tests add build-time C compilation but do not change the production module API surface.

Overview
Hardens bootstrap and CI so RedisJSON builds reliably on Alma/RHEL, Ubuntu (bionic/focal), Alpine (musl), Mariner/Azure Linux, and shared build hosts without stepping on other checkouts.

getrust.sh is now user-scoped (no /usr/local symlinks, no global default toolchain or rustup update); workflows rely on install_script.sh only, source ~/.cargo/env for clippy/lint, and macOS sparse checkout includes rust-toolchain.toml. Per-OS installers gain idempotent cmake, shared install_aws_cli, non-interactive apt (tzdata/debconf), gcc-toolset symlinks on EL8/EL9, Alpine libclang.so for bindgen, musl target-feature=-crt-static, and gcc-10 alternatives only when the active compiler is older than 10. The Makefile only exports RUSTFLAGS/RUSTDOCFLAGS when set.

Adds end-to-end coverage for the RedisJSON shared C API (LLAPI): a small llapi_test consumer module (via new deps/RedisModulesSDK submodule) exposes LLAPI.* commands; tests.sh builds it and test_llapi.py exercises happy and error paths against a live module. Patch version 8.9.80 → 8.9.81.

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

gabsow and others added 4 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.
@TalBarYakar
TalBarYakar requested a review from gabsow July 5, 2026 09:35
@TalBarYakar TalBarYakar self-assigned this Jul 5, 2026
@codecov

codecov Bot commented Jul 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.99%. Comparing base (2bdefbe) to head (c030e22).

Additional details and impacted files
@@            Coverage Diff             @@
##             8.10    #1616      +/-   ##
==========================================
+ Coverage   76.29%   85.99%   +9.69%     
==========================================
  Files          15       15              
  Lines        5177     5177              
==========================================
+ Hits         3950     4452     +502     
+ Misses       1227      725     -502     

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

@TalBarYakar
TalBarYakar force-pushed the tal.ba/feat/bootstrap_update_to_8_10 branch from b900353 to c030e22 Compare July 5, 2026 10:16
@TalBarYakar TalBarYakar changed the title MOD-16514 - fix bootstrap & build for al os (#1612) Align master to 8.10 & bump version to 8.9.81 Jul 5, 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.

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 c030e22. Configure here.

}
n++;
}
RedisModule_ReplySetArrayLength(ctx, n);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Array reply mixes error elements

Medium Severity

LLAPI.OPEN_GET and LLAPI.KEYVALUES open a postponed-length array, then call RedisModule_ReplyWithError inside the loop when getJSON fails. That emits a top-level error reply while the client still expects array elements, so the RESP payload can be malformed and RLTest may hang or mis-parse results.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit c030e22. Configure here.

@TalBarYakar
TalBarYakar merged commit 20cd83c into 8.10 Jul 5, 2026
61 checks passed
@TalBarYakar
TalBarYakar deleted the tal.ba/feat/bootstrap_update_to_8_10 branch July 5, 2026 11:17
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.

3 participants