Skip to content

Conversation

@xShinnRyuu
Copy link
Collaborator

@xShinnRyuu xShinnRyuu commented Jan 8, 2026

This PR is an updated version of #5065 from @hank95179. Thank you for your contribution.

Description

This PR addresses the flakiness observed in the zscan test within node/tests/SharedTests.ts.
The test seeds the database with two sets of data: charMembers (e.g., 'a', 'b', 'c') and members (e.g., 'member 1', 'member 2'...).
The previous assertion strictly required all items returned by zscan to start with "member". However, zscan iterates through the set and may correctly return items from charMembers. When this happened, the strict assertion caused the test to fail incorrectly.

Solution

Updated the logic of zscan to only match results starting with member

Issue link

This Pull Request is linked to issue (URL): [Node][Flaky Test] GlideClient › zscan test_x #4814

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one issue.
  • Commit message has a detailed description of what changed and why.
  • Tests are added or updated.
  • CHANGELOG.md and documentation files are updated.
  • Destination branch is correct - main or release
  • Create merge commit if merging release branch into main, squash otherwise.

hank95179 and others added 3 commits December 13, 2025 18:31
This change updates the zscan test in SharedTests.ts to allow keys from 'charMembers' (e.g., 'a', 'b', etc.) in the scan results. Previously, the test strictly asserted that all returned keys must start with 'member', causing intermittent failures when 'charMembers' were encountered during scanning (Issue #4814).

Signed-off-by: hank95179 <[email protected]>
@xShinnRyuu xShinnRyuu requested a review from a team as a code owner January 8, 2026 23:06
@xShinnRyuu
Copy link
Collaborator Author

xShinnRyuu commented Jan 8, 2026

This PR is an updated version of #5065. Refer to the comment history of that task for details.

Copy link
Collaborator

@currantw currantw left a comment

Choose a reason for hiding this comment

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

Looks good to me ✅

Copy link
Collaborator

@jamesx-improving jamesx-improving left a comment

Choose a reason for hiding this comment

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

LGTM

@xShinnRyuu xShinnRyuu merged commit b576f80 into main Jan 9, 2026
22 of 23 checks passed
@xShinnRyuu xShinnRyuu deleted the fix/issue-4814-zscan-flake branch January 9, 2026 21:06
@xShinnRyuu xShinnRyuu linked an issue Jan 9, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Node][Flaky Test] GlideClient › zscan test_x

5 participants