Skip to content

Commit

Permalink
Merge pull request #342 from Particular/rename-previous-back
Browse files Browse the repository at this point in the history
Remove copied sources from analysis
  • Loading branch information
danielmarbach authored Nov 19, 2020
2 parents 8f539db + 24601df commit d60e246
Show file tree
Hide file tree
Showing 18 changed files with 26 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace NServiceBus.AcceptanceTests
using System.Net;
using System.Threading.Tasks;
using Microsoft.Azure.Cosmos.Table;
using Persistence.AzureTable.Previous;
using Persistence.AzureTable.Release_2x;
using Testing;

public class CompatibilityAcceptanceTest : NServiceBusAcceptanceTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NServiceBus.Persistence.AzureTable.Previous
namespace NServiceBus.Persistence.AzureTable.Release_2x
{
using System.Collections.Generic;
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NServiceBus.Persistence.AzureTable.Previous
namespace NServiceBus.Persistence.AzureTable.Release_2x
{
using System;
using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NServiceBus.Persistence.AzureTable.Previous
namespace NServiceBus.Persistence.AzureTable.Release_2x
{
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NServiceBus.Persistence.AzureTable.Previous
namespace NServiceBus.Persistence.AzureTable.Release_2x
{
using System.Collections.Generic;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NServiceBus.Persistence.AzureTable.Previous
namespace NServiceBus.Persistence.AzureTable.Release_2x
{
using System;
using Microsoft.Azure.Cosmos.Table;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
We looked at several solutions like

- Referencing the previous nuget package leveraging aliasing
- Using a dedicated repository to verify backward compatibility
- Spinning up custom app domains that load different assemblies

One of the main goals was to make sure we are backward compatible and detect it early on master so a dedicated repository was ruled out. Custom aliasing didn't work out in the same acceptance test project and spinning up custom app domains was deemed too complex so we settled with a tradeoff of copying the previous saga persister code into master. In order for the code to not trigger analysis the files have been treated as external sources and use `.g.cs` as a file extension.

The sources used only need to be updated if a patch version on the 2.4 branch introduced changes to the `DictionaryTableEntity` or the secondary index algorithm.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NServiceBus.Persistence.AzureTable.Previous
namespace NServiceBus.Persistence.AzureTable.Release_2x
{
using System.Collections.Generic;
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NServiceBus.Persistence.AzureTable.Previous
namespace NServiceBus.Persistence.AzureTable.Release_2x
{
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NServiceBus.Persistence.AzureTable.Previous
namespace NServiceBus.Persistence.AzureTable.Release_2x
{
using System;
using System.Collections.Concurrent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NServiceBus.Persistence.AzureTable.Previous
namespace NServiceBus.Persistence.AzureTable.Release_2x
{
using System;
using System.IO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NServiceBus.Persistence.AzureTable.Previous
namespace NServiceBus.Persistence.AzureTable.Release_2x
{
using System;
using System.Net;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NServiceBus.Persistence.AzureTable.Previous
namespace NServiceBus.Persistence.AzureTable.Release_2x
{
using System;
using Microsoft.Azure.Cosmos.Table;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace NServiceBus.AcceptanceTests
using EndpointTemplates;
using NUnit.Framework;
using Extensibility;
using Persistence.AzureTable.Previous;
using Persistence.AzureTable.Release_2x;
using Sagas;

public class When_migrated_saga_completed : CompatibilityAcceptanceTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace NServiceBus.AcceptanceTests
using Extensibility;
using Sagas;
using Microsoft.Azure.Cosmos.Table;
using Persistence.AzureTable.Previous;
using Persistence.AzureTable.Release_2x;
using Persistence.AzureTable;
using Pipeline;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace NServiceBus.AcceptanceTests
using EndpointTemplates;
using NUnit.Framework;
using Extensibility;
using Persistence.AzureTable.Previous;
using Persistence.AzureTable.Release_2x;
using Sagas;

public class When_saga_migrated_but_not_completed : CompatibilityAcceptanceTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace NServiceBus.AcceptanceTests
using EndpointTemplates;
using NUnit.Framework;
using Extensibility;
using Persistence.AzureTable.Previous;
using Persistence.AzureTable.Release_2x;
using Sagas;

public class When_saga_migrated_with_modified_secondary : CompatibilityAcceptanceTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace NServiceBus.AcceptanceTests
using EndpointTemplates;
using NUnit.Framework;
using Extensibility;
using Persistence.AzureTable.Previous;
using Persistence.AzureTable.Release_2x;
using Sagas;

public class When_saga_migrated_without_secondary : CompatibilityAcceptanceTest
Expand Down

0 comments on commit d60e246

Please sign in to comment.