Skip to content
Closed
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 @@ -1746,7 +1746,10 @@ async Task GenerateAsync(string label, string? reference)
arguments.AddRange(["--template-repository-ref", reference]);
}

var exitCode = await provider.GetRequiredService<RootCommand>().Parse(arguments.ToArray()).InvokeAsync().DefaultTimeout();
// Fresh checkouts run real git init/fetch/checkout, which take 23-27s on loaded Windows
// runners. The product bounds each Git phase at two minutes, so a 30s hang guard is too tight.
var exitCode = await provider.GetRequiredService<RootCommand>().Parse(arguments.ToArray()).InvokeAsync()
.DefaultTimeout(TestConstants.LongTimeoutTimeSpan);
outputHelper.WriteLine($"[{DateTimeOffset.UtcNow:O}] Generation '{label}' returned {exitCode} after {stopwatch.Elapsed}.");

Assert.Equal(CliExitCodes.Success, exitCode);
Expand Down
Loading