Skip to content
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

[NEW] dynamically list test files #13219

Closed
dev-jonghoonpark opened this issue Apr 17, 2024 · 1 comment · Fixed by #13220
Closed

[NEW] dynamically list test files #13219

dev-jonghoonpark opened this issue Apr 17, 2024 · 1 comment · Fixed by #13220

Comments

@dev-jonghoonpark
Copy link
Contributor

The problem/use-case that the feature addresses

Currently the test_helper.tcl file maintains a list of test file names all_tests and iterates throught the list to execute all tests. the all_tests variable needs to be manually updated when new test files are introduced.

Description of the feature

dynamically list test files

Alternatives you've considered

Currently, the all_tests variable contains tests from four paths.

  • unit
  • unit/type
  • unit/cluster
  • integration

So, we'll implement files in these four paths to be dynamically added to the all_tests variable.

Additional information

I've already merged this feature into the valkey project, which is a fork of redis.
valkey-io/valkey#313

I would like to merge it into redis as well, if it is allowed.

@sundb
Copy link
Collaborator

sundb commented Apr 17, 2024

@dev-jonghoonpark thanks, your contributions are welcome.

sundb added a commit that referenced this issue May 30, 2024
**Related issue**
#13219

**Motivation**
Currently we have to manually update the all_tests variable when
introducing new test files.

**Modification**
I have modified it to list test files dynamically, but instead of
modifying it to add all test files, I have modified it to only add only
test files from the following 4 paths

- unit
- unit/type
- unit/cluster
- integration

so that it doesn't deviate too much from what we already do

**Result**
- dynamically list test files to all_tests variable
- close issue #13219

**Additional information**
- removed `list-common.tcl` file and added
`generate_largevalue_test_array` proc in `util.tcl`. because
`list-common.tcl` is not a test file
- There is an order dependency. So I added a code to the "Is a ziplist
encoded Hash promoted on big payload?" test that resets
hash-max-listpack-value to the default (64).

---------

Signed-off-by: jonghoonpark <dev@jonghoonpark.com>
Co-authored-by: debing.sun <debing.sun@redis.com>
@sundb sundb linked a pull request May 30, 2024 that will close this issue
@sundb sundb closed this as completed May 30, 2024
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 a pull request may close this issue.

2 participants