extensions
extensions copied to clipboard
This repository contains a suite of libraries that provide facilities commonly needed when creating production-ready applications.
See internal docs at https://aka.ms/1espt/mariner2 It should be just a find/replace in yml, but we'll want to test the changes by running those pipelines before merging.
Why are we even running **Unreliable**L2Tests in the official build? Test: Microsoft.Extensions.Caching.Hybrid.Tests.UnreliableL2Tests.WriteFailureInvisible(writeBreak: AsynchronousYield, errorIds: [7]) Test file: microsoft.extensions.caching.hybrid.tests.dll Machine: 612af21ac000000 Tested build: [20251212.1](https://dev.azure.com/dnceng/internal/_Build?_a=summary&buildId=2859951) ``` Assert.Equal() Failure: Strings differ ↓ (pos...
Test: Microsoft.AspNetCore.Diagnostics.Logging.Test.AcceptanceTests.HttpRequestBuffering_DoesNotBufferDisabledOrOversizedLogs Test file: microsoft.aspnetcore.diagnostics.middleware.tests.dll Machine: 612af21ac000000 Tested build: [20251212.1](https://dev.azure.com/dnceng/internal/_Build?_a=summary&buildId=2859951) ``` Error message Assert.Equal() Failure: Values differ Expected: 6 Actual: 7 Stack trace at Microsoft.AspNetCore.Diagnostics.Logging.Test.AcceptanceTests.c.d.MoveNext() in /mnt/vss/_work/1/s/test/Libraries/Microsoft.AspNetCore.Diagnostics.Middleware.Tests/Logging/AcceptanceTests.cs:line 950 --- End...
I haven't been able to get these tests to run against Azure OpenAI. Either we're missing setup steps, or they just don't work. They fail with either: ``` C:\src\dotnet\extensions\test\Libraries\Microsoft.Extensions.AI.OpenAI.Tests\OpenAIAssistantChatClientIntegrationTests.cs(32): error...
This is breaking testing on Azure OpenAI when the hardcoded model is not deployed. https://github.com/search?q=repo%3Adotnet%2Fextensions+gpt-4o-mini+language%3AC%23+path%3Atest%2FLibraries&type=code https://github.com/dotnet/extensions/blob/20db54162d1acfc811921a1fa9c3088c729db202/test/Libraries/Microsoft.Extensions.AI.OpenAI.Tests/OpenAIChatClientTests.cs#L151 https://github.com/dotnet/extensions/blob/20db54162d1acfc811921a1fa9c3088c729db202/test/Libraries/Microsoft.Extensions.AI.OpenAI.Tests/OpenAIResponseClientTests.cs#L149 Etc
I found this when testing the latest (with OpenAI 2.8.0) however I reverted that change and still reproduced. I was also able to repro with 10.1 and 10.0 so it's...
https://github.com/dotnet/extensions/blob/cc328a764d1b0200a852772b1f163ebecc7f4a22/test/Libraries/Microsoft.Extensions.AI.Integration.Tests/ChatClientIntegrationTests.cs#L1092-L1117 Microsoft.Extensions.AI.OpenAIAssistantChatClientIntegrationTests.GetResponseAsync_StructuredOutput_NonNative will occasionally fail with the following exception: ``` Microsoft.Extensions.AI.OpenAIAssistantChatClientIntegrationTests.GetResponseAsync_StructuredOutput_NonNative [FAIL] System.Text.Json.JsonException : '`' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0....
https://github.com/dotnet/extensions/blob/cc328a764d1b0200a852772b1f163ebecc7f4a22/test/Libraries/Microsoft.Extensions.AI.Integration.Tests/ChatClientIntegrationTests.cs#L1320-L1357 This test failed because the model decided to summarize the conversation with: ``` So, that's about 40 cans of food per month for your pets! ``` It looks to...
`FunctionInvokingChatClient` was attempting to invoke every `FunctionCallContent` it encountered, even when a corresponding `FunctionResultContent` with the same `CallId` was already present in the response. This broke scenarios with multiple `FunctionInvokingChatClient`s...
Multi-targeting projects using `Microsoft.Extensions.Telemetry.Abstractions` with net9.0 or net10.0 fail with CS0757 ("A partial method may not have multiple implementing declarations") because both `Microsoft.Gen.Logging` and `Microsoft.Extensions.Logging.Abstractions` source generators execute, producing duplicate...