Closed voxik closed 1 year ago
would it be possible to run most of the parts of the test suite without Toxiproxy and use Toxiproxy only when necessary?
On paper yes, but it means connecting to a different port when you do need it, which makes the test suite much more convoluted.
So I'd rather not bother with this complexity.
There's also the question of the value of getting a green build if you skip what I consider to be very important tests. At this point why even bother running the test suite?
I'll close this as I don't plan to make any change here. If you feel strongly about it and can come up with a PR that doesn't make the test suite particularly more complex, I'll seriously consider it.
would it be possible to run most of the parts of the test suite without Toxiproxy and use Toxiproxy only when necessary?
On paper yes, but it means connecting to a different port when you do need it, which makes the test suite much more convoluted.
So I'd rather not bother with this complexity.
That is understandable.
There's also the question of the value of getting a green build if you skip what I consider to be very important tests. At this point why even bother running the test suite?
Well, for downstream distribution, I think it is always better to run at least some tests then no test at all. No tests is the worst scenario. And currently, there seems to be ~330 test cases and ~20 failing due to missing Toxiproxy. I still believe that the test result is quite representative and for the rest, I will trust upstream that the library does what it is supposed to do. I think that 99.9% of users who directly downloads this library just "trusts", so I still believe that we do much better in Fedora.
I'll close this as I don't plan to make any change here. If you feel strongly about it and can come up with a PR that doesn't make the test suite particularly more complex, I'll seriously consider it.
No worries. I'll deal with it somehow. ATM, I'll do something like:
sed -i '/Toxiproxy\[/i\
skip' test/redis_client/connection_test.rb
considering to write some Toxiproxy mock just to avoid the need of changing the files.
Of course, the ideal state would be to have Toxiproxy in Fedora, but that would be too big detour unfortunately. I can just hope that community will find Toxiproxy valuable enough to bring it into Fedora and make this discussion moot.
Trying to package redis-client for Fedora, there is no Toxiproxy available in Fedora and there is more reasons why it is not really feasible to have it "somehow" available just for the tests. While it seems that currently most of the test cases are directed towards Toxiproxy, they could IMHO run directly against Redis. E.g. this test fails without Toxyproxy available:
But just simple change of ports such as:
Let the test case succeed:
So I wonder, would it be possible to run most of the parts of the test suite without Toxiproxy and use Toxiproxy only when necessary?