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

24
src/Plugin/AGENTS.md Normal file
View File

@@ -0,0 +1,24 @@
# AGENTS - Plugin Module
## Working Directory
- `src/Plugin/**` (plugin registry, host, sandbox, SDK, tests).
## Required Reading
- `docs/README.md`
- `docs/07_HIGH_LEVEL_ARCHITECTURE.md`
- `docs/modules/platform/architecture-overview.md`
- `docs/modules/release-orchestrator/README.md`
- `docs/modules/release-orchestrator/modules/plugin-system.md`
- `docs/modules/sdk/README.md`
## Engineering Rules
- Deterministic plugin discovery and manifest processing.
- Sandbox and capability checks must fail closed.
- No network access during tests; use local fixtures.
## Testing & Verification
- Tests live in `src/Plugin/__Tests/**`.
- Cover registry, sandbox, and SDK compatibility scenarios.
## Sprint Discipline
- Record plugin contract changes in sprint Decisions & Risks and docs.

View File

@@ -0,0 +1,8 @@
# StellaOps.Plugin.Samples.HelloWorld.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/Plugin/Samples/StellaOps.Plugin.Samples.HelloWorld.Tests/StellaOps.Plugin.Samples.HelloWorld.Tests.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -1,10 +1,11 @@
namespace StellaOps.Plugin.Samples.HelloWorld;
using StellaOps.Plugin.Abstractions;
using StellaOps.Plugin.Abstractions.Context;
using StellaOps.Plugin.Abstractions.Health;
using StellaOps.Plugin.Sdk;
namespace StellaOps.Plugin.Samples.HelloWorld;
/// <summary>
/// Sample HelloWorld plugin demonstrating SDK usage patterns.
/// This plugin shows how to:

View File

@@ -0,0 +1,8 @@
# StellaOps.Plugin.Samples.HelloWorld 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/Plugin/Samples/StellaOps.Plugin.Samples.HelloWorld/StellaOps.Plugin.Samples.HelloWorld.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -0,0 +1,8 @@
# StellaOps.Plugin.Abstractions 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/Plugin/StellaOps.Plugin.Abstractions/StellaOps.Plugin.Abstractions.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -1,6 +1,7 @@
using System.Text.Json;
using StellaOps.Plugin.Abstractions.Context;
using StellaOps.Plugin.Abstractions.Manifest;
using System.Text.Json;
namespace StellaOps.Plugin.Host.Context;

View File

@@ -1,3 +1,4 @@
using Microsoft.Extensions.Logging;
using StellaOps.Plugin.Abstractions.Context;

View File

@@ -1,8 +1,9 @@
using System.Reflection;
using Microsoft.Extensions.Logging;
using StellaOps.Plugin.Abstractions;
using StellaOps.Plugin.Abstractions.Attributes;
using StellaOps.Plugin.Abstractions.Manifest;
using System.Reflection;
namespace StellaOps.Plugin.Host.Discovery;

View File

@@ -1,6 +1,7 @@
using System.Text.Json;
using Microsoft.Extensions.Logging;
using StellaOps.Plugin.Abstractions.Manifest;
using System.Text.Json;
using YamlDotNet.Serialization;
using YamlDotNet.Serialization.NamingConventions;

View File

@@ -1,9 +1,10 @@
using System.Collections.Concurrent;
using System.Diagnostics;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using StellaOps.Plugin.Abstractions.Execution;
using StellaOps.Plugin.Abstractions.Health;
using System.Collections.Concurrent;
using System.Diagnostics;
namespace StellaOps.Plugin.Host.Health;

View File

@@ -1,6 +1,7 @@
using System.Collections.Concurrent;
using Microsoft.Extensions.Logging;
using StellaOps.Plugin.Abstractions.Lifecycle;
using System.Collections.Concurrent;
namespace StellaOps.Plugin.Host.Lifecycle;

View File

@@ -1,9 +1,10 @@
using System.Collections.Concurrent;
using System.Reflection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using StellaOps.Plugin.Abstractions;
using StellaOps.Plugin.Abstractions.Manifest;
using System.Collections.Concurrent;
using System.Reflection;
namespace StellaOps.Plugin.Host.Loading;

View File

@@ -1,6 +1,7 @@
using System.Reflection;
using StellaOps.Plugin.Abstractions;
using StellaOps.Plugin.Abstractions.Manifest;
using System.Reflection;
namespace StellaOps.Plugin.Host.Loading;

View File

@@ -1,4 +1,4 @@
using System.Collections.Concurrent;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using StellaOps.Plugin.Abstractions;
@@ -11,6 +11,7 @@ using StellaOps.Plugin.Host.Discovery;
using StellaOps.Plugin.Host.Health;
using StellaOps.Plugin.Host.Lifecycle;
using StellaOps.Plugin.Host.Loading;
using System.Collections.Concurrent;
namespace StellaOps.Plugin.Host;

View File

@@ -0,0 +1,8 @@
# StellaOps.Plugin.Host 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/Plugin/StellaOps.Plugin.Host/StellaOps.Plugin.Host.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -1,9 +1,10 @@
using System.Text.Json;
using StellaOps.Plugin.Abstractions;
using StellaOps.Plugin.Abstractions.Execution;
using StellaOps.Plugin.Abstractions.Health;
using StellaOps.Plugin.Abstractions.Lifecycle;
using StellaOps.Plugin.Registry.Models;
using System.Text.Json;
namespace StellaOps.Plugin.Registry;

View File

@@ -1,11 +1,12 @@
using System.Collections.Concurrent;
using System.Text.Json;
using Microsoft.Extensions.Logging;
using StellaOps.Plugin.Abstractions;
using StellaOps.Plugin.Abstractions.Execution;
using StellaOps.Plugin.Abstractions.Health;
using StellaOps.Plugin.Abstractions.Lifecycle;
using StellaOps.Plugin.Registry.Models;
using System.Collections.Concurrent;
using System.Text.Json;
namespace StellaOps.Plugin.Registry;

View File

@@ -1,5 +1,6 @@
using System.Text.Json;
using StellaOps.Plugin.Abstractions.Health;
using System.Text.Json;
namespace StellaOps.Plugin.Registry.Models;

View File

@@ -1,7 +1,8 @@
using System.Text.Json;
using StellaOps.Plugin.Abstractions;
using StellaOps.Plugin.Abstractions.Health;
using StellaOps.Plugin.Abstractions.Lifecycle;
using System.Text.Json;
namespace StellaOps.Plugin.Registry.Models;

View File

@@ -1,7 +1,8 @@
using System.Reflection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Npgsql;
using System.Reflection;
namespace StellaOps.Plugin.Registry;

View File

@@ -1,5 +1,4 @@
using System.Globalization;
using System.Text.Json;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Npgsql;
@@ -9,6 +8,8 @@ using StellaOps.Plugin.Abstractions.Health;
using StellaOps.Plugin.Abstractions.Lifecycle;
using StellaOps.Plugin.Abstractions.Manifest;
using StellaOps.Plugin.Registry.Models;
using System.Globalization;
using System.Text.Json;
namespace StellaOps.Plugin.Registry;

View File

@@ -0,0 +1,8 @@
# StellaOps.Plugin.Registry 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/Plugin/StellaOps.Plugin.Registry/StellaOps.Plugin.Registry.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -1,8 +1,9 @@
using System.Text.Json;
using Grpc.Core;
using Grpc.Net.Client;
using Microsoft.Extensions.Logging;
using StellaOps.Plugin.Abstractions.Health;
using System.Text.Json;
namespace StellaOps.Plugin.Sandbox.Communication;

View File

@@ -1,8 +1,9 @@
using Microsoft.Extensions.Logging;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Net;
using System.Text.RegularExpressions;
using Microsoft.Extensions.Logging;
namespace StellaOps.Plugin.Sandbox.Network;

View File

@@ -1,6 +1,7 @@
using System.Diagnostics;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using System.Diagnostics;
using SystemProcess = System.Diagnostics.Process;
namespace StellaOps.Plugin.Sandbox.Process;

View File

@@ -1,4 +1,4 @@
using System.Runtime.CompilerServices;
using Microsoft.Extensions.Logging;
using StellaOps.Plugin.Abstractions.Health;
using StellaOps.Plugin.Abstractions.Manifest;
@@ -7,6 +7,7 @@ using StellaOps.Plugin.Sandbox.Filesystem;
using StellaOps.Plugin.Sandbox.Network;
using StellaOps.Plugin.Sandbox.Process;
using StellaOps.Plugin.Sandbox.Resources;
using System.Runtime.CompilerServices;
using SystemProcess = System.Diagnostics.Process;
namespace StellaOps.Plugin.Sandbox;

View File

@@ -1,5 +1,6 @@
using System.Globalization;
using Microsoft.Extensions.Logging;
using System.Globalization;
using SystemProcess = System.Diagnostics.Process;
namespace StellaOps.Plugin.Sandbox.Resources;

View File

@@ -1,7 +1,8 @@
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using Microsoft.Extensions.Logging;
using Microsoft.Win32.SafeHandles;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using SystemProcess = System.Diagnostics.Process;
namespace StellaOps.Plugin.Sandbox.Resources;

View File

@@ -0,0 +1,8 @@
# StellaOps.Plugin.Sandbox 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/Plugin/StellaOps.Plugin.Sandbox/StellaOps.Plugin.Sandbox.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -1,11 +1,12 @@
namespace StellaOps.Plugin.Sdk;
using Microsoft.Extensions.Logging;
using StellaOps.Plugin.Abstractions;
using StellaOps.Plugin.Abstractions.Context;
using StellaOps.Plugin.Abstractions.Health;
using StellaOps.Plugin.Abstractions.Lifecycle;
namespace StellaOps.Plugin.Sdk;
/// <summary>
/// Base class for simplified plugin development.
/// Provides common patterns and reduces boilerplate.

View File

@@ -1,8 +1,9 @@
namespace StellaOps.Plugin.Sdk;
using StellaOps.Plugin.Abstractions.Context;
using System.Diagnostics;
using System.Globalization;
using StellaOps.Plugin.Abstractions.Context;
namespace StellaOps.Plugin.Sdk;
/// <summary>
/// Extension methods for common plugin operations.

View File

@@ -1,6 +1,7 @@
using StellaOps.Plugin.Abstractions;
namespace StellaOps.Plugin.Sdk;
using StellaOps.Plugin.Abstractions;
/// <summary>
/// Fluent builder for creating PluginInfo.

View File

@@ -1,6 +1,7 @@
using System.ComponentModel.DataAnnotations;
namespace StellaOps.Plugin.Sdk;
using System.ComponentModel.DataAnnotations;
/// <summary>
/// Options base class with validation support.

View File

@@ -0,0 +1,8 @@
# StellaOps.Plugin.Sdk 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/Plugin/StellaOps.Plugin.Sdk/StellaOps.Plugin.Sdk.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -0,0 +1,8 @@
# StellaOps.Plugin.Testing 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/Plugin/StellaOps.Plugin.Testing/StellaOps.Plugin.Testing.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -0,0 +1,8 @@
# StellaOps.Plugin.Abstractions.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/Plugin/__Tests/StellaOps.Plugin.Abstractions.Tests/StellaOps.Plugin.Abstractions.Tests.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -0,0 +1,8 @@
# StellaOps.Plugin.Host.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/Plugin/__Tests/StellaOps.Plugin.Host.Tests/StellaOps.Plugin.Host.Tests.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -0,0 +1,8 @@
# StellaOps.Plugin.Registry.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/Plugin/__Tests/StellaOps.Plugin.Registry.Tests/StellaOps.Plugin.Registry.Tests.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -0,0 +1,8 @@
# StellaOps.Plugin.Sandbox.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/Plugin/__Tests/StellaOps.Plugin.Sandbox.Tests/StellaOps.Plugin.Sandbox.Tests.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -0,0 +1,8 @@
# StellaOps.Plugin.Sdk.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/Plugin/__Tests/StellaOps.Plugin.Sdk.Tests/StellaOps.Plugin.Sdk.Tests.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |