Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
a43207d
Enable features that are now in the netstandard2.0 library set (but w…
transmax-open-source May 16, 2019
98680a2
Correct version numbers for Clean target #3668
transmax-open-source May 16, 2019
0e52d7a
Merge branch 'dev' into remove-1x-netcore-restriction
heatonmatthew May 17, 2019
5d6c75b
Merge branch 'dev' into remove-1x-netcore-restriction
Aaronontheweb May 21, 2019
587a396
Merge branch 'dev' into remove-1x-netcore-restriction
Aaronontheweb May 23, 2019
48929a5
Merge branch 'dev' into remove-1x-netcore-restriction
Aaronontheweb Jun 4, 2019
b25daa0
Merge branch 'dev' into remove-1x-netcore-restriction
heatonmatthew Jun 9, 2019
bf43ec0
Merge branch 'dev' into remove-1x-netcore-restriction
Aaronontheweb Jul 16, 2019
8a2abe8
Merge branch 'dev' into remove-1x-netcore-restriction
Arkatufus Apr 1, 2021
23a583e
Post-merge cleanup
Arkatufus Apr 1, 2021
bd0bd38
Merge branch 'dev' into remove-1x-netcore-restriction
Arkatufus Apr 15, 2021
47a8530
csproj and code cleanup
Arkatufus Apr 16, 2021
71e1b68
Fix Akka.Persistence.TCK outdated journal spec, original assumption w…
Arkatufus Apr 16, 2021
72d6823
Avoid hardwiring names, spec name isn't hardwired anymore.
Arkatufus Apr 16, 2021
d0008b1
Merge branch 'dev' into remove-1x-netcore-restriction
Arkatufus Apr 16, 2021
b7c7611
Merge branch 'dev' into remove-1x-netcore-restriction
Aaronontheweb Apr 16, 2021
0740894
Add serialization support to exceptions (at least for those in the Ak…
Arkatufus Apr 16, 2021
f6a5df8
Add support to wrap exceptions in custom fields for ExceptionSupport
Arkatufus Apr 16, 2021
c8c4d0b
Add spec for ExceptionSupport
Arkatufus Apr 16, 2021
5b584c1
Merge branch 'remove-1x-netcore-restriction' of github.com:heatonmatt…
Arkatufus Apr 16, 2021
3dfd0c0
Update APIApproval list
Arkatufus Apr 16, 2021
6422da1
Merge branch 'dev' into remove-1x-netcore-restriction
Arkatufus Apr 19, 2021
c34b2a6
Fix flaky spec
Arkatufus Apr 20, 2021
d0b5302
Merge branch 'dev' into remove-1x-netcore-restriction
Arkatufus Apr 22, 2021
5bb8450
Merge branch 'dev' into remove-1x-netcore-restriction
Arkatufus Apr 30, 2021
e53cc2c
Merge branch 'dev' into remove-1x-netcore-restriction
Aaronontheweb May 3, 2021
6e33872
Merge branch 'dev' into remove-1x-netcore-restriction
Arkatufus May 4, 2021
bd7e10c
Merge branch 'dev' into remove-1x-netcore-restriction
Arkatufus May 5, 2021
68cc15b
Revert "Fix flaky spec"
Arkatufus May 5, 2021
0956e76
Fix flaky tests
Arkatufus May 5, 2021
0a196e0
Merge branch 'dev' into remove-1x-netcore-restriction
Aaronontheweb May 6, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ let outputPerfTests = __SOURCE_DIRECTORY__ @@ "PerfResults"
let outputBinaries = output @@ "binaries"
let outputNuGet = output @@ "nuget"
let outputMultiNode = outputTests @@ "multinode"
let outputBinariesNet45 = outputBinaries @@ "net45"
let outputBinariesNetStandard = outputBinaries @@ "netstandard1.6"
let outputBinariesNet45 = outputBinaries @@ "net452"
let outputBinariesNetStandard = outputBinaries @@ "netstandard2.0"
Copy link
Member

Choose a reason for hiding this comment

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

build.fsx changes look fine.


let buildNumber = environVarOrDefault "BUILD_NUMBER" "0"
let hasTeamCity = (not (buildNumber = "0")) // check if we have the TeamCity environment variable for build # set
Expand Down Expand Up @@ -313,7 +313,7 @@ open Fake.TemplateHelper
Target "PublishMntr" (fun _ ->
let executableProjects = !! "./src/**/Akka.MultiNodeTestRunner.csproj"

// Windows .NET 4.5.2
// Restore
executableProjects |> Seq.iter (fun project ->
DotNetCli.Restore
(fun p ->
Expand All @@ -322,7 +322,7 @@ Target "PublishMntr" (fun _ ->
AdditionalArgs = ["-r win7-x64"; sprintf "/p:VersionSuffix=%s" versionSuffix] })
)

// Windows .NET 4.5.2
// Windows .NET 4.6.1
executableProjects |> Seq.iter (fun project ->
DotNetCli.Publish
(fun p ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public AsyncReplayTimeoutException(string message)
{
}

#if SERIALIZATION
Copy link
Member

Choose a reason for hiding this comment

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

I can't tell you how thrilled I am to get rid of this crap @heatonmatthew - so far, according to the CI system, the compiler and the test runtimes seem pretty happy with these changes so I don't have much to add on each individual change here.

/// <summary>
/// Initializes a new instance of the <see cref="AsyncReplayTimeoutException"/> class.
/// </summary>
Expand All @@ -53,7 +52,6 @@ protected AsyncReplayTimeoutException(SerializationInfo info, StreamingContext c
: base(info, context)
{
}
#endif
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
<Reference Include="System.Data.DataSetExtensions" />
</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetFrameworkLibVersion)' ">
<DefineConstants>$(DefineConstants);SERIALIZATION</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetStandardLibVersion)' ">
<DefineConstants>$(DefineConstants);CORECLR</DefineConstants>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
<ProjectReference Include="..\..\..\core\Akka.Cluster\Akka.Cluster.csproj" />
</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetFrameworkLibVersion)' ">
<DefineConstants>$(DefineConstants);SERIALIZATION</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetStandardLibVersion)' ">
<DefineConstants>$(DefineConstants);CORECLR</DefineConstants>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,6 @@ public sealed class ClusterSingletonManagerIsStuckException : AkkaException
/// <param name="message">The message that describes the error.</param>
public ClusterSingletonManagerIsStuckException(string message) : base(message) { }

#if SERIALIZATION
/// <summary>
/// Initializes a new instance of the <see cref="ClusterSingletonManagerIsStuckException"/> class.
/// </summary>
Expand All @@ -432,7 +431,6 @@ public ClusterSingletonManagerIsStuckException(string message) : base(message) {
public ClusterSingletonManagerIsStuckException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
#endif
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
<PackageReference Include="Hyperion" Version="$(HyperionVersion)" />
</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetFrameworkLibVersion)' ">
<DefineConstants>$(DefineConstants);SERIALIZATION;CLONABLE</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetStandardLibVersion)' ">
<DefineConstants>$(DefineConstants);CORECLR</DefineConstants>
</PropertyGroup>
Expand Down
2 changes: 0 additions & 2 deletions src/contrib/cluster/Akka.DistributedData/Durable/Messages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,9 @@ public LoadFailedException(string message, Exception cause) : base(message, caus
{
}

#if SERIALIZATION
public LoadFailedException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
#endif
}

public sealed class DurableDataEnvelope : IReplicatorMessage, IEquatable<DurableDataEnvelope>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
<ProjectReference Include="..\..\..\core\Akka\Akka.csproj" />
</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetFrameworkLibVersion)' ">
<DefineConstants>$(DefineConstants);APPDOMAIN</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetStandardLibVersion)' ">
<DefineConstants>$(DefineConstants);CORECLR</DefineConstants>
</PropertyGroup>
Expand Down
24 changes: 0 additions & 24 deletions src/contrib/dependencyinjection/Akka.DI.Core/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
using System.Reflection;
using Akka.Actor;

#if CORECLR
using Microsoft.Extensions.DependencyModel;
#endif
namespace Akka.DI.Core
{
/// <summary>
Expand Down Expand Up @@ -78,28 +75,7 @@ public static Type GetTypeValue(this string typeName)
/// <returns>The list of loaded assemblies</returns>
private static IEnumerable<Assembly> GetLoadedAssemblies()
{
#if APPDOMAIN
return AppDomain.CurrentDomain.GetAssemblies();
#elif CORECLR
var assemblies = new List<Assembly>();
var dependencies = DependencyContext.Default.RuntimeLibraries;
foreach (var library in dependencies)
{
try
{
var assembly = Assembly.Load(new AssemblyName(library.Name));
assemblies.Add(assembly);
}
catch
{
//do nothing can't if can't load assembly
}
}
return assemblies;
#else
#warning Method not implemented
throw new NotImplementedException();
#endif
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
<ProjectReference Include="..\..\testkits\Akka.TestKit.Xunit2\Akka.TestKit.Xunit2.csproj" />
</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'net452' ">
<DefineConstants>$(DefineConstants);APPDOMAIN</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetStandardLibVersion)' ">
<DefineConstants>$(DefineConstants);CORECLR</DefineConstants>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
<Reference Include="System.Xml.Linq" />
</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetFrameworkLibVersion)' ">
<DefineConstants>$(DefineConstants);SERIALIZATION</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetStandardLibVersion)' ">
<DefineConstants>$(DefineConstants);CORECLR</DefineConstants>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetFrameworkLibVersion)' ">
<DefineConstants>$(DefineConstants);SERIALIZATION;CONFIGURATION</DefineConstants>
<DefineConstants>$(DefineConstants);CONFIGURATION</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetStandardLibVersion)' ">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
<PackageReference Include="FluentAssertions" Version="$(FluentAssertionsVersion)" />
</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetFrameworkLibVersion)' ">
<DefineConstants>$(DefineConstants);SERIALIZATION</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetStandardLibVersion)' ">
<DefineConstants>$(DefineConstants);CORECLR</DefineConstants>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetFrameworkLibVersion)' ">
<DefineConstants>$(DefineConstants);SERIALIZATION</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DefineConstants>$(DefineConstants);RELEASE</DefineConstants>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
<ProjectReference Include="..\..\..\core\Akka.Tests.Shared.Internals\Akka.Tests.Shared.Internals.csproj" />
</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'net452' ">
<DefineConstants>$(DefineConstants);SERIALIZATION</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DefineConstants>$(DefineConstants);RELEASE</DefineConstants>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public AkkaEqualException(object expected, object actual, string format = "", pa
_args = args;
}

#if SERIALIZATION
/// <summary>
/// Initializes a new instance of the <see cref="AkkaEqualException"/> class.
/// </summary>
Expand All @@ -43,7 +42,7 @@ protected AkkaEqualException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
#endif

/// <summary>
/// The message that describes the error.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public AkkaEqualException(object expected, object actual, string format = "", pa
_args = args;
}

#if SERIALIZATION
/// <summary>
/// Initializes a new instance of the <see cref="AkkaEqualException"/> class.
/// </summary>
Expand All @@ -43,7 +42,7 @@ protected AkkaEqualException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
#endif

/// <summary>
/// The message that describes the error.
/// </summary>
Expand Down
4 changes: 0 additions & 4 deletions src/core/Akka.Cluster.TestKit/Akka.Cluster.TestKit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
<ProjectReference Include="..\Akka.Cluster\Akka.Cluster.csproj" />
</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetFrameworkLibVersion)' ">
<DefineConstants>$(DefineConstants);SERIALIZATION</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetStandardLibVersion)' ">
<DefineConstants>$(DefineConstants);CORECLR</DefineConstants>
</PropertyGroup>
Expand Down
4 changes: 0 additions & 4 deletions src/core/Akka.Cluster/Akka.Cluster.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
<ProjectReference Include="..\Akka.Remote\Akka.Remote.csproj" />
</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetFrameworkLibVersion)' ">
<DefineConstants>$(DefineConstants);SERIALIZATION</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetStandardLibVersion)' ">
<DefineConstants>$(DefineConstants);CORECLR</DefineConstants>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
// </auto-generated>
// ------------------------------------------------------------------------------

#if CORECLR
using Akka.MultiNodeTestRunner.Shared.Extensions;
#endif

namespace Akka.MultiNodeTestRunner.Shared.Persistence
{
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
using System.Linq;
using Akka.Actor;
using Akka.Event;
#if CORECLR
using Akka.MultiNodeTestRunner.Shared.Extensions;
#endif
using Akka.MultiNodeTestRunner.Shared.Reporting;

namespace Akka.MultiNodeTestRunner.Shared.Sinks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,7 @@ private void PublishToChildren(RunnerMessage message)
{
foreach (var sink in Sinks)
{
#if CORECLR
sink.LogRunnerMessage(message.Message, Assembly.GetEntryAssembly().GetName().Name, LogLevel.InfoLevel);
#else
sink.LogRunnerMessage(message.Message, Assembly.GetExecutingAssembly().GetName().Name, LogLevel.InfoLevel);
#endif
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
using System.Threading.Tasks;
using Akka.Actor;
using Akka.Event;
#if CORECLR
using Akka.MultiNodeTestRunner.Shared.Extensions;
#endif
using Akka.MultiNodeTestRunner.Shared.Reporting;
using JetBrains.TeamCity.ServiceMessages;
using JetBrains.TeamCity.ServiceMessages.Write.Special;
Expand Down
23 changes: 0 additions & 23 deletions src/core/Akka.MultiNodeTestRunner/Discovery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@

namespace Akka.MultiNodeTestRunner
{
#if CORECLR
public class Discovery : IMessageSink, IDisposable
#else
public class Discovery : MarshalByRefObject, IMessageSink, IDisposable
#endif
{
public Dictionary<string, List<NodeTest>> Tests { get; set; }
public List<ErrorMessage> Errors { get; } = new List<ErrorMessage>();
Expand All @@ -48,12 +44,8 @@ public virtual bool OnMessage(IMessageSinkMessage message)
case ITestCaseDiscoveryMessage testCaseDiscoveryMessage:
var testClass = testCaseDiscoveryMessage.TestClass.Class;
if (testClass.IsAbstract) return true;
#if CORECLR
var specType = testCaseDiscoveryMessage.TestAssembly.Assembly.GetType(testClass.Name).ToRuntimeType();
#else
var testAssembly = Assembly.LoadFrom(testCaseDiscoveryMessage.TestAssembly.Assembly.AssemblyPath);
var specType = testAssembly.GetType(testClass.Name);
#endif
var roles = RoleNames(specType);

var details = roles.Select((r, i) => new NodeTest
Expand Down Expand Up @@ -106,20 +98,11 @@ internal static ConstructorInfo FindConfigConstructor(Type configUser)
var current = configUser;
while (current != null)
{

#if CORECLR
var ctorWithConfig = current
Copy link
Member

Choose a reason for hiding this comment

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

I think this is probably fine, but I'll need to see the feedback from the MNTR for certain

.GetConstructors(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance)
.FirstOrDefault(c => null != c.GetParameters().FirstOrDefault(p => p.ParameterType.GetTypeInfo().IsSubclassOf(baseConfigType)));

current = current.GetTypeInfo().BaseType;
#else
var ctorWithConfig = current
.GetConstructors(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance)
.FirstOrDefault(c => null != c.GetParameters().FirstOrDefault(p => p.ParameterType.IsSubclassOf(baseConfigType)));

current = current.BaseType;
#endif
if (ctorWithConfig != null) return ctorWithConfig;
}

Expand All @@ -131,15 +114,9 @@ private object[] ConfigConstructorParamValues(Type configType)
var ctors = configType.GetConstructors(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance);
var empty = ctors.FirstOrDefault(c => !c.GetParameters().Any());

#if CORECLR
return empty != null
? new object[0]
: ctors.First().GetParameters().Select(p => p.ParameterType.GetTypeInfo().IsValueType ? Activator.CreateInstance(p.ParameterType) : null).ToArray();
#else
return empty != null
? new object[0]
: ctors.First().GetParameters().Select(p => p.ParameterType.IsValueType ? Activator.CreateInstance(p.ParameterType) : null).ToArray();
#endif
}

/// <inheritdoc/>
Expand Down
8 changes: 0 additions & 8 deletions src/core/Akka.Persistence.Query/Akka.Persistence.Query.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@
<ProjectReference Include="..\Akka.Streams\Akka.Streams.csproj" />
</ItemGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetFrameworkLibVersion)' ">
<DefineConstants>$(DefineConstants);SERIALIZATION</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetStandardLibVersion)' ">
<DefineConstants>$(DefineConstants)</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DefineConstants>$(DefineConstants);RELEASE</DefineConstants>
</PropertyGroup>
Expand Down
Loading