Skip to content

Commit

Permalink
Increment versions (to v1.2.2) (#202)
Browse files Browse the repository at this point in the history
* Also updated schema version validation in test code
  • Loading branch information
cgillum authored Dec 18, 2023
1 parent 63727fe commit 4adc14b
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,24 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Setup .NET 6
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
env:
NUGET_AUTH_TOKEN: RequiredButNotUsed

- name: NuGet Restore
run: dotnet restore -v n

- name: Build
run: dotnet build

- name: Setup SQL Server container
run: test/setup.ps1
shell: pwsh

- name: Durable framework tests
run: dotnet test --no-build --verbosity normal --filter Category!=Stress ./test/DurableTask.SqlServer.Tests/DurableTask.SqlServer.Tests.csproj
- name: Functions runtime tests
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

(Add new notes here)

## v1.2.2

### Updates

* Fix for NewEvents stuck due to InvalidCastException ([#201](https://github.com/microsoft/durabletask-mssql/pull/201))
* Fix Functions.Worker.Extensions.DurableTask.SqlServer to reference correct DurableTask.SqlServer.AzureFunctions package ([#202](https://github.com/microsoft/durabletask-mssql/pull/202))

## v1.2.1

### New
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
using Microsoft.Azure.Functions.Worker.Extensions.Abstractions;

// This must be updated when updating the version of the package
[assembly: ExtensionInformation("Microsoft.DurableTask.SqlServer.AzureFunctions", "1.1.*", true)]
[assembly: ExtensionInformation("Microsoft.DurableTask.SqlServer.AzureFunctions", "1.2.*", true)]
2 changes: 1 addition & 1 deletion src/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<PropertyGroup>
<MajorVersion>1</MajorVersion>
<MinorVersion>2</MinorVersion>
<PatchVersion>1</PatchVersion>
<PatchVersion>2</PatchVersion>
<VersionPrefix>$(MajorVersion).$(MinorVersion).$(PatchVersion)</VersionPrefix>
<VersionSuffix></VersionSuffix>
<AssemblyVersion>$(MajorVersion).$(MinorVersion).0.0</AssemblyVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ async Task ValidateDatabaseSchemaAsync(TestDatabase database, string schemaName
schemaName);
Assert.Equal(1, currentSchemaVersion.Major);
Assert.Equal(2, currentSchemaVersion.Minor);
Assert.Equal(1, currentSchemaVersion.Patch);
Assert.Equal(2, currentSchemaVersion.Patch);
}

sealed class TestDatabase : IDisposable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,8 @@ public async Task TraceContextFlowCorrectly()
Assert.NotEqual(orchestratorSpan.SpanId, subOrchestratorSpan.SpanId); // new span ID
Assert.Equal("TestTraceState (modified!)", subOrchestratorSpan.TraceStateString);
Assert.True(subOrchestratorSpan.StartTimeUtc > orchestratorSpan.StartTimeUtc + delay);
Assert.True(subOrchestratorSpan.Duration > delay);
Assert.True(subOrchestratorSpan.Duration < delay * 2);
Assert.True(subOrchestratorSpan.Duration > delay, $"Unexpected duration: {subOrchestratorSpan.Duration}");
Assert.True(subOrchestratorSpan.Duration < delay * 2, $"Unexpected duration: {subOrchestratorSpan.Duration}");

// Validate the activity span, which should be a subset of the sub-orchestration span
Activity activitySpan = exportedItems.LastOrDefault(
Expand Down

0 comments on commit 4adc14b

Please sign in to comment.