Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,15 @@ async Task ExecuteRampTest()
// Set current version to v1 and ramp v2 to 100%
var conflictToken = (await TestUtils.SetCurrentDeploymentVersionAsync(
Client, describeResp.ConflictToken, v1)).ConflictToken;

await TestUtils.WaitForRoutingConfigPropagationAsync(Client, deploymentName, v1.BuildId);

conflictToken = (await TestUtils.SetRampingVersionAsync(
Client, conflictToken, v2, 100)).ConflictToken;

await TestUtils.WaitForRoutingConfigPropagationAsync(
Client, deploymentName, v1.BuildId, v2.BuildId);

// Run workflows and verify they run on v2
for (int i = 0; i < 3; i++)
{
Expand All @@ -210,6 +216,10 @@ async Task ExecuteRampTest()

// Set ramp to 0, expecting workflows to run on v1
conflictToken = (await TestUtils.SetRampingVersionAsync(Client, conflictToken, v2, 0)).ConflictToken;

await TestUtils.WaitForRoutingConfigPropagationAsync(
Client, deploymentName, v1.BuildId, v2.BuildId);

for (int i = 0; i < 3; i++)
{
var wfa = await Client.StartWorkflowAsync(
Expand All @@ -223,6 +233,9 @@ async Task ExecuteRampTest()
// Set ramp to 50 and eventually verify workflows run on both versions
await TestUtils.SetRampingVersionAsync(Client, conflictToken, v2, 50);

await TestUtils.WaitForRoutingConfigPropagationAsync(
Client, deploymentName, v1.BuildId, v2.BuildId);

var seenResults = new HashSet<string>();

async Task<string> RunAndRecord()
Expand Down
Loading