Orleans.TestingHost.TestClusterBuilder.Build() fails with PlatformNotSupportedException on Linux
- Dominant language
- C#
- Stars
- 10.9k
- Forks
- 2.1k
- Avg merge
- 14h 42m
- Merged PRs (30d)
- 354
Description
NuGet Package : https://www.nuget.org/packages/Microsoft.Orleans.TestingHost/
Version : v3.6.0
Test cases works well on Windows. while when it is running in docker container by CI. it fails.
Docker image is [docker:19.03.12](https://hub.docker.com/layers/docker/library/docker/19.03.12/images/sha256-5ed3b31d3b1e5ac2f06187bb3e1aadcb6b9b9cb5ddb18f1dc25c80ce1047acb7?context=explore)
```
System.PlatformNotSupportedException : The information requested is unavailable on the current platform.
Stack Trace:
at System.Net.NetworkInformation.StringParsingHelpers.ParseActiveTcpListenersFromFiles(String tcp4ConnectionsFile, String tcp6ConnectionsFile)
at System.Net.NetworkInformation.LinuxIPGlobalProperties.GetActiveTcpListeners()
at Orleans.TestingHost.TestClusterPortAllocator.AllocateConsecutivePortPairs(Int32 numPorts) in /_/src/Orleans.TestingHost/TestClusterPortAllocator.cs:line 22
at Orleans.TestingHost.TestClusterBuilder.ConfigureDefaultPorts() in /_/src/Orleans.TestingHost/TestClusterBuilder.cs:line 153
at Orleans.TestingHost.TestClusterBuilder.Build() in /_/src/Orleans.TestingHost/TestClusterBuilder.cs:line 119
```
```
public class TestSiloConfigurations : ISiloConfigurator
{
public void Configure(ISiloBuilder siloBuilder)
{
siloBuilder.ConfigureServices(services => {
// ...
});
siloBuilder.AddSimpleMessageStreamProvider(Constants.StreamProvider)
.UseInMemoryReminderService();
}
}
public TestSiloHost()
{
var builder = new TestClusterBuilder()
.AddSiloBuilderConfigurator();
cluster = builder.Build();
cluster.Deploy();
}
```
Contributor guide
Assessment
This issue has not been assessed yet.