-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add .NET 9 in tests projects #2313
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2313 +/- ##
==========================================
- Coverage 73.91% 72.02% -1.90%
==========================================
Files 267 359 +92
Lines 9615 13761 +4146
==========================================
+ Hits 7107 9911 +2804
- Misses 2508 3850 +1342
Flags with carried forward coverage won't be shown. Click here to find out more. |
…ore.App.Ref with version (= 8.0.11)`. However 8.0.11 was released less than 20 min ago. Maybe the restore step had a delay and didn't get the new version yet? D:\a\opentelemetry-dotnet-contrib\opentelemetry-dotnet-contrib\src\OpenTelemetry.Exporter.Geneva\OpenTelemetry.Exporter.Geneva.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Ref with version (= 8.0.11) D:\a\opentelemetry-dotnet-contrib\opentelemetry-dotnet-contrib\src\OpenTelemetry.Exporter.Geneva\OpenTelemetry.Exporter.Geneva.csproj : error NU1102: - Found 128 version(s) in NuGet [ Nearest version: 9.0.0-preview.1.24081.5 ] D:\a\opentelemetry-dotnet-contrib\opentelemetry-dotnet-contrib\src\OpenTelemetry.Exporter.Geneva\OpenTelemetry.Exporter.Geneva.csproj : error NU1102: - Found 0 version(s) in C:\Program Files\dotnet\library-packs Failed to restore D:\a\opentelemetry-dotnet-contrib\opentelemetry-dotnet-contrib\src\OpenTelemetry.Exporter.Geneva\OpenTelemetry.Exporter.Geneva.csproj (in 20.62 sec).
…uild-test-exporter-geneva-integration / build-test (ubuntu-24.04, net8.0) runs on Ubuntu 22.04.1 LTS. If not set, the version is newer. For example, build-test-exporter-influxdb / build-test (ubuntu-latest, net8.0) runs on Ubuntu 22.04.5 LTS.
…T SDK in a docker.
…fail in GitHub CI for now, both for confluentkafka-integration and stackexchangeredis-integration. The current latest SDK in mcr.microsoft.com/dotnet/sdk:9.0 is 9.0.100-rc.2.24474.11, as shown in CI. I'll revert global.json to use rc.2 for now.
…ow to be inspected later.
… doesn't have net9.0 targets yet. I'll leave to the component owners to upgrade them.
# Conflicts: # build/Common.nonprod.props
...metry.Instrumentation.AspNetCore.Tests/OpenTelemetry.Instrumentation.AspNetCore.Tests.csproj
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, left a comment to update Microsoft.AspNetCore.Mvc*. RC packages to stable.
I think they're not needed. There is a discussion around it since long ago. Here's a recent one: open-telemetry/opentelemetry-dotnet#5832 (comment) The conclusion is that it's not needed (especially if it's not a LTS). However, sometimes it does bring some benefits. I think we can skip adding new target frameworks to projects unless there is a specific reason to do so. (This is regarding to projects under |
Towards #2319.
Changes
Add .NET 9 target framework in tests for all libraries except for
OpenTelemetry.Instrumentation.StackExchangeRedis.Tests
andOpenTelemetry.Resources.AWS.Tests
because the tests are failing.SupportedNetTargetsWithoutNet9
is added for them..Merge requirement checklist
[ ] Appropriate: only updated tests.CHANGELOG.md
files updated for non-trivial changes[ ] Changes in public API reviewed (if applicable)