-
Notifications
You must be signed in to change notification settings - Fork 692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List test files dynamically #313
List test files dynamically #313
Conversation
Signed-off-by: jonghoonpark <dev@jonghoonpark.com>
c6970c1
to
003c2b6
Compare
unit/type/list-common doesn't contain tests. It just defines some variables. I think we should move it out, to tests/helpers/ or whatevever. |
Currently, the
what about move to |
I would just throw it at the bottom of support/util.tcl and remove all the special includes. Right now we just throw alls sorts of random stuff there. |
Yes but let's wrap it in a function to return that big array, right? Now it's just creating it when included. Another option is to duplicate those 3(?) lines in all test suites using it. |
After removing list-common.tcl, I created a function in util.tcl. Can you check the changes? |
Signed-off-by: jonghoonpark <dev@jonghoonpark.com>
0a1aeb0
to
901efc6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI failed:
*** [err]: Is a ziplist encoded Hash promoted on big payload? in tests/unit/type/hash.tcl
Expected '*hashtable*' to equal or match 'Value at:0x7f0edf3d2300 refcount:1 encoding:listpack serializedlength:178 lru:1871839 lru_seconds_idle:0'
It's probably a test ordering issue. Since the external test re-uses the same cluster, there was probably a config that was set on an earlier test that is interfering with it. You probably juts need to reset the |
Thanks for the hint. I knew it had something to do with the order, but I wasn't sure where to look. I'll try some more. |
fbff5a5
to
bd34e50
Compare
Signed-off-by: jonghoonpark <dev@jonghoonpark.com>
bd34e50
to
ae2f23c
Compare
Motivation: Currently we have to manually update the all_tests variable when introducing new test files. Fix: I've modified it to list test files dynamically, but rather than modify it to add all test files, I've first modified it to only add test files from the following 4 paths so that it doesn't deviate too much from what we already do - unit - unit/type - unit/cluster - integration Related issue: valkey-io#302 --------- Signed-off-by: jonghoonpark <dev@jonghoonpark.com>
Phrases like "just throw" and "random stuff" give me nervous twitches. As far as I can tell, that's how we got |
Motivation: Currently we have to manually update the all_tests variable when introducing new test files. Fix: I've modified it to list test files dynamically, but rather than modify it to add all test files, I've first modified it to only add test files from the following 4 paths so that it doesn't deviate too much from what we already do - unit - unit/type - unit/cluster - integration Related issue: valkey-io#302 --------- Signed-off-by: jonghoonpark <dev@jonghoonpark.com>
Related issue: #302
Motivation: Currently we have to manually update the all_tests variable when introducing new test files.
Fix: I've modified it to list test files dynamically, but rather than modify it to add all test files, I've first modified it to only add test files from the following 4 paths so that it doesn't deviate too much from what we already do
The result: Previously, 92 tests were in the all_tests variable.
Currently, 93 tests from the four paths mentioned above are in the all_tests variable (unit/type/list-common was added. the rest is the same).