aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Get the redis tests working on the CI server

Open Tratcher opened this issue 12 years ago • 10 comments

We use a custom xunit test framework with the TestFramework attribute to launch a redis server for the tests to hit. This works fine locally, but doesn't work on the CI server for unknown reasons. The tests have been temporarily disabled until we can work this out.

[Test collection for Microsoft.Framework.Cache.Redis.RedisCacheSetAndRemoveTests] Microsoft.Framework.Cache.Redis.RedisCacheSetAndRemoveTests.SetAlwaysOverwrites (2s)
[Microsoft.Framework.Cache.Redis.RedisCacheSetAndRemoveTests.GetOrSetDoesNotOverwrite] 
StackExchange.Redis.RedisConnectionException : It was not possible to connect to the redis server(s); to create a disconnected multiplexer, disable AbortOnConnectFail. SocketFailure on PING
   at StackExchange.Redis.ConnectionMultiplexer.Connect(String configuration, TextWriter log) in c:\TeamCity\buildAgent\work\58bc9a6df18a3782\StackExchange.Redis\StackExchange\Redis\ConnectionMultiplexer.cs:line 738
   at Microsoft.Framework.Cache.Redis.RedisCache.Connect() in C:\BuildAgent\work\bc13a11492fdf8a8\src\Microsoft.Framework.Cache.Redis\RedisCache.cs:line 48
   at Microsoft.Framework.Cache.Redis.RedisCache.Set(String key, Object state, Action`1 create) in C:\BuildAgent\work\bc13a11492fdf8a8\src\Microsoft.Framework.Cache.Redis\RedisCache.cs:line 55
   at Microsoft.Framework.Cache.Distributed.CacheExtensions.Set(IDistributedCache cache, String key, Byte[] value) in C:\BuildAgent\work\bc13a11492fdf8a8\src\Microsoft.Framework.Cache.Distributed\CacheExtensions.cs:line 40
   at Microsoft.Framework.Cache.Redis.RedisCacheSetAndRemoveTests.GetOrSetDoesNotOverwrite() in C:\BuildAgent\work\bc13a11492fdf8a8\test\Microsoft.Framework.Cache.Redis.Tests\RedisCacheSetAndRemoveTests.cs:line 66

Tratcher avatar Oct 20 '14 17:10 Tratcher

Hi Tratcher,

Any luck on this? We are also struggling with this.

With thanks and regards, Logu

ship2moon avatar Jan 10 '15 17:01 ship2moon

No, we haven't tried.

Tratcher avatar Jan 10 '15 20:01 Tratcher

Moving this to Backlog as we will be in RC2 ask mode very soon. If you feel strongly about this issue, please ping me.

muratg avatar Jan 21 '16 22:01 muratg

Clearing milestone for re-triage. We should revisit this along with the SQL Server tests that are also skipped on CI.

natemcmaster avatar May 15 '17 23:05 natemcmaster

4 years! 😂

dcarr42 avatar Aug 20 '18 19:08 dcarr42

Small team, hundreds of open issues 😢

natemcmaster avatar Aug 20 '18 20:08 natemcmaster

We could use the docker technique we use in SignalR to automate testing on Redis.

analogrelay avatar Jun 26 '19 23:06 analogrelay

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

ghost avatar Dec 03 '20 22:12 ghost

Not high priority and has been open for 6 years.

BrennanConroy avatar Feb 03 '21 21:02 BrennanConroy

We use a custom xunit test framework with the TestFramework attribute to launch a redis server for the tests to hit. This works fine locally, but doesn't work on the CI server for unknown reasons. The tests have been temporarily disabled until we can work this out.

[Test collection for Microsoft.Framework.Cache.Redis.RedisCacheSetAndRemoveTests] Microsoft.Framework.Cache.Redis.RedisCacheSetAndRemoveTests.SetAlwaysOverwrites (2s)
[Microsoft.Framework.Cache.Redis.RedisCacheSetAndRemoveTests.GetOrSetDoesNotOverwrite] 
StackExchange.Redis.RedisConnectionException : It was not possible to connect to the redis server(s); to create a disconnected multiplexer, disable AbortOnConnectFail. SocketFailure on PING
   at StackExchange.Redis.ConnectionMultiplexer.Connect(String configuration, TextWriter log) in c:\TeamCity\buildAgent\work\58bc9a6df18a3782\StackExchange.Redis\StackExchange\Redis\ConnectionMultiplexer.cs:line 738
   at Microsoft.Framework.Cache.Redis.RedisCache.Connect() in C:\BuildAgent\work\bc13a11492fdf8a8\src\Microsoft.Framework.Cache.Redis\RedisCache.cs:line 48
   at Microsoft.Framework.Cache.Redis.RedisCache.Set(String key, Object state, Action`1 create) in C:\BuildAgent\work\bc13a11492fdf8a8\src\Microsoft.Framework.Cache.Redis\RedisCache.cs:line 55
   at Microsoft.Framework.Cache.Distributed.CacheExtensions.Set(IDistributedCache cache, String key, Byte[] value) in C:\BuildAgent\work\bc13a11492fdf8a8\src\Microsoft.Framework.Cache.Distributed\CacheExtensions.cs:line 40
   at Microsoft.Framework.Cache.Redis.RedisCacheSetAndRemoveTests.GetOrSetDoesNotOverwrite() in C:\BuildAgent\work\bc13a11492fdf8a8\test\Microsoft.Framework.Cache.Redis.Tests\RedisCacheSetAndRemoveTests.cs:line 66

wtgodbe avatar Jun 22 '23 06:06 wtgodbe