Skip to content

Commit

Permalink
Skip slow versioning test and update vuln dep (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
cretz authored Jul 10, 2024
1 parent 4a6d4a0 commit 1fceb0b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Temporalio/Temporalio.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<ItemGroup Condition="'$(TargetFramework)' == 'net462' Or '$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.Bcl.HashCode" Version="1.1.1" />
<PackageReference Include="System.Text.Json" Version="6.0.7" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
</ItemGroup>

<!-- Allow tests to use internals -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ public async Task TemporalWorkerService_ExecuteAsync_MultipleWorkers()
["scoped-other2"] = $"tq: {taskQueue2}, counter: 6",
},
result);
}

}

[Workflow]
public class TickingWorkflow
{
Expand All @@ -221,7 +221,7 @@ public async Task RunAsync()
}
}
}


[Fact]
public async Task TemporalWorkerService_WorkerClientReplacement_UsesNewClient()
{
Expand Down Expand Up @@ -265,7 +265,7 @@ public async Task TemporalWorkerService_WorkerClientReplacement_UsesNewClient()
// Start the host
using var tokenSource = new CancellationTokenSource();
using var host = bld.Build();
var hostTask = Task.Run(() => host.RunAsync(tokenSource.Token));
var hostTask = Task.Run(() => host.RunAsync(tokenSource.Token));

// Confirm the first ticking workflow has completed a task but not the second workflow
await AssertMore.HasEventEventuallyAsync(handle1, e => e.WorkflowTaskCompletedEventAttributes != null);
Expand Down Expand Up @@ -300,9 +300,13 @@ public class WorkflowV2
public async Task<string> RunAsync() => "done-v2";
}

[Fact]
[SkippableFact]
public async Task TemporalWorkerService_ExecuteAsync_MultipleVersionsSameQueue()
{
// This only applies to legacy versioning and therefore is ok to skip (and remove in the
// future)
throw new SkipException("Since 1.24 this test is slow because legacy versioning has a known slowdown");
#pragma warning disable IDE0035, CS0162 // We know the below is now dead code
var taskQueue = $"tq-{Guid.NewGuid()}";
// Build with two workers on same queue but different versions
var bld = Host.CreateApplicationBuilder();
Expand Down

0 comments on commit 1fceb0b

Please sign in to comment.