Repository navigation
[8.8-rse] [MOD-13757] Remove return-strict from timeout config surface - #10586
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5bf9019563
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| env.expect(config_cmd(), 'set', 'ON_TIMEOUT', 'return-strict').error()\ | ||
| .contains('Invalid ON_TIMEOUT value') |
There was a problem hiding this comment.
Update all surviving RETURN-STRICT setup calls
Once both configuration interfaces reject return-strict, the surviving flow suite fails before exercising its queries: TestQueryDebugCommands.testSearchDebug calls TimeoutPolicyConstraints, which still expects FT.CONFIG SET ON_TIMEOUT RETURN-STRICT to succeed, and numerous TestCoordinatorTimeout methods still perform the same setup through CONFIG SET search-on-timeout. Update or remove all remaining public configuration calls, or provide a separate internal activation mechanism for tests that must continue covering the retained implementation.
AGENTS.md reference: AGENTS.md:L20-L21
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Good catch. This was valid on the reviewed commit. The current head removes all surviving public return-strict setup calls; the only remaining flow-test occurrences are the two configuration rejection assertions. The dependent coordinator and standalone coverage was removed or reduced to supported-policy coverage in follow-up commits.
| # EOF will be reached before the timeout counter | ||
| limit = 2 | ||
| res = self.QueryWithLimit(basic_debug_query, timeout_res_count=10, limit=limit, expected_res_count=limit, should_timeout=False) | ||
|
|
There was a problem hiding this comment.
Restore the unrelated aggregate debug tests
Removing AggregateDebug, testAggregateDebug, and testAggregateDebug_MT discards coverage unrelated to RETURN-STRICT, including aggregate debug parsing, LIMIT/EOF behavior, SORTBY, cursor depletion and cursor-count behavior, INTERNAL_ONLY, and both worker configurations. Only the timeout-policy constraint portion depended on the removed policy, so retain these tests and adjust or omit that specific assertion instead.
AGENTS.md reference: AGENTS.md:L20-L21
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Agreed. Restored AggregateDebug, testAggregateDebug, testAggregateDebug_MT, and the coordinator FAIL constraint in fa70f1503. Only the RETURN-STRICT-specific branches remain removed, preserving the aggregate parsing, LIMIT/EOF, SORTBY, cursor, INTERNAL_ONLY, and worker-configuration coverage.
| static const int on_timeout_enums[2] = { | ||
| TimeoutPolicy_Return, | ||
| TimeoutPolicy_Fail, | ||
| TimeoutPolicy_ReturnStrict | ||
| TimeoutPolicy_Fail |
There was a problem hiding this comment.
Preserve legacy startup values during upgrades
When an existing deployment starts this version with ON_TIMEOUT return-strict in its loadmodule arguments or with search-on-timeout return-strict persisted in redis.conf, the value is now rejected during module initialization. RediSearch_InitModuleConfig propagates failures from both ReadConfig and RedisModule_LoadConfigs, so the module fails to load rather than merely falling back to a supported policy; retain a load-only legacy mapping or provide an explicit migration path while rejecting new runtime assignments.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Thanks. The startup rejection is intentional for this change: return-strict must no longer be accepted through either public configuration surface, including module arguments and persisted search-on-timeout configuration. A load-only compatibility alias would continue accepting the removed configuration, so no exception was added.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 8.8-rse #10586 +/- ##
==========================================
Coverage ? 81.09%
==========================================
Files ? 560
Lines ? 75374
Branches ? 30433
==========================================
Hits ? 61127
Misses ? 13961
Partials ? 286
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:
|
|



Describe the changes in the pull request
8.8-rsebranch advertises and acceptsreturn-strictas anON_TIMEOUT/search-on-timeoutpolicy.return-strictthrough both configuration interfaces while keeping the internalRETURN_STRICTimplementation intact. Update configuration coverage to assert rejection, remove the standalone and coordinator tests dedicated to the removed policy, simplify mixed-policy tests to cover supported policies only, and remove the three empty test classes and newly unused helpers. Preserve unrelated aggregate debug coverage.returnandfail, and the flow-test suites no longer attempt to configure the removed policy.Which additional issues this PR fixes
Main objects this PR modified
module.confsrc/config.candsrc/config.htests/pytests/test_config.pytests/pytests/test_blocked_client_timeout.pytests/pytests/test_debug_commands.pytests/pytests/test_hybrid_timeout.pyValidation
git diff --checkreturn-strictreturn-strictare rejection assertionstest_blocked_client_timeout.pygit diff --checkafter restoring the aggregate debug coverageMark if applicable
Release Notes
If a release note is required (bug fix / new feature / enhancement), describe the user impact of this PR in the title.