Skip to content

[MOD-5722] Build without readies [2.10]#6120

Merged
alonre24 merged 22 commits into2.10from
remove_readies_2.10
May 18, 2025
Merged

[MOD-5722] Build without readies [2.10]#6120
alonre24 merged 22 commits into2.10from
remove_readies_2.10

Conversation

@alonre24
Copy link
Collaborator

@alonre24 alonre24 commented May 12, 2025

Describe the changes in the pull request

Backport #6017 to 2.10.

There are some changes required in this backport due to the fact that 2.10 has two separate build paths - one for "vanilla" module and one for the coordinator build.
Also, on this branch, we have the "REDISEARCH_MT_BUILD" build flag that should be set to build with MT support.

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

@codecov
Copy link

codecov bot commented May 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.45%. Comparing base (c613361) to head (c68a941).
Report is 4 commits behind head on 2.10.

Additional details and impacted files
@@            Coverage Diff             @@
##             2.10    #6120      +/-   ##
==========================================
- Coverage   87.23%   86.45%   -0.79%     
==========================================
  Files         204      204              
  Lines       34654    34580      -74     
==========================================
- Hits        30232    29895     -337     
- Misses       4422     4685     +263     
Flag Coverage Δ
flow 81.77% <ø> (-0.11%) ⬇️
unit 40.04% <ø> (-0.74%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.

@alonre24 alonre24 requested a review from Copilot May 18, 2025 08:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR backports #6017 to the 2.10 branch and adjusts the build process to support two distinct build paths ("vanilla" and coordinator) as well as the REDISEARCH_MT_BUILD flag for multi-threading support.

  • Modified shell and CMake scripts to correctly handle coordinator and MT build paths.
  • Removed outdated Docker build files and updated workflow scripts to use custom build commands.

Reviewed Changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/pytests/runtests.sh Enhanced module selection logic for coordinator builds.
tests/cpptests/CMakeLists.txt Added conditional dependency for the example extension build.
sbin/unit-tests Introduced stricter error handling and updated extension path settings.
coord/src/rmr/CMakeLists.txt Updated include paths and added dependency ensuring libuv is built first.
coord/CMakeLists.txt Improved coordinator-specific configuration and enabled MT build support.
build/s2geometry/Makefile.defs Removed deprecated definitions in line with backport requirements.
build/s2geometry/Makefile Removed as part of the backport cleanup.
build/hiredis/hiredis.cmake Switched to an option for BUILD_SHARED_LIBS and refined linker flag settings.
build/docker/dockerfile.tmpl Removed outdated dockerfile template.
build/docker/Makefile Removed outdated Docker Makefile.
build/boost/boost.cmake Added new CMake policies to support updated Boost behavior.
Makefile Added coverage flag in the CMake command-line flags.
CMakeLists.txt Revised build configuration with new helper functions and conditional flags.
.install/macos_update_profile.sh Enhanced log output during PATH update.
.github/workflows/task-test.yml Modified build commands and unit test invocation for improved clarity.
.github/workflows/benchmark-flow.yml Updated build command parameters using a conditional expression.
Comments suppressed due to low confidence (1)

.github/workflows/benchmark-flow.yml:58

  • Verify that the conditional expression in the run command produces the expected result across all intended environments.
run: ./build.sh ${{ inputs.profile_env == 1 && 'PROFILE' || ''}}

CLEAR_LOGS: 0
ENABLE_ASSERT: 1
run: make unit-tests
run: make unit-tests # todo: replace with ./build.sh RUN_UNIT_TESTS
Copy link

Copilot AI May 18, 2025

Choose a reason for hiding this comment

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

Consider replacing 'make unit-tests' with './build.sh RUN_UNIT_TESTS' as indicated by the todo, to ensure consistency in the build process.

Copilot uses AI. Check for mistakes.
@fcostaoliveira
Copy link
Contributor

fcostaoliveira commented May 18, 2025

Automated performance analysis summary

This comment was automatically generated given there is performance data available.

In summary:

  • Detected a total of 2 stable tests between versions.

You can check a comparison in detail via the grafana link

Comparison between 2.10 and remove_readies_2.10.

Time Period from 30 days ago. (environment used: oss-standalone)

Test Case Baseline 2.10 (median obs. +- std.dev) Comparison remove_readies_2.10 (median obs. +- std.dev) % change (higher-better) Note
search-ftsb-5200K-docs-union-iterators-q1 0.77 +- 1.2% (7 datapoints) 0.78 1.3% No Change
search-ftsb-5500K-docs-union-iterators-q2 1.1 +- 1.7% (7 datapoints) 1.10 0.9% No Change

@alonre24 alonre24 requested a review from GuyAv46 May 18, 2025 11:00
@alonre24 alonre24 added this pull request to the merge queue May 18, 2025
Merged via the queue into 2.10 with commit d4771c3 May 18, 2025
23 checks passed
@alonre24 alonre24 deleted the remove_readies_2.10 branch May 18, 2025 15:33
@alonre24 alonre24 changed the title Build without readies [2.10] [MOD-5722] Build without readies [2.10] May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants