Skip to content

[8.8-rse] [MOD-13757] Remove return-strict from timeout config surface - #10586

Merged
lerman25 merged 7 commits into
8.8-rsefrom
agent/remove-return-strict-timeout-config
Jul 27, 2026
Merged

lerman25 merged 7 commits into
8.8-rsefrom
agent/remove-return-strict-timeout-config

Conversation

@lerman25

@lerman25 lerman25 commented Jul 26, 2026 •

Copy link
Copy Markdown
Collaborator

Describe the changes in the pull request

  1. Current: The 8.8-rse branch advertises and accepts return-strict as an ON_TIMEOUT / search-on-timeout policy.
  2. Change: Stop advertising and accepting return-strict through both configuration interfaces while keeping the internal RETURN_STRICT implementation 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.
  3. Outcome: The 8.8 RSE configuration surface accepts only return and fail, and the flow-test suites no longer attempt to configure the removed policy.

Which additional issues this PR fixes

  1. MOD-13757 (follow-up)

Main objects this PR modified

  1. module.conf
  2. src/config.c and src/config.h
  3. tests/pytests/test_config.py
  4. tests/pytests/test_blocked_client_timeout.py
  5. tests/pytests/test_debug_commands.py
  6. tests/pytests/test_hybrid_timeout.py

Validation

  1. git diff --check
  2. Python syntax compilation for all four modified Python test files
  3. Confirmed every failure reported by the linked standalone CI job no longer attempts to configure return-strict
  4. Confirmed all remaining flow-test references to return-strict are rejection assertions
  5. Confirmed no private helpers or module-level helper functions became unused in test_blocked_client_timeout.py
  6. Python syntax compilation and git diff --check after restoring the aggregate debug coverage
  7. No post-cleanup build or test suite was run

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

If a release note is required (bug fix / new feature / enhancement), describe the user impact of this PR in the title.

@github-actions github-actions Bot added size:S and removed size:XS labels Jul 26, 2026
@github-actions github-actions Bot added size:XL and removed size:S labels Jul 26, 2026
@lerman25
lerman25 marked this pull request as ready for review July 26, 2026 11:10

@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: 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".

Comment on lines +127 to +128
env.expect(config_cmd(), 'set', 'ON_TIMEOUT', 'return-strict').error()\
.contains('Invalid ON_TIMEOUT value')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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.

Comment thread src/config.h
Comment on lines +29 to +31
static const int on_timeout_enums[2] = {
TimeoutPolicy_Return,
TimeoutPolicy_Fail,
TimeoutPolicy_ReturnStrict
TimeoutPolicy_Fail

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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

codecov Bot commented Jul 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (8.8-rse@8bcb67b). Learn more about missing BASE report.

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           
Flag Coverage Δ
flow 82.60% <ø> (?)
unit 52.31% <ø> (?)

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.

@sonarqubecloud

Copy link
Copy Markdown

@lerman25
lerman25 added this pull request to the merge queue Jul 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 27, 2026
@lerman25
lerman25 added this pull request to the merge queue Jul 27, 2026
Merged via the queue into 8.8-rse with commit 4bd8855 Jul 27, 2026
48 checks passed
@lerman25
lerman25 deleted the agent/remove-return-strict-timeout-config branch July 27, 2026 16:06
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