Skip to content
Merged
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
6 changes: 3 additions & 3 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
"isRoot": true,
"tools": {
"dotnet-stryker": {
"version": "5.0.0",
"version": "5.1.0",
"commands": [
"dotnet-stryker"
],
"rollForward": false
},
"jetbrains.resharper.globaltools": {
"version": "2026.2.4.1",
"version": "2026.3.0",
"commands": [
"jb"
],
"rollForward": false
},
"dotnet-ef": {
"version": "10.0.14",
"version": "11.0.0",
"commands": [
"dotnet-ef"
],
Expand Down
24 changes: 12 additions & 12 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<ItemGroup>
<!-- Packages -->
<PackageVersion Include="Discord.Net" Version="3.20.2" />
<PackageVersion Include="Microsoft.AspNetCore.DataProtection" Version="10.0.14" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.14" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.14" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.14" />
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="10.0.14" />
<PackageVersion Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.14" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.14" />
<PackageVersion Include="Microsoft.AspNetCore.DataProtection" Version="11.0.0" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.15" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.15" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="11.0.0" />
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="11.0.0" />
<PackageVersion Include="Microsoft.Extensions.Hosting.Abstractions" Version="11.0.0" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="11.0.0" />
<PackageVersion Include="Persistord.Core" Version="1.0.0-beta.3" />
<PackageVersion Include="Persistord.Managed" Version="1.0.0-beta.3" />
<PackageVersion Include="RustMapsApi" Version="1.0.0-beta.4" />
Expand All @@ -22,8 +22,8 @@
<PackageVersion Include="Serilog.Settings.Configuration" Version="10.0.1" />
<PackageVersion Include="Serilog.Sinks.Console" Version="6.1.1" />
<PackageVersion Include="Serilog.Sinks.File" Version="7.0.0" />
<PackageVersion Include="SkiaSharp" Version="4.155.0" />
<PackageVersion Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="4.155.0" />
<PackageVersion Include="SkiaSharp" Version="4.156.1" />
<PackageVersion Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="4.156.1" />
<!-- Pinned to override the transitive 2.1.11 pulled by Microsoft.EntityFrameworkCore.Sqlite,
whose bundled SQLite is vulnerable to CVE-2025-6965 (GHSA-2m69-gcr7-jv3q). 3.0.x bundles
SQLite >= 3.50.2. Drop once EF Core ships a build that depends on a patched SQLitePCLRaw. -->
Expand All @@ -32,7 +32,7 @@
</ItemGroup>
<ItemGroup>
<!-- Test + sample -->
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.11.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.12.0" />
<PackageVersion Include="coverlet.collector" Version="10.1.0" />
<PackageVersion Include="JunitXml.TestLogger" Version="8.1.0" />
<PackageVersion Include="xunit" Version="2.9.3" />
Expand All @@ -43,10 +43,10 @@
</ItemGroup>
<ItemGroup>
<!-- Analyzers -->
<PackageVersion Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.403" />
<PackageVersion Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="11.0.100" />
<PackageVersion Include="Microsoft.VisualStudio.Threading.Analyzers" Version="18.12.1" />
<PackageVersion Include="Roslynator.Analyzers" Version="5.0.1" />
<PackageVersion Include="Roslynator.Formatting.Analyzers" Version="5.0.1" />
<PackageVersion Include="SonarAnalyzer.CSharp" Version="10.35.0.4138" />
<PackageVersion Include="SonarAnalyzer.CSharp" Version="10.36.0.15337" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ internal sealed record AfkPollContext(DateTimeOffset Clock, TimeSpan Threshold,
internal sealed class TeamStateTracker
{
private readonly HashSet<ulong> _afk = [];
private readonly object _gate = new();
private readonly Lock _gate = new();
private readonly Dictionary<ulong, DateTimeOffset> _stillSince = [];
private Dictionary<ulong, TeamMemberSnapshot>? _baseline;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ public async Task StopAsync_JoinsTheLoopsRatherThanReturningMidHandler()
// Cancelling alone cannot end a loop that is mid-handler, so a StopAsync that joins its loop
// tasks can never complete here however long we wait — which is what makes waiting sound rather
// than a timing assumption. One that did not join would return as soon as the cancel landed.
await Task.WhenAny(stop, Task.Delay(TimeSpan.FromSeconds(2)));
using var window = new CancellationTokenSource();
await Task.WhenAny(stop, Task.Delay(TimeSpan.FromSeconds(2), window.Token));
await window.CancelAsync(); // Don't leave the timer running if StopAsync won the race.
Assert.False(stop.IsCompleted, "StopAsync returned while a handler was still in flight");

release.SetResult();
Expand Down
Loading