Skip to content

Commit cfe1f6c

Browse files
committed
Checkpoint concurrent telemetry capture updates
Include all current working-tree changes produced during the preceding full-scope commit and push. Full solution and Aspire acceptance remain unverified; the last complete solution build failed.
1 parent c8ab6ca commit cfe1f6c

45 files changed

Lines changed: 116 additions & 114 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎tests/KeyLoad.IntegrationTests/Features/ClusterReplication/Helpers/ClusterFixtureDiagnostics.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ private async Task<string> ReadDiscoveryAsync(string name, ReadOnlyMemory<byte>
188188
{
189189
using var deadline = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
190190
deadline.CancelAfter(DiagnosticRequestTimeout);
191-
using var security = new PeerSecurity(peerSecret, TimeProvider.System);
191+
using var security = new PeerSecurity(peerSecret, TimeProvider.System, IntegrationRoutingOptions.Discovery());
192192
using var http = new HttpClient(security.CreateHandler())
193193
{ Timeout = Timeout.InfiniteTimeSpan };
194194
using var request = new HttpRequestMessage(HttpMethod.Get,

‎tests/KeyLoad.IntegrationTests/Features/ClusterRouting/Helpers/PhysicalShardCatalogInterface34DeniedWriteOracle.cs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ private static async Task VerifyNodeAsync(string dataRoot, NodeEpochRf3Profile p
2727
{
2828
var nodeRoot = Path.Combine(dataRoot, node);
2929
var options = NodeEpochRf3OfflineOptions.Create(nodeRoot, profile, node);
30-
await using var host = new PartitionHost(options, new AuthorizationPolicy(),
31-
new CommandAdmissionGovernor(options.CommandAdmission), TimeProvider.System,
32-
NullLogger<ReplicaConsensus>.Instance);
30+
await using var host = new PartitionHost(ServerRuntimeTestOptions.Runtime(options), new AuthorizationPolicy(), new CommandAdmissionGovernor(IntegrationAdmissionOptions.Command(options.CommandAdmission)), TimeProvider.System, NullLogger<ReplicaConsensus>.Instance);
3331
cancellationToken.ThrowIfCancellationRequested();
3432
if (host.Database.GetDocument(PartitionStoreProtocol.AdministratorId, reference) is not null)
3533
{ throw new InvalidOperationException(InvalidStore); }

‎tests/KeyLoad.IntegrationTests/Features/ClusterRouting/Helpers/PhysicalShardCatalogStoppedOracle.cs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ internal static async Task VerifyAsync(string dataRoot, NodeEpochRf3Profile prof
2323
var nodeRoot = Path.Combine(dataRoot, node);
2424
var options = NodeEpochRf3OfflineOptions.Create(nodeRoot, profile, node);
2525
var configured = options.CreateReplicaConfiguration(Path.GetFullPath(nodeRoot));
26-
await using var host = new PartitionHost(options, new AuthorizationPolicy(),
27-
new CommandAdmissionGovernor(options.CommandAdmission), TimeProvider.System,
28-
NullLogger<ReplicaConsensus>.Instance);
26+
await using var host = new PartitionHost(ServerRuntimeTestOptions.Runtime(options), new AuthorizationPolicy(), new CommandAdmissionGovernor(IntegrationAdmissionOptions.Command(options.CommandAdmission)), TimeProvider.System, NullLogger<ReplicaConsensus>.Instance);
2927
var catalog = host.Database.ReadPhysicalShardCatalog(PartitionStoreProtocol.AdministratorId);
3028
await Assert.That(catalog.Version).IsEqualTo(CurrentCatalogVersion);
3129
await Assert.That(catalog.Revision).IsEqualTo(InitialCatalogRevision);

‎tests/KeyLoad.IntegrationTests/Features/ClusterRouting/Helpers/RequestCqrsRf3SignedDiscovery.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ internal static async Task<ReplicaSiloDiscovery> ReadForProfileAsync(Distributed
3939
private static async Task<ReplicaSiloDiscovery> ReadOwnedAsync(DistributedApplication app, string nodeName,
4040
Guid incarnation, ReadOnlyMemory<byte> credential, CancellationToken cancellationToken)
4141
{
42-
using var signer = new PeerSecurity(credential, TimeProvider.System);
42+
using var signer = new PeerSecurity(credential, TimeProvider.System, IntegrationRoutingOptions.Discovery());
4343
using var http = McpCallerHttp.Create(app, nodeName);
4444
using var request = new HttpRequestMessage(HttpMethod.Get,
4545
new Uri(http.BaseAddress ?? throw new InvalidOperationException(InvalidSignedObservation), DiscoveryPath));

‎tests/KeyLoad.IntegrationTests/Features/ClusterRouting/Helpers/TwoRf3MembershipSignedDiscovery.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ internal static class TwoRf3MembershipSignedDiscovery
1515
internal static async Task<ReplicaSiloDiscovery> ReadAsync(DistributedApplication app, string node,
1616
string clusterId, Guid incarnation, ReadOnlyMemory<byte> secret, CancellationToken token)
1717
{
18-
using var security = new PeerSecurity(secret, TimeProvider.System);
18+
using var security = new PeerSecurity(secret, TimeProvider.System, IntegrationRoutingOptions.Discovery());
1919
using var http = McpCallerHttp.Create(app, node);
2020
using var request = new HttpRequestMessage(HttpMethod.Get,
2121
new Uri(http.BaseAddress ?? throw new InvalidOperationException(Invalid), ReplicaProtocol.DiscoveryPath));

‎tests/KeyLoad.UnitTests/Features/BlobStorage/Cases/BlobAdmissionTests.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ internal sealed class BlobAdmissionTests
1515
[Test]
1616
public async Task AcBlob004CleanupUsesTwoBoundedControlReservationsDuringDataSaturation()
1717
{
18-
var governor = new HttpAdmissionGovernor(Limits());
18+
var governor = new HttpAdmissionGovernor(UnitAdmissionOptions.Http(Limits()));
1919
using var data = Begin(governor, BlobAgentCases.PartRoute, 0);
2020
data.Bind(Principal);
2121
using var abort = Begin(governor, BlobAgentCases.AbortRoute, ControlBodyLimit);
@@ -39,7 +39,7 @@ await Assert.That(Assert.ThrowsExactly<KeyLoadException>(() => Begin(governor, B
3939
[Test]
4040
public async Task AcBlob004OnlyAbortAndReclaimUseTheBoundedCleanupLane()
4141
{
42-
var governor = new HttpAdmissionGovernor(Limits());
42+
var governor = new HttpAdmissionGovernor(UnitAdmissionOptions.Http(Limits()));
4343
foreach (var item in BlobAgentCases.All().Where(item => item.CommandKind.HasValue))
4444
{
4545
var cleanup = item.Name is BlobAgentCases.Abort or BlobAgentCases.Reclaim;

‎tests/KeyLoad.UnitTests/Features/BlobStorage/Cases/BlobGrainRoutingTests.cs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ internal sealed class BlobGrainRoutingTests
1515
public async Task AcBlob006FreshSignedActorsPreserveEachStableCommandAndAtomicPartition()
1616
{
1717
using var fixture = new TestDatabase();
18-
var codec = new GrainRequestCodec(fixture.Database, TimeProvider.System);
18+
var codec = new GrainRequestCodec(fixture.Database, TimeProvider.System, UnitRoutingOptions.Routing());
1919
foreach (var item in BlobAgentCases.All().Where(item => item.CommandKind.HasValue))
2020
{
2121
var first = codec.Verify(Sign(codec, item, Guid.NewGuid()));
@@ -33,7 +33,7 @@ public async Task AcBlob006FreshSignedActorsPreserveEachStableCommandAndAtomicPa
3333
public async Task AcBlob006SignedReadActorsRequireTheirFreshRequestIdentity()
3434
{
3535
using var fixture = new TestDatabase();
36-
var codec = new GrainRequestCodec(fixture.Database, TimeProvider.System);
36+
var codec = new GrainRequestCodec(fixture.Database, TimeProvider.System, UnitRoutingOptions.Routing());
3737
foreach (var item in BlobAgentCases.All().Where(item => item.ReadKind.HasValue))
3838
{
3939
var id = Guid.NewGuid();
@@ -51,7 +51,7 @@ await Assert.That(Assert.ThrowsExactly<KeyLoadException>(() => codec.VerifyRead(
5151
public async Task AcBlob003WrongCommandIdentityOrAtomicActorCannotExecuteAnyBlobCommand()
5252
{
5353
using var fixture = new TestDatabase();
54-
var codec = new GrainRequestCodec(fixture.Database, TimeProvider.System);
54+
var codec = new GrainRequestCodec(fixture.Database, TimeProvider.System, UnitRoutingOptions.Routing());
5555
var executor = new GrainCommandExecutor(fixture.Database, new EmbeddedCoordinator(fixture.Database), TimeProvider.System);
5656
var keys = new[]
5757
{

‎tests/KeyLoad.UnitTests/Features/ClientApi/Cases/McpNativeAuthenticationMalformedTests.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public async Task WrongNativeRootsDefaultCollectionsAndTrailingBytesReleaseEvery
5757
{
5858
await Assert.That(Assert.ThrowsExactly<KeyLoadException>(() => McpNativeAuthentication.ReadPrincipal(payload, CancellationToken.None)).Code)
5959
.IsEqualTo(ErrorCode.Validation);
60-
using (var state = new McpRequestState(new HttpAdmissionGovernor(), memory, RequestCapacity, CancellationToken.None))
60+
using (var state = new McpRequestState(new HttpAdmissionGovernor(UnitAdmissionOptions.Http()), memory, RequestCapacity, CancellationToken.None))
6161
{
6262
await Assert.That(Assert.ThrowsExactly<KeyLoadException>(() => state.Authenticate(payload, CancellationToken.None)).Code)
6363
.IsEqualTo(ErrorCode.Validation);

‎tests/KeyLoad.UnitTests/Features/ClientApi/Cases/McpNativeAuthenticationTests.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public async Task PersistedPrincipalAdmissionOwnsDecodedValuesAndReturnsEveryRes
5252
var payload = NativeSerialization.Serialize(new GrainValue(principal));
5353
var limits = new McpMemoryLimits();
5454
var memory = new McpMemoryBudget(limits.DataBytes, limits.ControlBytes, limits.IngressBytes);
55-
var governor = new HttpAdmissionGovernor();
55+
var governor = new HttpAdmissionGovernor(UnitAdmissionOptions.Http());
5656
using (var state = new McpRequestState(governor, memory, RequestCapacity, CancellationToken.None))
5757
{
5858
state.Authenticate(payload, CancellationToken.None);

‎tests/KeyLoad.UnitTests/Features/ClientApi/Cases/McpUnknownLengthAdmissionTests.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public async Task SmallUnknownLengthDiscoveryAdmitsAndReleasesDefaultMemoryAndEx
2424
var principalBytes = NativeSerialization.Serialize(new GrainValue(principal));
2525
var limits = new McpMemoryLimits();
2626
var memory = new McpMemoryBudget(limits.DataBytes, limits.ControlBytes, limits.IngressBytes);
27-
var governor = new HttpAdmissionGovernor();
27+
var governor = new HttpAdmissionGovernor(UnitAdmissionOptions.Http());
2828
var wire = Encoding.UTF8.GetBytes(DiscoveryFrame);
2929

3030
using (var state = new McpRequestState(governor, memory, DefaultHttpBodyLimitBytes, CancellationToken.None))

0 commit comments

Comments
 (0)