Skip to content

CI: build Redis and RedisJSON as their own jobs - #10882

Merged
LukeMathWalker merged 1 commit into
masterfrom
ci-split-dep-builds
Aug 12, 2026
Merged

LukeMathWalker merged 1 commit into
masterfrom
ci-split-dep-builds

Conversation

@LukeMathWalker

Copy link
Copy Markdown
Collaborator

Describe the changes in the pull request

  1. Current: the PR flow and the master merge queue build redis-server and the RedisJSON module as steps inside the RediSearch build job. Three independent builds are serialized on one runner, no test job can start until all of them finish, and the Redis install tree rides along in the module artifact — where the unit-test job downloads it and never unpacks it.
  2. Change: Redis and RedisJSON each become their own job, uploading redis-install.tar.gz and rejson.so as separate artifacts that the flow-test jobs download. The release-branch lane (task-test.yml) is untouched: it builds and tests in a single job, so it has no separate consumer to hand an artifact to.
  3. Outcome: internal-only, no module behavior change. It shortens the pipeline's critical path — the three builds now run concurrently and the unit tests no longer wait on binaries they never load — and gives a dependency build failure its own red check instead of burying it in the module build log.

Which additional issues this PR fixes

N/A

Main objects this PR modified

  1. flow-pr-pipeline.yml — new build-redis and build-rejson jobs alongside build, under the same build-image guard; only the two flow-test jobs gained them as dependencies.
  2. task-build-redis.yml / task-build-rejson.yml (new) — thin wrappers around the existing cached build-redis / build-rejson composite actions plus an artifact upload. Same resolved platform config and sanitizer setup as the module build, which is what keeps the binaries ABI-compatible with it; checkout is submodule-free since neither needs the vendored deps.
  3. task-build.yml — builds RediSearch only. Dropped both dependency builds, redis-install.tar.gz from the artifact, and the now-dead redis-ref / rejson-branch inputs. Side effect worth a look: RedisJSON no longer inherits this workflow's RUSTFLAGS=-Dwarnings, which it was picking up incidentally.
  4. task-test-flow.yml — two new required artifact-name inputs and their downloads. REJSON_PATH and the Redis unpack/verify logic are unchanged, so what the tests run against is the same.

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

@LukeMathWalker

Copy link
Copy Markdown
Collaborator Author

This should shave ~5 minutes from both merge queue and PR flows.

@codecov

codecov Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.23%. Comparing base (5a83a5b) to head (17ffbdd).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10882      +/-   ##
==========================================
- Coverage   83.16%   82.23%   -0.93%     
==========================================
  Files         606      630      +24     
  Lines       80987    82102    +1115     
  Branches    36248    37363    +1115     
==========================================
+ Hits        67350    67520     +170     
- Misses      13290    14235     +945     
  Partials      347      347              
Flag Coverage Δ
flow 84.35% <ø> (-0.04%) ⬇️
unit 55.74% <ø> (-0.55%) ⬇️

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.

@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: 502366c4b7

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .github/workflows/task-build-rejson.yml Resolved
Comment thread .github/workflows/task-build-rejson.yml Resolved

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

Claude claimed that we lost COV: ${{ inputs.cov }} in the env when building Redisjson.

Shouldn't be set here https://github.com/RediSearch/RediSearch/blob/master/.github/actions/build-rejson/action.yml#L91 ?

Comment thread .github/workflows/task-build-rejson.yml Resolved
The PR / merge-queue pipeline built both dependencies as steps inside the
RediSearch build job. That serialized three independent builds onto one
runner, and shipped the Redis install tree in the module artifact — which
the unit-test job downloads but never unpacks.

Split them into two sibling jobs, task-build-redis.yml and
task-build-rejson.yml, each uploading its own artifact for the flow-test
jobs to download. Both wrap the existing cached composite actions and run
on the same resolved platform config and sanitizer flags as the module
build, so the binaries stay ABI-compatible with it.

Both artifacts are tarballs because the artifact zip drops Unix modes:
redis-server has to stay executable, and Redis checks X_OK on a module
file before loading it, so a 0644 rejson.so makes every server in the
flow job fail to start.
@sonarqubecloud

Copy link
Copy Markdown

@LukeMathWalker
LukeMathWalker added this pull request to the merge queue Aug 12, 2026
Merged via the queue into master with commit f2a2a5b Aug 12, 2026
59 checks passed
@LukeMathWalker
LukeMathWalker deleted the ci-split-dep-builds branch August 12, 2026 14:19
pull Bot pushed a commit to Mu-L/RediSearch that referenced this pull request Aug 12, 2026
…eck set (RediSearch#10883)

The monitor treated "at least one check reported and none pending" as the
end of the run. For a minute or two after a push — and again after every
force-push — `gh pr checks` reports only the fast PR-level checks, and all
of those can already be pass/skipping while the pipeline has yet to
register, so the loop declared a green run that had not started. This
happened on RediSearch#10882.

Require the `pr-validation` gate to have been registered before an
all-terminal payload counts. It `needs:` every other job, so its presence
and terminal state imply the whole pipeline's, and there is no per-lane
list to keep in sync. A stalled counter aborts after 20 such polls so
renaming that job surfaces loudly instead of hanging the monitor.
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