Re-apply xUnit v3 migration and OpenTelemetry telemetry overhaul#53827
Closed
Re-apply xUnit v3 migration and OpenTelemetry telemetry overhaul#53827
Conversation
This reverts commit f788ff9. Co-authored-by: MiYanni <17788297+MiYanni@users.noreply.github.com>
Co-authored-by: MiYanni <17788297+MiYanni@users.noreply.github.com>
Reverts the changes made to DefaultRequestDispatcherTest.cs in commit 96683a0, restoring the original Task.Run, SetResult, and simple await patterns. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: MiYanni <17788297+MiYanni@users.noreply.github.com>
The dotnet run - (stdin) feature creates a virtual .csproj in a platform-specific temp directory (~/.local/share/dotnet/runfile/ on Linux). NuGet walks up from that location to find NuGet.config, but the test's NuGet.config (with internal feeds like dotnet11-transport) was only placed in /tmp/dotnetSdkTests/ — a completely different directory tree. This caused NuGet restore to only find nuget.org, which doesn't have preview SDK packages. Fix by copying NuGet.config into the runfile base directory so NuGet's upward config search finds the test feeds. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: MiYanni <17788297+MiYanni@users.noreply.github.com>
This re-applies the OpenTelemetry telemetry changes that were reverted in PR #53788, without re-applying the xUnit v3 migration (PR #52930). Key changes: - Replace ApplicationInsights with OpenTelemetry for telemetry - Add ITelemetryClient interface replacing ITelemetry - Add TelemetryClient implementation using OTel - Update ITelemetryFilter to use typed overloads instead of object parameter - Update TelemetryFilter with new Filter implementations - Remove ApplicationInsights NuGet dependency - Add OpenTelemetry NuGet packages - Delete PersistenceChannel telemetry infrastructure (no longer needed) - Delete PerformanceLog infrastructure (replaced by OTel) - Move test files to TelemetryTests subfolder - Various nullable annotation improvements Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: MiYanni <17788297+MiYanni@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: MiYanni <17788297+MiYanni@users.noreply.github.com>
…etryDiskLogger spelling Agent-Logs-Url: https://github.com/dotnet/sdk/sessions/90529bff-35fe-47fe-add8-9ab9ad98caf5 Co-authored-by: MiYanni <17788297+MiYanni@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Migrate test infrastructure to xUnit v3 and update package references
Re-apply xUnit v3 migration and OpenTelemetry telemetry overhaul
Apr 11, 2026
This was referenced Apr 11, 2026
Open
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Combines two previously reverted changesets back onto
main: the xUnit v2 → v3 test infrastructure migration and the Application Insights → OpenTelemetry telemetry overhaul.xUnit v3 migration
xunit→xunit.v3.core,Microsoft.DotNet.XUnitExtensions→Microsoft.DotNet.XUnitV3Extensions,Verify.Xunit→Verify.XunitV3,Microsoft.TemplateEngine.Mocks→Microsoft.TemplateEngine.Mocks.XunitV3xunit.console+ customProgram.csentry point removed; xUnit v3's built-in executable model used instead[Fact]/[Theory]attributes updated to pass[CallerFilePath]/[CallerLineNumber]to base constructors (v3 requirement)ITestOutputHelperupdated withWrite/Outputmembers;IAsyncLifetimemigrated fromTask→ValueTaskPlatformSpecificFact/PlatformSpecificTheoryrefactored to use constructor params instead of settable propertieseng/XUnitV3/targets andxunit.runner.jsonconfigurationOpenTelemetry telemetry overhaul
Telemetry/ITelemetryreplaced withTelemetryClient/ITelemetryClient;PersistenceChanneland allPerformanceLog*infrastructure removedMicrosoft.ApplicationInsightsTelemetryFilterrefactored with strongly-typedFilteroverloads;TelemetryEventEntrysimplified (measurements removed)ApplicationInsightsEntryFormat→TelemetryEntryFormatActivityContextFactoryfor propagating trace context to child processesInvocableOptionActionpattern for--version,--info,--cli-schema,-doptionsProgram.csrestructured: static constructor for early init,ProcessArgsAndExecute, activity-based tracing, signal handlingDotNetCommandFactorymerged fromCommandFactoryBuiltInTemplatePackageProvider/OptionalWorkloadProviderupdated to useMSBuildForwardingAppWithoutLogging.GetMSBuildSDKsPath()instead of assembly locationFixes
TelemetryFilter: removed incorrect?nullable annotation from requiredhashparameterTelemetryDiskLogger: corrected parameter name spellingactivies→activitiesOriginal prompt
This pull request was created from Copilot chat.