Repository navigation
Make redis test suite tcl version agnostic - #877
jbergstroem wants to merge 2 commits into
Conversation
|
👍 |
|
+1. |
|
Seems like a great commit! +1 |
|
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. |
|
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 |
|
@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 1As for
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. |
|
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. |
…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]>
Minor cleanup, introduced in redis#877. Signed-off-by: Binbin <[email protected]> Signed-off-by: Ping Xie <[email protected]>
Update copyright end year.
Just ran the test suite against tcl 8.6.0, which worked nicely. The test suite currently uses
tclsh8.5everywhere, so I made calls totclshinstead. Since there's currently a 8.5 requirement, I added a check for that.