Repository navigation
CI: build Redis and RedisJSON as their own jobs - #10882
Conversation
|
This should shave ~5 minutes from both merge queue and PR flows. |
502366c to
a989d57
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
💡 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".
a989d57 to
9b9c03e
Compare
gdesmott
left a comment
There was a problem hiding this comment.
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 ?
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.
9b9c03e to
17ffbdd
Compare
|
…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.



Describe the changes in the pull request
redis-serverand 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.redis-install.tar.gzandrejson.soas 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.Which additional issues this PR fixes
N/A
Main objects this PR modified
flow-pr-pipeline.yml— newbuild-redisandbuild-rejsonjobs alongsidebuild, under the samebuild-imageguard; only the two flow-test jobs gained them as dependencies.task-build-redis.yml/task-build-rejson.yml(new) — thin wrappers around the existing cachedbuild-redis/build-rejsoncomposite 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.task-build.yml— builds RediSearch only. Dropped both dependency builds,redis-install.tar.gzfrom the artifact, and the now-deadredis-ref/rejson-branchinputs. Side effect worth a look: RedisJSON no longer inherits this workflow'sRUSTFLAGS=-Dwarnings, which it was picking up incidentally.task-test-flow.yml— two new required artifact-name inputs and their downloads.REJSON_PATHand the Redis unpack/verify logic are unchanged, so what the tests run against is the same.Mark if applicable
Release Notes