Repository navigation
Add CI to build bundled modules on every supported OS when modules.yaml changes - #15442
Conversation
| done | ||
| ./src/redis-cli MODULE LIST | tee module-list.txt | ||
| for m in bf search ReJSON timeseries; do | ||
| grep -qx "$m" module-list.txt || { echo "MISSING MODULE: $m"; exit 1; } |
There was a problem hiding this comment.
MODULE LIST grep mismatch
High Severity
The server verification step pipes default redis-cli MODULE LIST into a file, then requires each expected module name to appear as an entire line via grep -qx. Standard CLI formatting prints RESP map replies as indexed, quoted lines (for example name => "bf"), so names are never isolated on their own line and the loop reports false MISSING MODULE failures after a successful load.
Reviewed by Cursor Bugbot for commit 87c81b1. Configure here.
There was a problem hiding this comment.
false positive, If the client is not TTY stdout, redis-cli will switch to raw model.
(!isatty(fileno(stdout)) && (getenv("FAKETTY") == NULL)) {
config.output = OUTPUT_RAW;
config.push_output = 0;
}
87c81b1 to
7888209
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
Reviewed by Cursor Bugbot for commit 7888209. Configure here.
7888209 to
1810adc
Compare
|
Thanks Bugbot — addressed both: Medium (tdnf retry hides install failure) — fixed in ok=
for _ in 1 2 3; do
tdnf install -y … && { ok=1; break; }
tdnf --disableplugin=tdnfrepogpgcheck install -y … && { ok=1; break; }
sleep 10
done
[ -n "$ok" ] || { echo "ERROR: tdnf prerequisite install failed after retries" >&2; exit 1; }High (MODULE LIST grep mismatch) — not applicable here. The finding assumes the interactive Left as-is since it's an intentional load smoke-check and works across the matrix. |
1810adc to
2925631
Compare
…ed OS Replays the from-source flow in modules/README.md (modules-update -> bootstrap -> make all -> redis-server redis-full.conf + MODULE LIST -> make test all) on the 15-OS x (x64,arm64) matrix the bundled modules' own nightlies target, each in a clean stock container (no Dockerfiles). Builds with LTO=1 (redisearch's build_env default) and BUILD_TLS=yes so redisearch's TLS test suite can start a TLS server; installs only the prerequisites a user needs before the manual's first command (git, make, certs, openssl; awk/find on minimal rpm images; bash on alpine). Named 'Modules Daily' to match the repo's existing Daily workflow. Depends on in-flight module bootstrap/LTO/test fixes reaching pinned tags: RediSearch redis#10372 (bootstrap installs cargo-nextest + python test deps), redis#10373 (LTO=1 build across all OS families, merged), RedisTimeSeries redis#2089 (alpine test venv, merged). Until modules.yaml is bumped to tags containing those, the LTO build and module test suites are red on the affected OSes; the workflow itself needs no per-module workarounds. Co-Authored-By: Claude Fable 5 <[email protected]>
2925631 to
b9755c5
Compare
On a pull_request event github.event.inputs is empty, so the checkout fell back to unstable and built unstable's modules.yaml — never the pin bump that triggered the run, so a PR bumping a module to a version that fails to build/load on some OS would still pass green. Fetch the PR merge ref (published on the base repo, so fork PRs work too) on pull_request; keep the use_repo/use_git_ref inputs for manual dispatch. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Tal.ba/feat/enhance tests


Follow-up to #15253 (bundled data-type modules). Adds a GitHub Actions workflow (
.github/workflows/modules-build-flow.yml) that replays the from-source flow documented in modules/README.md on every OS the bundled modules support — the same 15-OS list the modules' own nightlies build against — across x64 and arm64, each in a clean stock container (no Dockerfiles):When it runs
modules/modules.yaml. Bumping a module's pinnedrefis exactly when the from-source build/load can break on some OS, so the whole matrix re-verifies then. On a PR it checks out the PR merge ref, so it builds the bumped pins, notunstable(works for fork PRs too).workflow_dispatchfor manual runs, withuse_repo/use_git_refinputs to point at any repo/branch.It builds and smoke-tests only — starts the server and asserts
MODULE LISTcontainsbf/search/ReJSON/timeseries. It does not run the per-modulemake test allsuites; those live in each module's own CI.Design
arch × osnick; every image is a stock multi-arch base (ubuntu/debian/alma/rocky/amazonlinux/azurelinux/alpine).gawk/findutilson minimal rpm images;bashon alpine;openssl+ dev headers). Compilers and per-module toolchains must come frommake bootstrap— if they don't, the manual is broken on that OS and this workflow catches exactly that.BUILD_TLS=yes— the README's documented full-build flag (redisearch's TLS test env expects it).git clone) — they can't start on older-glibc images.Validation
Ran the full matrix on a fork against the upcoming module refs (redisearch + redistimeseries at
master, i.e. post-RediSearch#10372): 30/30 jobs green across all 15 OSes on both arches — build +MODULE LISTsmoke (fork Actions run29747001924). Oncemodules.yamlis bumped to the retagged versions carrying the merged bootstrap/LTO fixes (RediSearch #10372 / #10373, RedisTimeSeries #2089), the matrix is green with no per-module workarounds in the workflow.🤖 Generated with Claude Code
Note
Low Risk
Adds CI-only automation with no changes to Redis runtime, auth, or data paths.
Overview
Adds
.github/workflows/modules-build-flow.yml, a GitHub Actions workflow that replays the documented from-source modules flow (make modules-update→make bootstrap→make all BUILD_TLS=yes) inside stock container images on x64 and arm64 across 15 OS variants (Ubuntu, Debian, Alma/Rocky, Amazon Linux 2023, Azure Linux 3, Alpine).It runs on PRs that touch
modules/modules.yamland onworkflow_dispatch(optional repo/ref). Each job installs only the manual’s baseline packages (git, make, TLS/openssl tooling, etc.), uses a plaingit fetchcheckout (including the PR merge ref on path-filtered PRs) instead ofactions/checkout, then startsredis-serverwithredis-full.confand assertsMODULE LISTincludes bf, search, ReJSON, and timeseries.The workflow also encodes several container-specific fixes: pinned
PATHafter bootstrap, job-levelCXXFLAGSfor GCC/clang-Werrornoise,rm /.dockerenvso module bootstrap installs test Python envs, and tdnf install retries on Azure Linux.Reviewed by Cursor Bugbot for commit 80d2e37. Bugbot is set up for automated code reviews on this repo. Configure here.