Skip to content

Commit

Permalink
Move to central package management (#283)
Browse files Browse the repository at this point in the history
Also: Make tests run serially to improve reliability
  • Loading branch information
cgillum authored Jan 23, 2025
1 parent ee4a99c commit 7fb737a
Show file tree
Hide file tree
Showing 19 changed files with 30 additions and 23 deletions.
Binary file added Directory.Packages.props
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="3.0.0" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/DurableTask.SqlServer/DurableTask.SqlServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.DurableTask.Core" Version="3.*" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="3.1.5" />
<PackageReference Include="SemanticVersion" Version="2.1.0" />
<PackageReference Include="System.Threading.Channels" Version="4.7.1" />
<PackageReference Include="Microsoft.Azure.DurableTask.Core" />
<PackageReference Include="Microsoft.Data.SqlClient" />
<PackageReference Include="SemanticVersion" />
<PackageReference Include="System.Threading.Channels" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Abstractions" Version="1.3.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Abstractions" />
</ItemGroup>

<!-- This tells the .NET Isolated Worker SDK which WebJobs extension this package depends on -->
Expand Down
2 changes: 1 addition & 1 deletion src/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.*" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace DurableTask.SqlServer.AzureFunctions.Tests
using Xunit;
using Xunit.Abstractions;

[Collection("CoreScenarios")]
[Collection("Integration")]
public class CoreScenarios : IntegrationTestBase
{
protected CoreScenarios(ITestOutputHelper output, string taskHubName, bool multiTenancy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.*" />
<PackageReference Include="xunit" Version="2.5.*" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.*" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.runner.visualstudio" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ protected async Task<DurableOrchestrationStatus> StartOrchestrationAsync(
return status;
}


protected async Task StartOrchestrationWithoutWaitingAsync(
string name,
object? input = null,
Expand All @@ -177,9 +176,9 @@ protected async Task StartOrchestrationWithoutWaitingAsync(
IDurableClient client = this.GetDurableClient(taskHub ?? this.taskHubName);
instanceId = await client.StartNewAsync(name, instanceId ?? Guid.NewGuid().ToString("N"), input);


Assert.NotNull(instanceId);
}

protected async Task<DurableOrchestrationStatus> RewindOrchestrationAsync(string instanceId)
{
IDurableClient client = this.GetDurableClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace DurableTask.SqlServer.AzureFunctions.Tests
using Xunit;
using Xunit.Abstractions;

[Collection("Integration")]
public class WithoutMultiTenancyCoreScenarios : CoreScenarios
{
public WithoutMultiTenancyCoreScenarios(ITestOutputHelper output)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.EventSource" Version="6.0.*" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.*" />
<PackageReference Include="Microsoft.SqlServer.SqlManagementObjects" Version="170.8.0" />
<PackageReference Include="Moq" Version="4.16.*" />
<PackageReference Include="OpenTelemetry.Exporter.InMemory" Version="1.6.0" />
<PackageReference Include="xunit" Version="2.5.*" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.*" />
<PackageReference Include="Microsoft.Extensions.Logging.EventSource" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Microsoft.SqlServer.SqlManagementObjects" />
<PackageReference Include="Moq" />
<PackageReference Include="OpenTelemetry.Exporter.InMemory" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.runner.visualstudio" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace DurableTask.SqlServer.Tests.Integration
using Xunit;
using Xunit.Abstractions;

[Collection("Integration")]
public class DataRetentionTests : IAsyncLifetime
{
readonly TestService testService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace DurableTask.SqlServer.Tests.Integration
using Xunit;
using Xunit.Abstractions;

[Collection("Integration")]
public class DatabaseManagement
{
readonly TestLogProvider logProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace DurableTask.SqlServer.Tests.Integration
using Xunit;
using Xunit.Abstractions;

[Collection("Integration")]
public class FaultTesting : IAsyncLifetime
{
readonly TestService testService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace DurableTask.SqlServer.Tests.Integration
using Xunit;
using Xunit.Abstractions;

[Collection("Integration")]
public class LegacyErrorPropagation : IAsyncLifetime
{
readonly TestService testService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ namespace DurableTask.SqlServer.Tests.Integration
using Xunit;
using Xunit.Abstractions;

[Collection("Integration")]
public class Orchestrations : IAsyncLifetime
{
readonly TestService testService;
Expand Down
1 change: 1 addition & 0 deletions test/DurableTask.SqlServer.Tests/Integration/ScaleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ namespace DurableTask.SqlServer.Tests.Integration
using Xunit;
using Xunit.Abstractions;

[Collection("Integration")]
public class ScaleTests : IAsyncLifetime
{
readonly TestService testService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace DurableTask.SqlServer.Tests.Integration
/// tests and therefore may not be appropriate for all CI or rapid testing scenarios.
/// </summary>
[Trait("Category", "Stress")]
[Collection("Integration")]
public class StressTests : IAsyncLifetime
{
readonly TestService testService;
Expand Down
2 changes: 1 addition & 1 deletion test/PerformanceTests/PerformanceTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.0.*" />
<PackageReference Include="Microsoft.NET.Sdk.Functions" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\DurableTask.SqlServer.AzureFunctions\DurableTask.SqlServer.AzureFunctions.csproj" />
Expand Down
4 changes: 2 additions & 2 deletions tools/TestDBGenerator/TestDBGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

<ItemGroup>
<!-- Change this version to create databases with different versions -->
<PackageReference Include="Microsoft.DurableTask.SqlServer" Version="1.0.0" />
<PackageReference Include="Microsoft.DurableTask.SqlServer" VersionOverride="1.0.0" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SqlServer.SqlManagementObjects" Version="170.8.0" />
<PackageReference Include="Microsoft.SqlServer.SqlManagementObjects" />
</ItemGroup>

</Project>

0 comments on commit 7fb737a

Please sign in to comment.