Skip to content

chore: Update test projects to use net10.0#3206

Merged
timcassell merged 6 commits into
dotnet:masterfrom
filzrev:chore-update-tests-to-use-net10
Jul 27, 2026
Merged

chore: Update test projects to use net10.0#3206
timcassell merged 6 commits into
dotnet:masterfrom
filzrev:chore-update-tests-to-use-net10

Conversation

@filzrev

@filzrev filzrev commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

This PR intended to update test baseline TFM from net8.0 to net10.0 (#3002)

What's changed in this PR

1. Update build/sdk/global.json
Update .NET 10 SDK version to 10.0.302

2. Update build/BenchmarkDotNet.Build/*
Modify code to use net10.0 and wasm-tools for .NET 10.

3. Update CI workflows
Modify workflows to use net10.0

4. Update samples/tests project files
Modify TFM to use net10.0 (net8.0 TFM for integration tests is not removed, because it's required by Mono80IsSupported test)
Modify some tests to use net10.0 based toolchain/runtime.

@filzrev

filzrev commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

On latest windows-11-arm CI, it failed on following test.

MemoryDiagnoserIsAccurate(toolchain: InProcessEmitToolchain) [FAIL]
   Assert.Equal() Failure: Values differ
     Expected: 72
     Actual:   370

It looks like new flaky test pattern that succeeded on .NET 8 and failed on .NET 10.
I'll add commit to skip flaky tests on InProcessEmitToolchain on Windows environment.

@timcassell

Copy link
Copy Markdown
Collaborator

Flaky memory tests are likely due to #2822. There is a PR to fix it dotnet/runtime#131069 that we could wait for, or you could try disable DATAS (or change the GC dotnet/runtime#118826 (comment)) for the tests for now.

@filzrev
filzrev force-pushed the chore-update-tests-to-use-net10 branch from 646d238 to fc4e899 Compare July 25, 2026 03:46
@filzrev

filzrev commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

I've removed flaky test skip code and add setting to disable DATAS on IntegrationTests project.

Comment thread tests/BenchmarkDotNet.IntegrationTests/DisassemblyDiagnoserTests.cs Outdated
@timcassell
timcassell merged commit 803869a into dotnet:master Jul 27, 2026
11 checks passed
@timcassell timcassell added this to the v0.16.0 milestone Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update IntegrationTest projects target framework from net8.0 to net10.0

2 participants