stabilize tests
This commit is contained in:
@@ -6,8 +6,10 @@ using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||
using StellaOps.ReachGraph.Cache;
|
||||
using StellaOps.ReachGraph.Hashing;
|
||||
using StellaOps.ReachGraph.Persistence;
|
||||
using StellaOps.ReachGraph.Schema;
|
||||
using StellaOps.ReachGraph.Serialization;
|
||||
using StackExchange.Redis;
|
||||
using System.Collections.Concurrent;
|
||||
|
||||
@@ -60,11 +62,12 @@ internal sealed class InMemoryReachGraphRepository : IReachGraphRepository
|
||||
private readonly ConcurrentDictionary<string, List<string>> _byArtifact = new();
|
||||
private readonly ConcurrentDictionary<string, List<string>> _byCve = new();
|
||||
private readonly List<ReplayLogEntry> _replayLog = new();
|
||||
private readonly ReachGraphDigestComputer _digestComputer = new(new CanonicalReachGraphSerializer());
|
||||
|
||||
public Task<StoreResult> StoreAsync(ReachGraphMinimal graph, string tenantId, CancellationToken ct)
|
||||
{
|
||||
ct.ThrowIfCancellationRequested();
|
||||
var digest = $"blake3:{Guid.NewGuid():N}";
|
||||
var digest = _digestComputer.ComputeDigest(graph);
|
||||
var key = MakeKey(tenantId, digest);
|
||||
var isNew = _graphs.TryAdd(key, (graph, DateTimeOffset.UtcNow));
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# StellaOps.ReachGraph.WebService.Tests Task Board
|
||||
This board mirrors active sprint tasks for this module.
|
||||
Source of truth: `docs/implplan/SPRINT_20260130_002_Tools_csproj_remediation_solid_review.md`.
|
||||
|
||||
| Task ID | Status | Notes |
|
||||
| --- | --- | --- |
|
||||
| REMED-05 | TODO | Remediation checklist: docs/implplan/audits/csproj-standards/remediation/checklists/src/ReachGraph/__Tests/StellaOps.ReachGraph.WebService.Tests/StellaOps.ReachGraph.WebService.Tests.md. |
|
||||
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |
|
||||
Reference in New Issue
Block a user