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

Improve tests stability #17

Merged
merged 27 commits into from
Sep 5, 2019
Merged

Improve tests stability #17

merged 27 commits into from
Sep 5, 2019

Conversation

kardapoltsev
Copy link
Collaborator

@kardapoltsev kardapoltsev commented Feb 24, 2019

It's still WIP. Any feedback would be useful :)

@kardapoltsev kardapoltsev force-pushed the wip/improve-tests branch 4 times, most recently from 9592c1c to 69338db Compare February 24, 2019 06:25
@coveralls
Copy link

coveralls commented Feb 24, 2019

Pull Request Test Coverage Report for Build 99

  • 34 of 41 (82.93%) changed or added relevant lines in 1 file are covered.
  • 9 unchanged lines in 5 files lost coverage.
  • Overall coverage decreased (-0.2%) to 90.426%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/scala/redis/RedisPool.scala 34 41 82.93%
Files with Coverage Reduction New Missed Lines %
src/main/scala/redis/RedisCommand.scala 1 88.89%
src/main/scala/redis/RedisPool.scala 1 75.32%
src/main/scala/redis/Sentinel.scala 1 75.61%
src/main/scala/redis/actors/RedisSubscriberActor.scala 2 78.79%
src/main/scala/redis/Redis.scala 4 78.05%
Totals Coverage Status
Change from base Build 73: -0.2%
Covered Lines: 1464
Relevant Lines: 1619

💛 - Coveralls

@kardapoltsev
Copy link
Collaborator Author

kardapoltsev commented Feb 24, 2019

Now it looks that we have an issue with SentinelMutablePoolSpec only. But it might be not a test issue but a bug in the main code.

@Ma27
Copy link
Owner

Ma27 commented Feb 24, 2019

Whoa! Thansk a lot for all the work! I skimmed through the changes on my phone and this seems fine. I'll do a more detailed review next week 👍

@kardapoltsev kardapoltsev changed the title WIP on tests stability Improve tests stability Feb 25, 2019
@kardapoltsev
Copy link
Collaborator Author

Two tests are still fail sometimes but now builds seem to be more stable https://travis-ci.org/kardapoltsev/rediscala/builds.
cc @Ma27

@kardapoltsev
Copy link
Collaborator Author

@Ma27 ping

@Ma27
Copy link
Owner

Ma27 commented May 2, 2019

@kardapoltsev yeah sorry, forgot about that. I'll have a look at this next weekend :)

@kardapoltsev
Copy link
Collaborator Author

Any updates?

Copy link
Owner

@Ma27 Ma27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First of all thanks a lot for the hard work and sorry that I didn't review earlier...

Apart from my comments the code seems fine. When those are fixed, I'd test the suite locally and merge after that.

scmInfo := Some(ScmInfo(url("https://github.com/Ma27/rediscala"), "scm:git:git@github.com:Ma27/rediscala.git")),
apiURL := Some(url("http://etaty.github.io/rediscala/latest/api/")),
pomExtra :=
<developers>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not directly a review comment, but it would be great if you could those minor task in a separate PR in the future, that makes the diff easier to read :)


def redisServerConnections: scala.collection.Map[RedisServer, RedisConnection]
protected val log = Logging.getLogger(system, this)
protected def redisServerConnections: scala.collection.Map[RedisServer, RedisConnection]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless I'm mistaken, declaring an existing property as protected probably breaks backwards-compatibility. Are there any technical reasons? I'll probably find some more issues, but I'd prefer to get this merged without having to release a new major release.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it must not be public initially. Ok, I'll revert this changes.

def onConnect(redis: RedisCommands, server: RedisServer): Unit = {
server.password.foreach(redis.auth(_)) // TODO log on auth failure
server.db.foreach(redis.select)
private def onConnect(redis: RedisCommands, server: RedisServer): Unit = {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

src/test/resources/application.conf Show resolved Hide resolved
src/test/scala/redis/RedisProcess.scala Show resolved Hide resolved
@Ma27
Copy link
Owner

Ma27 commented Jun 14, 2019

@kardapoltsev first of all, sorry again for me being so unresponsive recently. Is there anything else I can do to get this ready?

@herzrasen in case you have time - would you like to have a look at this as well?

@Ma27 Ma27 mentioned this pull request Jun 14, 2019
@herzrasen
Copy link

Generally LGTM. I'd like to keep the visibility of the defs as they were before, because we might break backwards compatibility, as you said @Ma27

@kardapoltsev
Copy link
Collaborator Author

Hi @ALL! I'm finally back now. Is there anything except visibility for merging? I think we should move forward with this project :)

@Ma27
Copy link
Owner

Ma27 commented Sep 5, 2019

So, just pushed this branch onto this repo and it seems as the build is fine now. Not exactly sure (probably a caching issue on their side as some old code was checked out according to the build logs). I'll remove my commits again from thsi branch, after this I'd consider this mergable.

Copy link
Owner

@Ma27 Ma27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for doing this!

@Ma27 Ma27 merged commit 1c0b455 into Ma27:master Sep 5, 2019
@Ma27
Copy link
Owner

Ma27 commented Sep 5, 2019

@kardapoltsev thanks!

@Ma27 Ma27 mentioned this pull request Sep 5, 2019
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.

None yet

4 participants