Skip to content

Add correct exit value to failed tests - #1824

Merged
antirez merged 1 commit into
redis:unstablefrom
mattsta:fix-test-error-signal
Jun 18, 2014
Merged

antirez merged 1 commit into
redis:unstablefrom
mattsta:fix-test-error-signal

Conversation

@mattsta

@mattsta mattsta commented Jun 18, 2014

Copy link
Copy Markdown
Contributor

Sentinel tests are currently failing, but it took me a while to notice because the return value from sentinel (and cluster) testing wasn't triggering an error. I applied this commit to my travis-ci branch and now the tests show as failed.

See https://travis-ci.org/mattsta/redis (also, ci.redis.io has stopped updating again and nobody seems to notice. Adding automatic travis CI testing sure would catch a lot of problems without resorting to manual testing :octocat:)

antirez added a commit that referenced this pull request Jun 18, 2014
Add correct exit value to failed tests
@antirez
antirez merged commit 36bbfee into redis:unstable Jun 18, 2014
@antirez

antirez commented Jun 18, 2014

Copy link
Copy Markdown
Contributor

Thanks Matt, merged. What should we do to enable travis testing? Btw I'll try to setup the other test in a more reliable test as well. Let's improve Redis testing :-)

The failure is due to the fact that the client is disconnected (because of the new CLIENT KILL command sent during reconfigs) and does not have auto reconnection. I'm implementing it right now.

@mattsta

mattsta commented Jun 18, 2014

Copy link
Copy Markdown
Contributor Author

Thanks!

I've been keeping a travis config at https://github.com/mattsta/redis/commits/add-travis-ci

The top four commits in that branch add:

  • travis (just requires .travis.yml in root of repo)
  • on each push to github run make test; make test-sentinel; make test-cluster
  • runs a custom cluster creation test (30 to 40 different cluster configurations with 0 to 5 replicas). If redis-trib fails to create any of the clusters, the test fails.

Travis CI has a time limit for each test, so it's not good for running continuous valgrind or fuzzing. It is great for getting reliable Linux deployment feedback across the entire test suite and discovering compile warnings on different platforms. Tests can be added or removed just by updating the .travis.yml file and adding any supporting scripts/files (if needed).

After the .travis.yml file is in place, visit https://travis-ci.org/, login with GitHub, then enable the repository in the Travis CI interface. There's a longer how-to at http://docs.travis-ci.com/user/getting-started/

@mattsta
mattsta deleted the fix-test-error-signal branch June 18, 2014 13:27
sundb pushed a commit to sundb/redis that referenced this pull request Jul 28, 2025
Use sampling when calculating the memory usage of consumers as part of
streams in MEMORY USAGE and MEMORY STATS.

Without this fix, all consumers are traversed, which is slow if there
are very many consumers.

Fixes redis#1824

Signed-off-by: arthur.lee <[email protected]>
Signed-off-by: Jacob Murphy <[email protected]>
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.

2 participants