up the blokcing tasks
Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
Notify Smoke Test / Notifier Service Tests (push) Has been cancelled
Notify Smoke Test / Notification Smoke Test (push) Has been cancelled
Notify Smoke Test / Notify Unit Tests (push) Has been cancelled
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
Manifest Integrity / Validate Schema Integrity (push) Has been cancelled
Manifest Integrity / Validate Contract Documents (push) Has been cancelled
Manifest Integrity / Validate Pack Fixtures (push) Has been cancelled
Manifest Integrity / Audit SHA256SUMS Files (push) Has been cancelled
Manifest Integrity / Verify Merkle Roots (push) Has been cancelled
Policy Lint & Smoke / policy-lint (push) Has been cancelled
Risk Bundle CI / risk-bundle-build (push) Has been cancelled
Scanner Analyzers / Discover Analyzers (push) Has been cancelled
Scanner Analyzers / Validate Test Fixtures (push) Has been cancelled
Risk Bundle CI / risk-bundle-offline-kit (push) Has been cancelled
Risk Bundle CI / publish-checksums (push) Has been cancelled
Scanner Analyzers / Build Analyzers (push) Has been cancelled
Scanner Analyzers / Test Language Analyzers (push) Has been cancelled
Scanner Analyzers / Verify Deterministic Output (push) Has been cancelled
devportal-offline / build-offline (push) Has been cancelled
Mirror Thin Bundle Sign & Verify / mirror-sign (push) Has been cancelled
Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
Notify Smoke Test / Notifier Service Tests (push) Has been cancelled
Notify Smoke Test / Notification Smoke Test (push) Has been cancelled
Notify Smoke Test / Notify Unit Tests (push) Has been cancelled
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
Manifest Integrity / Validate Schema Integrity (push) Has been cancelled
Manifest Integrity / Validate Contract Documents (push) Has been cancelled
Manifest Integrity / Validate Pack Fixtures (push) Has been cancelled
Manifest Integrity / Audit SHA256SUMS Files (push) Has been cancelled
Manifest Integrity / Verify Merkle Roots (push) Has been cancelled
Policy Lint & Smoke / policy-lint (push) Has been cancelled
Risk Bundle CI / risk-bundle-build (push) Has been cancelled
Scanner Analyzers / Discover Analyzers (push) Has been cancelled
Scanner Analyzers / Validate Test Fixtures (push) Has been cancelled
Risk Bundle CI / risk-bundle-offline-kit (push) Has been cancelled
Risk Bundle CI / publish-checksums (push) Has been cancelled
Scanner Analyzers / Build Analyzers (push) Has been cancelled
Scanner Analyzers / Test Language Analyzers (push) Has been cancelled
Scanner Analyzers / Verify Deterministic Output (push) Has been cancelled
devportal-offline / build-offline (push) Has been cancelled
Mirror Thin Bundle Sign & Verify / mirror-sign (push) Has been cancelled
This commit is contained in:
@@ -72,7 +72,9 @@ public enum ChaosFaultType
|
||||
AuthFailure,
|
||||
Timeout,
|
||||
PartialFailure,
|
||||
Intermittent
|
||||
Intermittent,
|
||||
ErrorResponse,
|
||||
CorruptResponse
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -115,52 +115,6 @@ public sealed record ChaosExperimentConfig
|
||||
public required string InitiatedBy { get; init; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Types of faults that can be injected.
|
||||
/// </summary>
|
||||
public enum ChaosFaultType
|
||||
{
|
||||
/// <summary>
|
||||
/// Complete outage - all requests fail.
|
||||
/// </summary>
|
||||
Outage,
|
||||
|
||||
/// <summary>
|
||||
/// Partial failure - percentage of requests fail.
|
||||
/// </summary>
|
||||
PartialFailure,
|
||||
|
||||
/// <summary>
|
||||
/// Latency injection - requests are delayed.
|
||||
/// </summary>
|
||||
Latency,
|
||||
|
||||
/// <summary>
|
||||
/// Intermittent failures - random failures.
|
||||
/// </summary>
|
||||
Intermittent,
|
||||
|
||||
/// <summary>
|
||||
/// Rate limiting - throttle requests.
|
||||
/// </summary>
|
||||
RateLimit,
|
||||
|
||||
/// <summary>
|
||||
/// Timeout - requests timeout after delay.
|
||||
/// </summary>
|
||||
Timeout,
|
||||
|
||||
/// <summary>
|
||||
/// Error response - return specific error codes.
|
||||
/// </summary>
|
||||
ErrorResponse,
|
||||
|
||||
/// <summary>
|
||||
/// Corrupt response - return malformed data.
|
||||
/// </summary>
|
||||
CorruptResponse
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Configuration for fault behavior.
|
||||
/// </summary>
|
||||
|
||||
@@ -124,6 +124,7 @@ public enum DeadLetterStatus
|
||||
/// </summary>
|
||||
public sealed record DeadLetterQuery
|
||||
{
|
||||
public string? Id { get; init; }
|
||||
public DeadLetterReason? Reason { get; init; }
|
||||
public string? ChannelType { get; init; }
|
||||
public DeadLetterStatus? Status { get; init; }
|
||||
@@ -260,6 +261,7 @@ public sealed class InMemoryDeadLetterHandler : IDeadLetterHandler
|
||||
|
||||
if (query is not null)
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(query.Id)) filtered = filtered.Where(d => d.DeadLetterId == query.Id);
|
||||
if (query.Reason.HasValue) filtered = filtered.Where(d => d.Reason == query.Reason.Value);
|
||||
if (!string.IsNullOrEmpty(query.ChannelType)) filtered = filtered.Where(d => d.ChannelType == query.ChannelType);
|
||||
if (query.Status.HasValue) filtered = filtered.Where(d => d.Status == query.Status.Value);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using StellaOps.Notifier.Worker.Retention;
|
||||
|
||||
namespace StellaOps.Notifier.Worker.Observability;
|
||||
|
||||
@@ -93,8 +94,7 @@ public static class ObservabilityServiceExtensions
|
||||
services.Configure<RetentionOptions>(
|
||||
configuration.GetSection(RetentionOptions.SectionName));
|
||||
|
||||
services.AddSingleton<IRetentionPolicyService, InMemoryRetentionPolicyService>();
|
||||
services.AddHostedService<RetentionPolicyRunner>();
|
||||
services.AddSingleton<IRetentionPolicyService, DefaultRetentionPolicyService>();
|
||||
|
||||
return services;
|
||||
}
|
||||
@@ -220,8 +220,7 @@ public sealed class ObservabilityServiceBuilder
|
||||
_services.TryAddSingleton<INotifierTracing, DefaultNotifierTracing>();
|
||||
_services.TryAddSingleton<IDeadLetterHandler, InMemoryDeadLetterHandler>();
|
||||
_services.TryAddSingleton<IChaosEngine, DefaultChaosEngine>();
|
||||
_services.TryAddSingleton<IRetentionPolicyService, InMemoryRetentionPolicyService>();
|
||||
_services.AddHostedService<RetentionPolicyRunner>();
|
||||
_services.TryAddSingleton<IRetentionPolicyService, DefaultRetentionPolicyService>();
|
||||
|
||||
return _services;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user