stabilize tests

This commit is contained in:
master
2026-02-01 21:37:40 +02:00
parent 55744f6a39
commit 5d5e80b2e4
6435 changed files with 33984 additions and 13802 deletions

View File

@@ -0,0 +1,24 @@
# AGENTS - PacksRegistry Module
## Working Directory
- `src/PacksRegistry/**` (core, persistence, WebService, Worker, tests).
## Required Reading
- `docs/README.md`
- `docs/07_HIGH_LEVEL_ARCHITECTURE.md`
- `docs/modules/platform/architecture-overview.md`
- `docs/modules/packs-registry/architecture.md`
- `docs/modules/packs-registry/README.md`
- `docs/modules/packs-registry/guides/spec.md`
## Engineering Rules
- Deterministic pack ingestion and indexing.
- Validate signatures and fail closed on invalid packs.
- Offline-first; no network calls in tests.
## Testing & Verification
- Tests live in `src/PacksRegistry/__Tests/**`.
- Cover pack validation, registry API, and persistence.
## Sprint Discipline
- Record pack contract changes in sprint Decisions & Risks.

View File

@@ -1,6 +1,7 @@
using System.Security.Cryptography;
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
using System.Security.Cryptography;
namespace StellaOps.PacksRegistry.Core.Services;

View File

@@ -1,8 +1,9 @@
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
using System.IO.Compression;
using System.Text.Json;
using System.Text.Json.Serialization;
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
namespace StellaOps.PacksRegistry.Core.Services;

View File

@@ -1,7 +1,8 @@
using System.Security.Cryptography;
using System.Text;
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
using System.Security.Cryptography;
using System.Text;
namespace StellaOps.PacksRegistry.Core.Services;

View File

@@ -8,3 +8,4 @@ Source of truth: `docs-archived/implplan/2025-12-29-csproj-audit/SPRINT_20251229
| AUDIT-0427-M | DONE | Revalidated 2026-01-07; maintainability audit for StellaOps.PacksRegistry.Core. |
| AUDIT-0427-T | DONE | Revalidated 2026-01-07; test coverage audit for StellaOps.PacksRegistry.Core. |
| AUDIT-0427-A | TODO | Revalidated 2026-01-07 (open findings). |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -1,6 +1,7 @@
using System.Text.Json;
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
using System.Text.Json;
namespace StellaOps.PacksRegistry.Infrastructure.FileSystem;

View File

@@ -1,6 +1,7 @@
using System.Text.Json;
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
using System.Text.Json;
namespace StellaOps.PacksRegistry.Infrastructure.FileSystem;

View File

@@ -1,6 +1,7 @@
using System.Text.Json;
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
using System.Text.Json;
namespace StellaOps.PacksRegistry.Infrastructure.FileSystem;

View File

@@ -1,6 +1,7 @@
using System.Text.Json;
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
using System.Text.Json;
namespace StellaOps.PacksRegistry.Infrastructure.FileSystem;

View File

@@ -1,6 +1,7 @@
using System.Text.Json;
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
using System.Text.Json;
namespace StellaOps.PacksRegistry.Infrastructure.FileSystem;

View File

@@ -1,6 +1,7 @@
using System.Text.Json;
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
using System.Text.Json;
namespace StellaOps.PacksRegistry.Infrastructure.FileSystem;

View File

@@ -1,6 +1,7 @@
using System.Collections.Concurrent;
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
using System.Collections.Concurrent;
namespace StellaOps.PacksRegistry.Infrastructure.InMemory;

View File

@@ -1,6 +1,7 @@
using System.Collections.Concurrent;
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
using System.Collections.Concurrent;
namespace StellaOps.PacksRegistry.Infrastructure.InMemory;

View File

@@ -1,6 +1,7 @@
using System.Collections.Concurrent;
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
using System.Collections.Concurrent;
namespace StellaOps.PacksRegistry.Infrastructure.InMemory;

View File

@@ -1,6 +1,7 @@
using System.Collections.Concurrent;
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
using System.Collections.Concurrent;
namespace StellaOps.PacksRegistry.Infrastructure.InMemory;

View File

@@ -1,6 +1,7 @@
using System.Collections.Concurrent;
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
using System.Collections.Concurrent;
namespace StellaOps.PacksRegistry.Infrastructure.InMemory;

View File

@@ -1,6 +1,7 @@
using System.Collections.Concurrent;
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
using System.Collections.Concurrent;
namespace StellaOps.PacksRegistry.Infrastructure.InMemory;

View File

@@ -8,3 +8,4 @@ Source of truth: `docs-archived/implplan/2025-12-29-csproj-audit/SPRINT_20251229
| AUDIT-0428-M | DONE | Revalidated 2026-01-07; maintainability audit for StellaOps.PacksRegistry.Infrastructure. |
| AUDIT-0428-T | DONE | Revalidated 2026-01-07; test coverage audit for StellaOps.PacksRegistry.Infrastructure. |
| AUDIT-0428-A | TODO | Revalidated 2026-01-07 (open findings). |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -1,6 +1,7 @@
using StellaOps.PacksRegistry.Core.Contracts;
using System.Security.Cryptography;
using System.Text;
using StellaOps.PacksRegistry.Core.Contracts;
namespace StellaOps.PacksRegistry.Infrastructure.Verification;

View File

@@ -1,6 +1,7 @@
using StellaOps.PacksRegistry.Core.Contracts;
using System.Security.Cryptography;
using System.Text;
using StellaOps.PacksRegistry.Core.Contracts;
namespace StellaOps.PacksRegistry.Infrastructure.Verification;

View File

@@ -8,3 +8,4 @@ Source of truth: `docs-archived/implplan/2025-12-29-csproj-audit/SPRINT_20251229
| AUDIT-0430-M | DONE | Revalidated 2026-01-07; maintainability audit for StellaOps.PacksRegistry.Persistence.EfCore. |
| AUDIT-0430-T | DONE | Revalidated 2026-01-07; test coverage audit for StellaOps.PacksRegistry.Persistence.EfCore. |
| AUDIT-0430-A | TODO | Revalidated 2026-01-07 (open findings). |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -8,3 +8,4 @@ Source of truth: `docs-archived/implplan/2025-12-29-csproj-audit/SPRINT_20251229
| AUDIT-0432-M | DONE | Revalidated 2026-01-07; maintainability audit for StellaOps.PacksRegistry.Tests. |
| AUDIT-0432-T | DONE | Revalidated 2026-01-07; test coverage audit for StellaOps.PacksRegistry.Tests. |
| AUDIT-0432-A | DONE | Waived (test project; revalidated 2026-01-07). |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
using Microsoft.Extensions.FileProviders;
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
using StellaOps.PacksRegistry.Core.Services;
@@ -7,8 +8,8 @@ using StellaOps.PacksRegistry.Infrastructure.Verification;
using StellaOps.PacksRegistry.WebService;
using StellaOps.PacksRegistry.WebService.Contracts;
using StellaOps.PacksRegistry.WebService.Options;
using Microsoft.Extensions.FileProviders;
using StellaOps.Router.AspNet;
using System.Text.Json.Serialization;
var builder = WebApplication.CreateBuilder(args);

View File

@@ -8,3 +8,4 @@ Source of truth: `docs-archived/implplan/2025-12-29-csproj-audit/SPRINT_20251229
| AUDIT-0433-M | DONE | Revalidated 2026-01-07; maintainability audit for StellaOps.PacksRegistry.WebService. |
| AUDIT-0433-T | DONE | Revalidated 2026-01-07; test coverage audit for StellaOps.PacksRegistry.WebService. |
| AUDIT-0433-A | TODO | Revalidated 2026-01-07 (open findings). |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -8,3 +8,4 @@ Source of truth: `docs-archived/implplan/2025-12-29-csproj-audit/SPRINT_20251229
| AUDIT-0434-M | DONE | Revalidated 2026-01-07; maintainability audit for StellaOps.PacksRegistry.Worker. |
| AUDIT-0434-T | DONE | Revalidated 2026-01-07; test coverage audit for StellaOps.PacksRegistry.Worker. |
| AUDIT-0434-A | TODO | Revalidated 2026-01-07 (open findings). |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -1,9 +1,10 @@
using System.Text.Json;
using Microsoft.Extensions.Logging;
using Npgsql;
using StellaOps.Infrastructure.Postgres.Repositories;
using StellaOps.PacksRegistry.Core.Contracts;
using StellaOps.PacksRegistry.Core.Models;
using System.Text.Json;
namespace StellaOps.PacksRegistry.Persistence.Postgres.Repositories;

View File

@@ -8,3 +8,4 @@ Source of truth: `docs-archived/implplan/2025-12-29-csproj-audit/SPRINT_20251229
| AUDIT-0429-M | DONE | Revalidated 2026-01-07; maintainability audit for StellaOps.PacksRegistry.Persistence. |
| AUDIT-0429-T | DONE | Revalidated 2026-01-07; test coverage audit for StellaOps.PacksRegistry.Persistence. |
| AUDIT-0429-A | TODO | Revalidated 2026-01-07 (open findings). |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -8,3 +8,4 @@ Source of truth: `docs-archived/implplan/2025-12-29-csproj-audit/SPRINT_20251229
| AUDIT-0431-M | DONE | Revalidated 2026-01-07; maintainability audit for StellaOps.PacksRegistry.Persistence.Tests. |
| AUDIT-0431-T | DONE | Revalidated 2026-01-07; test coverage audit for StellaOps.PacksRegistry.Persistence.Tests. |
| AUDIT-0431-A | DONE | Waived (test project; revalidated 2026-01-07). |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |