Skip to content

Commit d9e4a74

Browse files
authored
Updates for v1.2.3 release. (#210)
1 parent 00f218c commit d9e4a74

File tree

6 files changed

+48
-7
lines changed

6 files changed

+48
-7
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Changelog
22

3-
## Unreleased
3+
## v1.2.3
44

55
### Updates
66

77
* Bump Microsoft.Data.SqlClient from 3.0.0 to 3.1.5 ([#204](https://github.com/microsoft/durabletask-mssql/pull/204))
8+
* Bump Microsoft.Azure.Functions.Worker.Extensions.Abstractions from 1.1.0 to 1.3.0
89

910
## v1.2.2
1011

src/Functions.Worker.Extensions.DurableTask.SqlServer/Functions.Worker.Extensions.DurableTask.SqlServer.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</PropertyGroup>
1818

1919
<ItemGroup>
20-
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Abstractions" Version="1.1.0" />
20+
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Abstractions" Version="1.3.0" />
2121
</ItemGroup>
2222

2323
</Project>

src/common.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<PropertyGroup>
1818
<MajorVersion>1</MajorVersion>
1919
<MinorVersion>2</MinorVersion>
20-
<PatchVersion>2</PatchVersion>
20+
<PatchVersion>3</PatchVersion>
2121
<VersionPrefix>$(MajorVersion).$(MinorVersion).$(PatchVersion)</VersionPrefix>
2222
<VersionSuffix></VersionSuffix>
2323
<AssemblyVersion>$(MajorVersion).$(MinorVersion).0.0</AssemblyVersion>

test/DurableTask.SqlServer.Tests/Integration/DatabaseManagement.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ async Task ValidateDatabaseSchemaAsync(TestDatabase database, string schemaName
504504
schemaName);
505505
Assert.Equal(1, currentSchemaVersion.Major);
506506
Assert.Equal(2, currentSchemaVersion.Minor);
507-
Assert.Equal(2, currentSchemaVersion.Patch);
507+
Assert.Equal(3, currentSchemaVersion.Patch);
508508
}
509509

510510
sealed class TestDatabase : IDisposable

test/DurableTask.SqlServer.Tests/Integration/Orchestrations.cs

+37
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,43 @@ public async Task RecreateRunningInstance()
647647
Assert.NotEqual(oldExecutionId, instance.ExecutionId);
648648
}
649649

650+
[Theory]
651+
//[InlineData(true)] // BUG: https://github.com/microsoft/durabletask-mssql/issues/148
652+
[InlineData(false)]
653+
public async Task RetryFailedSubOrchestration(bool userSpecifiedInstanceId)
654+
{
655+
string subOrchestrationName = "FlakeySubOrchestration";
656+
657+
bool firstTime = true;
658+
this.testService.RegisterInlineOrchestration<bool, string>(
659+
subOrchestrationName, implementation: (ctx, input) =>
660+
{
661+
if (firstTime)
662+
{
663+
firstTime = false;
664+
throw new ApplicationException("Kah-BOOOOOM!!!");
665+
}
666+
667+
return Task.FromResult(!firstTime);
668+
});
669+
670+
string subOrchestratorInstanceIdOrNull = userSpecifiedInstanceId ? Guid.NewGuid().ToString("N") : null;
671+
672+
TestInstance<string> parentInstance = await this.testService.RunOrchestration<bool, string>(
673+
null,
674+
"ParentOrchestration",
675+
implementation: async (ctx, input) =>
676+
{
677+
return await ctx.CreateSubOrchestrationInstanceWithRetry<bool>(
678+
name: subOrchestrationName,
679+
version: null,
680+
instanceId: subOrchestratorInstanceIdOrNull,
681+
new RetryOptions(TimeSpan.FromMilliseconds(1), maxNumberOfAttempts: 2),
682+
input: null);
683+
});
684+
await parentInstance.WaitForCompletion(expectedOutput: true);
685+
}
686+
650687
[Fact]
651688
public async Task TraceContextFlowCorrectly()
652689
{

test/setup.ps1

+6-3
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@ param(
77
[string]$tag="2019-latest",
88
[int]$port=1433,
99
[string]$dbname="DurableDB",
10-
[string]$collation="Latin1_General_100_BIN2_UTF8",
11-
[string]$additinalRunFlags=""
10+
[string]$collation="Latin1_General_100_BIN2_UTF8"
1211
)
1312

1413
Write-Host "Pulling down the mcr.microsoft.com/mssql/server:$tag image..."
1514
docker pull mcr.microsoft.com/mssql/server:$tag
1615

1716
# Start the SQL Server docker container with the specified edition
1817
Write-Host "Starting SQL Server $tag $sqlpid docker container on port $port" -ForegroundColor DarkYellow
19-
docker run $additinalRunFlags --name mssql-server -e 'ACCEPT_EULA=Y' -e "MSSQL_SA_PASSWORD=$pw" -e "MSSQL_PID=$sqlpid" -p ${port}:1433 -d mcr.microsoft.com/mssql/server:$tag
18+
docker run --name mssql-server -e ACCEPT_EULA=Y -e "MSSQL_SA_PASSWORD=$pw" -e "MSSQL_PID=$sqlpid" -p ${port}:1433 -d mcr.microsoft.com/mssql/server:$tag
19+
20+
if ($LASTEXITCODE -ne 0) {
21+
exit $LASTEXITCODE
22+
}
2023

2124
# The container needs a bit more time before it can start accepting commands
2225
Write-Host "Sleeping for 30 seconds to let the container finish initializing..." -ForegroundColor Yellow

0 commit comments

Comments
 (0)