Skip to content

Commit b2c20e3

Browse files
xiang17CodeBlanch
andauthored
[repo] Bump SDK to 9.0.100 (open-telemetry#2316)
Co-authored-by: Mikel Blanchard <[email protected]>
1 parent c9b91f3 commit b2c20e3

File tree

13 files changed

+30
-19
lines changed

13 files changed

+30
-19
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ jobs:
104104
with:
105105
project-name: Component[OpenTelemetry.Exporter.Geneva]
106106
code-cov-name: Exporter.Geneva
107-
os-list: '[ "ubuntu-24.04" ]' # Note: This may be switched to latest once ubuntu-latest has a kernel version >= 6.8.0-1014-azure
108-
tfm-list: '[ "net8.0" ]' # Note: Should be able to remove this once the above is using ubuntu-latest
109107
test-case-filter: CategoryName=Geneva:user_events:metrics
110108
test-require-elevated: true
111109
pack: false

.github/workflows/verifyaotcompat.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ jobs:
1010
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
1111
matrix:
1212
os: [ ubuntu-latest, windows-latest ]
13-
version: [ net8.0 ]
13+
version: [ net8.0, net9.0 ]
1414

1515
runs-on: ${{ matrix.os }}
1616
steps:
1717
- uses: actions/checkout@v4
1818

19+
- name: Setup dotnet
20+
uses: actions/setup-dotnet@v4
21+
1922
- name: publish AOT testApp, assert static analysis warning count, and run the app
2023
shell: pwsh
2124
run: .\build\scripts\test-aot-compatibility.ps1 ${{ matrix.version }}

build/Common.nonprod.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<MicrosoftNETTestSdkPkgVer>[17.11.1,18.0)</MicrosoftNETTestSdkPkgVer>
3131
<OpenTelemetryExporterInMemoryPkgVer>$(OpenTelemetryCoreLatestVersion)</OpenTelemetryExporterInMemoryPkgVer>
3232
<SupportedNetTargets>net8.0</SupportedNetTargets>
33+
<TargetFrameworksForAotCompatibilityTests>net9.0;net8.0</TargetFrameworksForAotCompatibilityTests>
3334
<XUnitRunnerVisualStudioPkgVer>[2.8.2,3.0)</XUnitRunnerVisualStudioPkgVer>
3435
<XUnitPkgVer>[2.9.0,3.0)</XUnitPkgVer>
3536
<WiremockNetPkgVer>[1.6.3,2.0)</WiremockNetPkgVer>

build/Common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<NetMinimumSupportedVersion>net8.0</NetMinimumSupportedVersion>
1111
<NetStandardMinimumSupportedVersion>netstandard2.0</NetStandardMinimumSupportedVersion>
1212
<GenerateDocumentationFile>true</GenerateDocumentationFile>
13-
<AnalysisLevel>latest-all</AnalysisLevel>
13+
<AnalysisLevel>8.0</AnalysisLevel>
1414
<Nullable>enable</Nullable>
1515
<ImplicitUsings>enable</ImplicitUsings>
1616
<NuGetAudit>true</NuGetAudit>

build/docker-compose.net8.0.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ services:
66
args:
77
PUBLISH_FRAMEWORK: net8.0
88
TEST_SDK_VERSION: "8.0"
9-
BUILD_SDK_VERSION: "8.0"
9+
BUILD_SDK_VERSION: "9.0"

build/docker-compose.net9.0.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: '3.7'
2+
3+
services:
4+
tests:
5+
build:
6+
args:
7+
PUBLISH_FRAMEWORK: net9.0
8+
TEST_SDK_VERSION: "9.0"
9+
BUILD_SDK_VERSION: "9.0"

build/scripts/test-aot-compatibility.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ param([string]$targetNetFramework)
22

33
$rootDirectory = Get-Location
44

5-
$publishOutput = dotnet publish $rootDirectory/test/OpenTelemetry.AotCompatibility.TestApp/OpenTelemetry.AotCompatibility.TestApp.csproj -nodeReuse:false /p:UseSharedCompilation=false
5+
$publishOutput = dotnet publish $rootDirectory/test/OpenTelemetry.AotCompatibility.TestApp/OpenTelemetry.AotCompatibility.TestApp.csproj --framework $targetNetFramework -nodeReuse:false /p:UseSharedCompilation=false
66

77
$actualWarningCount = 0
88

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
33
"rollForward": "latestFeature",
4-
"version": "8.0.100"
4+
"version": "9.0.100"
55
}
66
}

opentelemetry-dotnet-contrib.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{824BD1DE
5656
build\Common.targets = build\Common.targets
5757
build\debug.snk = build\debug.snk
5858
build\docker-compose.net8.0.yml = build\docker-compose.net8.0.yml
59+
build\docker-compose.net9.0.yml = build\docker-compose.net9.0.yml
5960
build\opentelemetry-icon-color.png = build\opentelemetry-icon-color.png
6061
build\OpenTelemetryContrib.prod.ruleset = build\OpenTelemetryContrib.prod.ruleset
6162
build\OpenTelemetryContrib.test.ruleset = build\OpenTelemetryContrib.test.ruleset

test/OpenTelemetry.AotCompatibility.TestApp/OpenTelemetry.AotCompatibility.TestApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>$(NetMinimumSupportedVersion)</TargetFramework>
5+
<TargetFrameworks>$(TargetFrameworksForAotCompatibilityTests)</TargetFrameworks>
66
<PublishAot>true</PublishAot>
77
<TrimmerSingleWarn>false</TrimmerSingleWarn>
88
<EventSourceSupport>true</EventSourceSupport>

0 commit comments

Comments
 (0)