Skip to content
Open
Show file tree
Hide file tree
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
29 changes: 18 additions & 11 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,24 @@
<PackageVersion Include="Humanizer.Core" Version="3.0.10" />
<PackageVersion Include="NuGet.Versioning" Version="7.9.0" />
<!-- ktsu packages -->
<PackageVersion Include="ktsu.IntervalAction" Version="1.4.6" />
<PackageVersion Include="ktsu.AppDataStorage" Version="1.18.0" />
<PackageVersion Include="ktsu.Coder" Version="3.18.9" />
<PackageVersion Include="ktsu.Extensions" Version="1.9.1" />
<PackageVersion Include="ktsu.GitIntegration" Version="4.1.3" />
<PackageVersion Include="ktsu.RunCommand" Version="1.9.3" />
<PackageVersion Include="ktsu.Frontmatter" Version="1.4.0" />
<PackageVersion Include="ktsu.TextFilter" Version="1.7.11" />
<PackageVersion Include="ktsu.Semantics.Paths" Version="5.11.0" />
<PackageVersion Include="ktsu.Semantics.Strings" Version="5.11.0" />
<PackageVersion Include="ktsu.CredentialCache" Version="1.3.59" />
<PackageVersion Include="ktsu.IntervalAction" Version="1.6.0" />
<PackageVersion Include="ktsu.AppDataStorage" Version="1.18.1" />
<PackageVersion Include="ktsu.Coder" Version="3.18.14" />
<PackageVersion Include="ktsu.Extensions" Version="1.9.2" />
<PackageVersion Include="ktsu.GitIntegration" Version="4.1.6" />
<PackageVersion Include="ktsu.RunCommand" Version="1.9.5" />
<PackageVersion Include="ktsu.Frontmatter" Version="1.4.4" />
<PackageVersion Include="ktsu.TextFilter" Version="1.7.13" />
<PackageVersion Include="ktsu.Semantics.Paths" Version="5.11.3" />
<PackageVersion Include="ktsu.Semantics.Strings" Version="5.11.3" />
<PackageVersion Include="ktsu.CredentialCache" Version="1.3.62" />
<!-- Not used directly. ktsu.GitIntegration (through 4.1.9) depends on
ktsu.Essentials.FileSystemProviders.Native 2.0.0, built against
Testably.Abstractions.FileSystem.Interface 10.0.0. ktsu.AppDataStorage 1.18.1 raises that
interface to 10.4.0, which adds IFileSystem.RandomAccess, so the 2.0.0 provider fails to
load with TypeLoadException. 2.10.7 is built against 10.4.0. Drop this once GitIntegration
depends on a matching Essentials. -->
<PackageVersion Include="ktsu.Essentials.FileSystemProviders.Native" Version="2.10.7" />
<!-- SDK-required packages -->
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="10.0.401" />
<PackageVersion Include="Microsoft.SourceLink.AzureRepos.Git" Version="10.0.401" />
Expand Down
2 changes: 1 addition & 1 deletion KtsuTools.BuildMonitor/BuildMonitorService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{
if (!gitHubService.IsAuthenticated)
{
string token = AnsiConsole.Prompt(

Check warning on line 31 in KtsuTools.BuildMonitor/BuildMonitorService.cs

View workflow job for this annotation

GitHub Actions / ci / .NET / Analyze & Release

Await PromptAsync instead.

Check warning on line 31 in KtsuTools.BuildMonitor/BuildMonitorService.cs

View workflow job for this annotation

GitHub Actions / ci / .NET / Analyze & Release

Await PromptAsync instead.
new TextPrompt<string>("Enter GitHub personal access token:")
.Secret());
await gitHubService.InitializeAsync(token, ct).ConfigureAwait(false);
Expand All @@ -53,7 +53,7 @@
ctx.UpdateTarget(table);
}
catch (OperationCanceledException)
{

Check warning on line 56 in KtsuTools.BuildMonitor/BuildMonitorService.cs

View workflow job for this annotation

GitHub Actions / ci / .NET / Analyze & Release

Either remove or fill this block of code.

Check warning on line 56 in KtsuTools.BuildMonitor/BuildMonitorService.cs

View workflow job for this annotation

GitHub Actions / ci / .NET / Analyze & Release

Either remove or fill this block of code.
}
catch (HttpRequestException ex)
{
Expand All @@ -75,10 +75,10 @@
await Task.Delay(Timeout.InfiniteTimeSpan, ct).ConfigureAwait(false);
}
catch (OperationCanceledException)
{

Check warning on line 78 in KtsuTools.BuildMonitor/BuildMonitorService.cs

View workflow job for this annotation

GitHub Actions / ci / .NET / Analyze & Release

Either remove or fill this block of code.

Check warning on line 78 in KtsuTools.BuildMonitor/BuildMonitorService.cs

View workflow job for this annotation

GitHub Actions / ci / .NET / Analyze & Release

Either remove or fill this block of code.
}

ticker.Stop();
await ticker.StopAsync().ConfigureAwait(false);
}).ConfigureAwait(false);
}

Expand All @@ -101,7 +101,7 @@
table.AddColumn("Started");
table.AddColumn("Duration");

foreach (GitHubRepository repo in repos)

Check warning on line 104 in KtsuTools.BuildMonitor/BuildMonitorService.cs

View workflow job for this annotation

GitHub Actions / ci / .NET / Analyze & Release

Loop should be simplified by calling Select(repo => repo.Name)

Check warning on line 104 in KtsuTools.BuildMonitor/BuildMonitorService.cs

View workflow job for this annotation

GitHub Actions / ci / .NET / Analyze & Release

Loop should be simplified by calling Select(repo => repo.Name)
{
try
{
Expand Down
2 changes: 2 additions & 0 deletions KtsuTools.Core/KtsuTools.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<PackageReference Include="Spectre.Console.Ansi" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
<PackageReference Include="ktsu.GitIntegration" />
<!-- Lifts GitIntegration's provider to one built against the Testably interface in use; see Directory.Packages.props -->
<PackageReference Include="ktsu.Essentials.FileSystemProviders.Native" />
<PackageReference Include="Octokit" />
<PackageReference Include="ktsu.AppDataStorage" />
<PackageReference Include="ktsu.CredentialCache" />
Expand Down
2 changes: 1 addition & 1 deletion KtsuTools.Machine/MachineMonitorService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ await AnsiConsole.Live(initial)
{
}

ticker.Stop();
await ticker.StopAsync().ConfigureAwait(false);
}).ConfigureAwait(false);
}
finally
Expand Down
2 changes: 1 addition & 1 deletion KtsuTools.MemFrag/MemFragService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
public class MemFragService
{
#pragma warning disable CA1822 // Mark members as static - instance method required for DI injection
public async Task<int> ScanAsync(int processId, CancellationToken ct = default)

Check warning on line 24 in KtsuTools.MemFrag/MemFragService.cs

View workflow job for this annotation

GitHub Actions / ci / .NET / Analyze & Release

Make 'ScanAsync' a static method.
#pragma warning restore CA1822
{
ct.ThrowIfCancellationRequested();
Expand Down Expand Up @@ -120,10 +120,10 @@
await Task.Delay(Timeout.InfiniteTimeSpan, exitedCts.Token).ConfigureAwait(false);
}
catch (OperationCanceledException)
{

Check warning on line 123 in KtsuTools.MemFrag/MemFragService.cs

View workflow job for this annotation

GitHub Actions / ci / .NET / Analyze & Release

Either remove or fill this block of code.
}

ticker.Stop();
await ticker.StopAsync().ConfigureAwait(false);
}).ConfigureAwait(false);
}

Expand Down
Loading