Add past project meeting summary tools
PR and Push Build/Test / build-and-test (push) Failing after 10m56s

This commit is contained in:
2026-05-29 10:30:48 +02:00
parent 9d2153484a
commit 626640e26b
16 changed files with 695 additions and 109 deletions
+32 -20
View File
@@ -27,26 +27,7 @@ public sealed class ProcessCommandRunner : ICommandRunner
CancellationToken cancellationToken,
IReadOnlyDictionary<string, string>? environment = null)
{
var startInfo = new ProcessStartInfo
{
FileName = fileName,
RedirectStandardOutput = true,
RedirectStandardError = true,
UseShellExecute = false
};
foreach (var argument in arguments)
{
startInfo.ArgumentList.Add(argument);
}
if (environment is not null)
{
foreach (var (key, value) in environment)
{
startInfo.Environment[key] = value;
}
}
var startInfo = CreateStartInfo(fileName, arguments, environment);
logger.LogInformation("Running command {Command} {Arguments}", fileName, string.Join(' ', arguments));
using var process = Process.Start(startInfo)
@@ -82,6 +63,37 @@ public sealed class ProcessCommandRunner : ICommandRunner
return result;
}
internal static ProcessStartInfo CreateStartInfo(
string fileName,
IReadOnlyList<string> arguments,
IReadOnlyDictionary<string, string>? environment = null)
{
var startInfo = new ProcessStartInfo
{
FileName = fileName,
RedirectStandardOutput = true,
RedirectStandardError = true,
UseShellExecute = false,
CreateNoWindow = true,
WindowStyle = ProcessWindowStyle.Hidden
};
foreach (var argument in arguments)
{
startInfo.ArgumentList.Add(argument);
}
if (environment is not null)
{
foreach (var (key, value) in environment)
{
startInfo.Environment[key] = value;
}
}
return startInfo;
}
private static async Task<string> ReadLinesAsync(
StreamReader reader,
Action<string> log,