Skip to content

Make redis test suite tcl version agnostic - #877

Closed
jbergstroem wants to merge 2 commits into
redis:unstablefrom
jbergstroem:tclsh8.6
Closed

jbergstroem wants to merge 2 commits into
redis:unstablefrom
jbergstroem:tclsh8.6

Conversation

@jbergstroem

Copy link
Copy Markdown
Contributor

Just ran the test suite against tcl 8.6.0, which worked nicely. The test suite currently uses tclsh8.5 everywhere, so I made calls to tclsh instead. Since there's currently a 8.5 requirement, I added a check for that.

@badboy

badboy commented Jan 13, 2013

Copy link
Copy Markdown
Contributor

👍

@djc

djc commented Jan 13, 2013

Copy link
Copy Markdown

+1.

@bwright

bwright commented Jan 20, 2013

Copy link
Copy Markdown

Seems like a great commit! +1

@jbergstroem

Copy link
Copy Markdown
Contributor Author

I haven't checked around much, but there might be issues with tcl installs where tclsh isn't a symlink to the proper version. I'll have a look at freebsd, openbsd and smartos tomorrow.

@antirez

antirez commented Jan 23, 2013

Copy link
Copy Markdown
Contributor

Thanks, seems like a good idea if it works well everywhere.

Probably it's worth to catch "package require Tcl 8.5" and in case of errors properly format an error message where the user is told that to run the Redis test at least Tcl 8.5 is required.

Cheers

@jbergstroem

Copy link
Copy Markdown
Contributor Author

@antirez: On catching tcl 8.5, I thought the error tcl gave you was pretty clear (never mind version numbers):

# make test
cd src && make test
make[1]: Entering directory `/home/jbergstroem/redis/src'
/usr/bin/tclsh
version conflict for package "Tcl": have 8.6.0, need 8.7
    while executing
"package require Tcl 8.7"
    (file "tests/test_helper.tcl" line 5)
make[1]: *** [test] Error 1

As for tclsh over tcl<version>, the results are pretty disappointing:

OS tcl version tclsh
smartos 8.4 YES
openbsd 5.2 8.5 NO
ubuntu 12.10 8.5 YES
freebsd 9.1 8.5 NO

There doesn't seem to be a good way to carry a patch that uses tclsh. We probably want to use which/et al from shell and perhaps communicating to tcl with ENV. If others agree, I'll whip something together.

@jbergstroem

Copy link
Copy Markdown
Contributor Author

Being too impatient, I went ahead and did above changes. Overall, I think its a better approach.

@antirez: I still think the tclsh version feedback is good as-is. Let me know if I should give it some more love. The shell script will also give further feedback before entering tcl.

See https://github.com/antirez/redis/pull/906 for new branch.

sundb pushed a commit to sundb/redis that referenced this pull request Jul 28, 2025
…er logs (redis#877)

Implement data masking for user data in server logs and diagnostic output. This change prevents potential exposure of confidential information, such as PII, and enhances privacy protection. It masks all command arguments, client names, and client usernames.

Added a new hide-user-data-from-log configuration item, default yes.

---------

Signed-off-by: Amit Nagler <[email protected]>
sundb pushed a commit to sundb/redis that referenced this pull request Jul 28, 2025
Minor cleanup, introduced in redis#877.

Signed-off-by: Binbin <[email protected]>
Signed-off-by: Ping Xie <[email protected]>
minchopaskal pushed a commit to minchopaskal/redis that referenced this pull request Oct 16, 2025
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.

5 participants