Skip to content

Move main desktop performance measurements to SDK 12 and net12.0 - #5344

Merged
LoopedBard3 merged 12 commits into
dotnet:mainfrom
LoopedBard3:loopedbard3-performance-net12-migration
Nov 4, 2026
Merged

LoopedBard3 merged 12 commits into
dotnet:mainfrom
LoopedBard3:loopedbard3-performance-net12-migration

Conversation

@LoopedBard3

@LoopedBard3 LoopedBard3 commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Summary

Move desktop and WASM main-channel measurements to SDK12 / net12.0, without implicitly rolling net11 measurements onto runtime12.

  • Update channel mapping, root SDK pin, supported microbenchmark frameworks, SDK/Blazor scenarios, tooling tests and ResultsComparer recognition of net12.0 / nativeaot12.0.
  • Keep mobile/MAUI on SDK12 with net11 targets and existing dependency branches through one explicit temporary override. Explicit framework requests take precedence.
  • Preserve versioned older channels and SDK pins, adding global.net11.json. Older-only benchmarks_ci.py runs temporarily select the newest requested framework's versioned pin and restore the original root file even on failure.
  • Freeze net11 library dependencies at 11.0.0; net12 uses main dependency properties, so later main library updates do not silently change net11 measurements.
  • Preserve historical --wasmRuntimeFlavor CoreCLR, real Mono/WASM lanes and framework-aware R2R-interpreter selection, including its custom pack/compiler and interpreter settings. Net12 now uses the same legacy wasmnet12_0 selector for both flavors; the merged BDN compatibility layer selects the actual CoreCLR, Mono interpreter or Mono AOT toolchain. No lanes are disabled or measured modes substituted.
  • Honor the existing explicit private WASM cohort before SDK runtime/ref-pack resolution. Skip static assets only during CoreCLR reference gathering; normal final composite/WebCIL/trimming settings and output guards remain enabled.

Staged policy and one follow-up

The previous rollover was also staged: dotnet/performance#5014 moved the SDK while retaining the previous TFM; dotnet/performance#5064 later switched the TFM. dotnet/performance#5070 updated selectors but still documented missing BDN WASM support. MAUI catch-up in dotnet/performance#5030 also required temporary workload disabling and manual re-enablement tracking. That history was not an automatic, healthy transition for every workload.

This PR instead keeps the temporary decision visible in the existing channel map:

'main': {
    'tfm': 'net12.0',
    'mobile_tfm': 'net11.0',
    'branch': '12.0',
    'quality': 'daily'
}

This is the only mobile-version policy. The runtime YAML wrapper forwards only an explicitly requested framework; otherwise a shared early resolver uses existing channel/release-branch rules before framework validation, build-config identity or native Mono payload creation. It covers both mobile scenario families and all five Android/iOS runtime types previously selected by the YAML, including microbenchmark callers. SDK/target metadata remain independent: mobile targets net11 while recording/using SDK12. Versioned channels and explicit framework matrices retain their requested values.

One follow-up: when upstream MAUI/macios net12 branches and workloads support these scenarios, remove main.mobile_tfm. Mobile jobs then inherit main without another YAML or Python version edit. Tests remove the field and verify inheritance across every mobile scenario family and runtime type. Manual setup documentation also derives the selected TFM from this policy rather than retaining another hardcoded target. There are no new readiness probes, remote fallback mechanisms or guesses that SDK major implies MAUI-supported TFM.

Metadata-only pipeline difference: default runtime jobs no longer create a single-entry framework matrix, so Azure job/log artifact names drop that matrix suffix. They still run one job, with the same resolved-TFM benchmark metadata and Helix identities. Explicit framework matrices remain unchanged. Source-checked pipeline fixtures cover the one-job/TFM contract; no Azure pipeline expansion or execution was queued here.

Merged BDN prerequisite and history

dotnet/performance#5348 is merged. 4982f8c80 additively integrates upstream main 166f1098c52ab216f4ea6167d2e4aec1374a001f; 175f7b7b8 fixes private-pack coherence/gathering; c2be5a857 centralizes and documents the staged policy. Current head dfcda865e0954302af918b29d5d23c36a70d73b7 simplifies the net12 WASM selector and adds focused argument/actual-parser regressions. Published history is preserved without rebase, amend or force push.

All frameworks use main's shared BDN 0.16.0-nightly.20261029.662. Obsolete per-TFM BDN splits/reference propagation and duplicate compatibility scaffolding are removed. This PR does not change BDN versions/feeds, benchmark libraries, producer artifact contracts or pools. Accepted BDN measurement differences remain the separate update's documented follow-up, not a reopened shipping decision or a SAFE claim.

Local validation

Windows x64, private SDK 12.0.100-alpha.1.26527.106; $sdk = (Resolve-Path tools\dotnet\x64).Path, private SDK on PATH and this checkout's scripts directory on PYTHONPATH. The first two results below are from the current selector-only cleanup. They verify Python argument forwarding and the actual normalized BDN runtime/toolchain types for net12 CoreCLR, Mono interpreter and Mono AOT, not execution of those WASM runtimes.

The 298-test and actual desktop execution results were run with the final staged-policy resolver implementation (4e4313e5d; c2be5a857 changed documentation only), not rerun for the selector-only cleanup. Remaining desktop baseline results are explicitly from merged-composition commit 4982f8c80, not rerun claims for this head.

Exact command Result
python -m pytest scripts\tests\test_channel_map.py -k 'wasm_runner_arguments or unknown_wasm_framework' -q --tb=short 6 passed, 112 deselected, 0.98 s on the current selector cleanup. Covers net12 Mono/CoreCLR/AOT forwarding, historical CoreCLR flavor, older net11 arguments and unsupported-framework rejection.
dotnet test src\tests\harness\BenchmarkDotNet.Extensions.Tests\BenchmarkDotNet.Extensions.Tests.csproj --configuration Release --framework net12.0 -p:PERFLAB_TARGET_FRAMEWORKS=net12.0 --no-restore --filter 'FullyQualifiedName~Tests.RuntimeArgumentCompatibilityTests' --nologo --verbosity minimal 30 passed, 0 failed/skipped on the current selector cleanup. Actual BDN parsing selects CsProjCoreWasmToolchain, CsProjMonoWasmToolchain and CsProjMonoWasmAotToolchain for the net12 legacy forms; existing runtime/compatibility cases remain covered. Default-parallel build succeeded.
python -m pytest scripts\tests\test_channel_map.py scripts\tests\test_dotnet.py scripts\tests\test_run_performance_job.py scripts\tests\test_blazor_workload.py scripts\tests\test_wasm_coreclr_r2r.py -q --tb=short 298 passed in 37.48 s on the staged-policy implementation. Covers early target resolution, release/explicit-channel precedence, mobile SDK12 metadata and branches, removal/inheritance for all mobile runtime types, explicit-only pipeline matrices, older pins, package conditions, historical flavor, R2R and private/unset pack resolution.
python scripts\benchmarks_ci.py --frameworks net12.0 --dotnet-path $sdk --filter '*Perf_Guid.NewGuid*' --bdn-arguments '--job Dry' 1 benchmark actually executed on the staged-policy implementation, BDN662, host and benchmark process both runtime 12.0.0-alpha.1.26527.106; global time 37.72 s. The repository-configured job ran, not literal Dry.
dotnet clean src\tests\harness\BenchmarkDotNet.Extensions.Tests\BenchmarkDotNet.Extensions.Tests.csproj --configuration Release --framework net12.0 -p:PERFLAB_TARGET_FRAMEWORKS=net12.0 --nologo --verbosity quiet Passed on 4982f8c80, followed by the default-parallel test below.
dotnet test src\tests\harness\BenchmarkDotNet.Extensions.Tests\BenchmarkDotNet.Extensions.Tests.csproj --configuration Release --framework net12.0 -p:PERFLAB_TARGET_FRAMEWORKS=net12.0 --nologo --verbosity minimal 223 passed on 4982f8c80, 0 failed/skipped. Clean default-parallel build without -m:1 or Reporting.dll collision.
dotnet test src\tools\Reporting\Reporting.Tests\Reporting.Tests.csproj --configuration Release --framework net12.0 --nologo --verbosity minimal 13 passed on 4982f8c80.
dotnet test src\tools\ResultsComparer.Tests\ResultsComparer.Tests.csproj --configuration Release --framework net12.0 --nologo --verbosity minimal 24 passed on 4982f8c80, including nativeaot12 archives.
python scripts\benchmarks_ci.py --frameworks net11.0 net12.0 --dotnet-path $sdk --build-only --filter '*Perf_Guid.NewGuid*' Both restored/built, 0 warnings/errors on 4982f8c80, same shared BDN662. Net11 was not executed.
git diff --check and git diff --cached --check Passed for this follow-up.

Earlier SDK acquisition and isolated package-root results remain historical evidence in the integration notes.

Current-cohort WASM coherence and final publish

An existing Linux x64 CoreCLR WASM Release producer at runtime source 527d68e14a3fe661a496bf2f58ac58e96a90f23a supplied executable SDK 12.0.100-alpha.1.26528.120 and private 12.0.0-ci runtime/ref, WebAssembly, Crossgen2 and ILLink packs. This is the retained November 3 cohort, not the SDK26471 control or a claim about later cohorts. No new producer, CI queue, Helix job or lab execution was started.

The original merged composition reproduced NETSDK1112: net12.0 correctly selected TargetsCurrent=true, but runtime resolution chose manifest version 12.0.0-alpha.1.26528.120 while the real runtime-pack directory existed only at 12.0.0-ci. SDK12/net12 alignment alone did not fix that mismatch.

175f7b7b8 applies the already explicit PERFLAB_WASM_PACKAGE_VERSION to the matching Microsoft.NETCore.App framework reference before ProcessFrameworkReferences, skipping the contradictory late manifest rewrite only for private CoreCLR. Runtime framework, resolved runtime/ref packs, assets and runtimeconfig now agree with the physical pack. Ordinary unset/public and Mono paths retain previous behavior. No directory relabeling, new cohort-version knob, major roll-forward or producer/package change is used.

That commit also disables static web assets only for CoreCLR BenchmarkDotNetGatherReferences=true, because BDN skips entry-DLL compilation in that pass. Final publishing and all output/routing guards remain enabled. The current policy and selector follow-ups leave these MSBuild/WASM target files unchanged.

Local Ubuntu 24.04 WSL, isolated SDK/cache. Original executable modes stripped by payload preparation were restored from the producer archive; binaries and cohort identities were not changed. The host command python3 scripts/benchmarks_ci.py --frameworks net12.0 --dotnet-path "$DOTNET_ROOT" --build-only --wasm --wasm-runtime-flavor CoreCLR --wasm-ready-to-run-composite --filter '*Perf_Guid.NewGuid*' restored/built with 0 warnings/errors before the pack fix.

A temporary diagnostic then used BDN662's genuine CsProjCoreWasmToolchain.Builder.BuildAsync for Perf_Guid.NewGuid in a fresh generated directory, without any executor/JavaScript engine. The fresh restore/gather/full-publish results below were obtained with 175f7b7b8; after the final resolver implementation, the final --no-restore command was rerun incrementally against the same cohort and output. It is not a second fresh compilation or V8 execution. These commands were not rerun for the subsequent selector-only cleanup.

For these effective commands, the working directory is the generated project directory, DOTNET_ROOT is the producer SDK and NUGET_PACKAGES the isolated cache. PERFLAB_WASM_PACKAGE_VERSION=12.0.0-ci, matching producer Crossgen2 task overrides and both requested R2R/composite flags remain enabled.

Exact effective command Result
dotnet restore gen.csproj /p:ArtifactsPath="$PWD/a" /p:RestorePackagesPath="$NUGET_PACKAGES" /p:BenchmarkDotNetGatherReferences=true --nodeReuse:false /p:UseSharedCompilation=false /p:Deterministic=true /p:Optimize=true -bl:gen-restore.binlog Passed, 2.4 s, fresh directory on 175f7b7b8.
dotnet build gen.csproj -f net12.0 -c Release /p:ArtifactsPath="$PWD/a" /p:BenchmarkDotNetGatherReferences=true --no-restore --nodeReuse:false /p:UseSharedCompilation=false /p:Deterministic=true /p:Optimize=true /p:RestorePackagesPath="$NUGET_PACKAGES" -bl:gen-build-no-restore.binlog Passed, 2.98 s, no stale entry DLL supplied.
dotnet publish gen.csproj -f net12.0 -c Release /p:ArtifactsPath="$PWD/a" --nodeReuse:false /p:UseSharedCompilation=false /p:Deterministic=true /p:Optimize=true /p:RestorePackagesPath="$NUGET_PACKAGES" -bl:gen-publish.binlog Passed, 499.2 s, genuine fresh BDN final publish on 175f7b7b8.
dotnet publish gen.csproj -f net12.0 -c Release --no-restore /p:ArtifactsPath="$PWD/a" --nodeReuse:false /p:UseSharedCompilation=false /p:Deterministic=true /p:Optimize=true /p:RestorePackagesPath="$NUGET_PACKAGES" -bl:gen-publish-staged-policy.binlog Passed again with the final resolver implementation, incremental final asset/publish regression without a restoring/healing step.

Generated-project binlogs verify SDK26528.120, net12/current, CoreCLR/browser-wasm/self-contained, initial runtime framework and resolved runtime/ref packs 12.0.0-ci, with the real pack directory and data/RuntimeList.xml. The alpha-version runtime-pack directory is still absent. Final R2R/composite/trimming/WebCIL/static-assets flags are all true; gather-only static assets/R2R/WebCIL are off.

The actual 175,463,021-byte composite WASM owner remains MicroBenchmarks-gen.r2r.60c6e8u671.wasm, SHA256 ba2f9bf1a1e5d0d18c07ae8cc229bac129b87207721401f68a516a1bba2a5b21. Verified WASM magic, compiler-output/published-asset/boot integrity equality and embedded loader routing with isCompositeImage=true. Runtimeconfig records net12 / Core12ci. All three final configuration/output/composite-routing guards succeeded, including the latest no-restore regression.

Remaining limits

Keep this PR draft. The exact retained SDK26528.120 final-publish gate passes for the versions noted above; actual V8/Mono/device or R2R-interpreter execution, later-cohort coverage, MAUI acquisition/device tests, the full Helix matrix, CertHelper and Startup tests are not established here. No performance-safety/SAFE or ready/merge claim. Actual Mono/WASM execution review threads remain open.

The one planned mobile catch-up is removal of main.mobile_tfm once upstream net12 support is available and verified—not another round of scattered framework selectors.

Keep MAUI/mobile on net11 with SDK12 and preserve older channel runner versions. Add net12 framework, package, tooling and pipeline support with focused regression coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 27, 2026 21:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved SDK pinning and framework defaults break supported net11 and Mono WASM workflows, while SDK metadata and mixed-target runner selection remain incorrect.

4 open issues
What changed in this PR

Moves main-channel desktop performance measurements to SDK 12 and net12.0, with compatibility handling for older frameworks and mobile targets.

Changes:

  • Updates SDK pins, framework defaults, scenario coverage, and tooling test targets.
  • Adds a net12-specific BenchmarkDotNet runner, AOT filtering compatibility, and CoreCLR WASM selection.
  • Separates SDK acquisition from target selection and adds regression tests and documentation.
File Description
src/​tools/​ResultsComparer/​Data.cs Recognizes net12 result paths.
src/​tools/​ResultsComparer.Tests/​ResultsComparer.Tests.csproj Targets net12.
src/​tools/​ResultsComparer.Tests/​DataTests.cs Tests extraction across framework versions.
src/​tools/​Reporting/​Reporting.Tests/​Reporting.Tests.csproj Targets net12.
src/​tests/​harness/​BenchmarkDotNet.Extensions.Tests/​BenchmarkDotNet.Extensions.Tests.csproj Tests the net12 runner and benchmarks.
src/​tests/​harness/​BenchmarkDotNet.Extensions.Tests/​AotFilterTests.cs Tests runtime-specific AOT exclusions.
src/​scenarios/​build-common/​Blazor.PackageVersions.props Adds net12 Blazor package selection.
src/​scenarios/​build-common/​Blazor.Directory.Build.targets Advances the framework warning threshold.
src/​harness/​BenchmarkDotNet.Extensions/​BenchmarkDotNet.Extensions.csproj Adds conditional net12 runner dependencies.
src/​harness/​BenchmarkDotNet.Extensions/​AotFilterAttribute.cs Restores AOT exclusion support.
src/​benchmarks/​micro/​README.md Documents net12 execution and compatibility limits.
src/​benchmarks/​micro/​MicroBenchmarks.csproj Adds net12 support and runner selection.
src/​benchmarks/​micro/​libraries/​System.Runtime/​Perf.Uri.cs Strongly types URI argument sources.
src/​benchmarks/​micro/​libraries/​System.Net.Security/​SslStreamTests.Protocols.cs Strongly types TLS argument sources.
scripts/​tests/​test_channel_map.py Adds channel, framework, and package-selection tests.
scripts/​run_performance_job.py Adds independent target selection and mobile fallback.
scripts/​micro_benchmarks.py Selects net12 CoreCLR WASM and rejects Mono WASM.
scripts/​ci_setup.py Adds framework overrides and net11 SDK pin handling.
scripts/​channel_map.py Maps main to SDK/runtime 12.
global.net11.json Preserves the SDK 11 configuration.
global.json Pins the root SDK to version 12.
eng/​Versions.props Defines the net12-specific BenchmarkDotNet version.
eng/​pipelines/​templates/​runtime-perf-job.yml Changes the default framework to net12.
eng/​pipelines/​sdk-perf-jobs.yml Updates SDK installation and tooling test commands.
eng/​performance/​sdk_scenarios.proj Adds net12 to SDK scenarios.
docs/​scenarios-workflow.md Documents desktop and mobile target selection.

Review effort: Balanced

Comment thread global.json Resolved
Comment thread scripts/ci_setup.py Resolved
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 27, 2026 22:54
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@LoopedBard3

Copy link
Copy Markdown
Member Author

Follow-up on the two design questions, alongside 6dbc9d5/9c916affb:

run_performance_job alternatives: Earlier changes already separated SDK and target at the channel level: dotnet/performance#5299 set main to SDK12/TFM11, and dotnet/performance#5308 moved the SDK back to11 when that SDK could not target12 yet. The net10 migration and net11 follow-up preserved older global.netN.json configurations. The pipeline/script --framework parameter also predates this PR (dotnet/performance#4156); the missing piece was forwarding the requested target into ci_setup independently of SDK acquisition. Using that override lets desktop main measure12 while mobile main targets11 with SDK12, rather than moving all of main back to11 or adding a second main channel. The small main-mobile fallback keeps existing channel-only MAUI invocations working; explicit overrides and versioned channels still take precedence.

object[] versus typed sources: This was not a cosmetic type-inference rewrite. BDN649 reports BDN1507 for these single-argument sources: ArgumentsSource 'TlsProtocols' yields 'object[]' where 'System.Security.Authentication.SslProtocols' is taken, with the same error for URI string parameters. Returning IEnumerable<SslProtocols> / IEnumerable<string> satisfies that analyzer without changing the protocol/string values, benchmark methods, or benchmark names. These source changes belong with the separate global BDN compatibility update, together with the AOT filter and async-LINQ dependency, not as unrelated net12 cleanup. The extraction boundary is handed off; the original compatibility code remains temporarily until that prerequisite exists.

The net12 WASM case is now after net11 and still passes the requested historical --wasmRuntimeFlavor CoreCLR. NativeAOT12 result recognition and independent net11/net12 library conditions are included. Three addressed review threads are resolved; the Mono-WASM/cohort and mixed-runner threads remain open. No lanes were disabled, and the draft body records actual validation and the remaining integration limits.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new net12.0 default prevents Mono WASM benchmarks from running and leaves the R2R interpreter lane using an incompatible net11 BenchmarkDotNet runner.

4 open issues
2 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 27, 2026 23:00
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Critical net12/BDN649 compatibility gaps cause WASM argument parsing failures, prevent Mono AOT jobs from running, and make the R2R interpreter lane target net11 instead of net12.

6 open issues

Review effort: Balanced

Comment thread eng/Versions.props Resolved
Comment thread scripts/micro_benchmarks.py Resolved
Copilot AI balanced review requested due to automatic review settings October 27, 2026 23:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The newer runner rejects unhandled legacy arguments in both native Mono-AOT and net12 CoreCLR WASM jobs, causing argument-parsing failures before benchmarks can run.

5 open issues
1 resolved since last review

Review effort: Balanced

@LoopedBard3

LoopedBard3 commented Oct 27, 2026 •

Copy link
Copy Markdown
Member Author

Local candidate integration is now checked against the exact global641 commit plus migration head 9c0b441ad. These results are for a local composition, not the current published PR head. No global BDN changes were pushed here; this draft still targets main at 9c0b441ad.

The composition removes the migration's595/649 split, runner property/reference propagation and duplicate compatibility, taking the prerequisite's typed async sources, LINQ10.0.9 and AOT/LLVM compatibility unchanged. The SDK-only delta is22files. Its saved patch was replayed against the candidate in an isolated Git index and reproduced the validated tree 23523f5718ed959ebc2785c57c574f0a3e137eaf exactly.

Windows x64, private SDK12.0.100-alpha.1.26527.106; $sdk = (Resolve-Path tools\dotnet\x64).Path, private SDK on PATH and scripts on PYTHONPATH:

Exact command Local composition result
python -m pytest scripts\tests\test_channel_map.py scripts\tests\test_dotnet.py scripts\tests\test_run_performance_job.py scripts\tests\test_blazor_workload.py scripts\tests\test_wasm_coreclr_r2r.py -q 190 passed. All frameworks select the same repository runner without hardcoded595/649 expectations; historical Mono/CoreCLR argument selection is covered.
python scripts\benchmarks_ci.py --frameworks net11.0 net12.0 --dotnet-path $sdk --build-only --filter '*Perf_Guid.NewGuid*' Both frameworks restored/built with global641: 0warnings/errors. Net11 was not executed or implicitly rolled forward.
dotnet clean src\tests\harness\BenchmarkDotNet.Extensions.Tests\BenchmarkDotNet.Extensions.Tests.csproj --configuration Release --framework net12.0 -p:PERFLAB_TARGET_FRAMEWORKS=net12.0 --nologo --verbosity quiet Passed, followed by the default-parallel test below.
dotnet test src\tests\harness\BenchmarkDotNet.Extensions.Tests\BenchmarkDotNet.Extensions.Tests.csproj --configuration Release --framework net12.0 -p:PERFLAB_TARGET_FRAMEWORKS=net12.0 --nologo --verbosity minimal 102 passed; clean parallel build passed without -m:1 or the previously observed Reporting.dll collision.
dotnet test src\tools\Reporting\Reporting.Tests\Reporting.Tests.csproj --configuration Release --framework net12.0 --nologo --verbosity minimal 13 passed.
dotnet test src\tools\ResultsComparer.Tests\ResultsComparer.Tests.csproj --configuration Release --framework net12.0 --nologo --verbosity minimal 24 passed.
python scripts\benchmarks_ci.py --frameworks net12.0 --dotnet-path $sdk --filter '*Perf_Guid.NewGuid*' --bdn-arguments '--job Dry' 1benchmark actually executed on BDN641, host/benchmark runtime12.0.0-alpha.1.26527.106, with only.NET12 runtimes installed. The repository-configured job ran, not a literal Dry job.

Real Program listing checks also accepted historical CoreCLR flavor and Mono12 arguments, while explicitly rejecting conflicting flavor/runtime inputs. Listing returns1 even for the no-runtime-option control because the existing empty-summary exit policy applies; this is parser evidence, not WASM execution. The local SDK patch removes the earlier649-era Python Mono12 rejection rather than preemptively gate the lane; actual matching private Mono12 SDK/runtime/workload-pack execution remains unproven.

Actual MonoAOT/LLVM, WASM, MAUI/device and R2R-interpreter workloads, and full paired/noise validation, remain outstanding. This is not a global SAFE verdict or merge approval. The separate BDN PR does not exist yet, so the published draft retains its explicit temporary overlap and unresolved prerequisite threads. After checking the composition I restored the published source and rebuilt its original net12 configuration successfully; the worktree is clean. The replayable SDK-only patch, exact validation manifest and logs are retained in the owning Copilot session.
Historical cold/custom-cache qualification: The e1 checks above used the existing package-cache state; cleaning build outputs did not isolate HOME's NuGet cache. The prerequisite owner reproduced a generated rebuild/publish mismatch: NuGetPackageRoot selected HOME's default package cache while restore/assets used RestorePackagesPath. Missing annotations/weaver imports left the generated child unwoven despite a woven host. Those original results remain valid, but are not cold/custom-cache Helix execution proof.

Root-fixed SDK12 follow-up: Locally recomposed against edf41b94, including its package-root alignment before Arcade imports. The same Python command above now passes 192 tests, including the two new package-root tests. The SDK-only patch is byte-identical across e1/edf and isolated-index replay reproduces the new composed tree d9e4bc54fdfc3c444e551690dbaa2af481276d76.

An isolated net12 CoreRun publish-path diagnostic driven by the .NET CLI host then completed with exit 0 and 4 actual workloads. Restore used a new private package cache; launch used a private fallback containing only junctions to that cache's non-BDN packages, with 0 BenchmarkDotNet packages. Removing exactly the two owned TFM-less DLLs after the woven host build forced generated recompilation rather than reusing a stale woven binary. Raw PE metadata confirms NoInlining flags 8 on both host and child, with distinct MVIDs a1cb3867-f782-47db-adf5-0a61a76738de and 90c7d8a0-b65d-47ad-8d77-af6c75dcb153; no no-workload error occurred. Logs, raw metadata, generated child and restore/build/publish binlogs are retained.

This closes the local SDK12 custom-root diagnostic gap for the edf composition only. It is not actual Mono execution or a global SAFE verdict. Actual Mono/WASM/device/cohort and paired/noise limitations above remain. Published source/index are restored cleanly; rebuilding the original published net12/BDN649 configuration passed with 0 warnings/errors. No global patch was pushed into this draft, no lanes were removed or measured runtimes substituted, and publication of the SDK-only layer still awaits the separately owned BDN prerequisite.

Rebased prerequisite follow-up (October 28): Fetched canonical main 8588cdaa6 and recomposed the SDK-only layer onto 4a7eb1f99. This includes upstream public-GA downlevel targeting-pack provisioning. Two import/test insertion conflicts were resolved by retaining both sets; the upstream provisioning function ASTs, target imports and inherited pool matrix are unchanged. The SDK delta remains 22 files, with no BDN reimplementation or migration-owned ACES changes. Saved patch replay reproduces tree a0ceba39247cb843233ed486327deb31d7ad8b45.

The same commands in the table above now pass 206 Python / 102 harness / 13 Reporting / 24 ResultsComparer tests, both net11/net12 builds with 0 warnings/errors, and 1 actual net12 Guid benchmark on BDN 0.16.0-nightly.20260923.641, SDK 12.0.100-alpha.1.26527.106, runtime 12.0.0-alpha.1.26527.106 (only .NET 12 runtimes installed). The updated isolated regression script also passed end-to-end without helper edits: 4 actual publish-path diagnostic workloads, exit 0, host/child flags 8/8, distinct MVIDs and 0 fallback BDN packages. This run additionally used private HTTP/plugin/scratch caches.

These are local SDK integration results, not actual Mono/WASM/device/cohort or paired/noise SAFE evidence. The separately owned campaign remains open. Published source/index are again restored cleanly at 9c0b441ad and the original published net12/BDN649 build passed with 0 warnings/errors. This draft is unchanged; SDK-only publication remains deferred pending the separate BDN prerequisite.

Enum compatibility follow-up: Recomposition onto eabc68fa applies the identical SDK-only patch without conflicts and reproduces tree a07dee599a1d9cc9bcd36220c51e42a3e76e5059. The prerequisite's two attribute casts are retained unchanged: existing Colors parameter types/generic specialization and values 6/42 are preserved, not replaced with DayOfWeek parameters.

The full net12 harness command above now passes 104 tests. Additional command python scripts\benchmarks_ci.py --frameworks net12.0 --dotnet-path $sdk --filter '*Perf_Enum.InterpolateIntoSpan_NonFlags*' '*Perf_Enum.InterpolateIntoStringBuilder_NonFlags*' --bdn-arguments '--job Dry' executed all 4 enum cases on BDN641/runtime 12.0.0-alpha.1.26527.106, without CS0266 or no-workload errors. The repository-configured job ran, not literal Dry. Prior 4a results remain historical, not rerun claims. Published source/index are restored cleanly and the original net12/BDN649 rebuild passed; no integration push or global SAFE claim.

WASM reference-gather follow-up: Exact 3c025ca8 composes without conflicts using the identical SDK-only patch; replay reproduces tree 32e0cfca7b26ea8b07d584face9a2f133d41917e. The prerequisite's guard, tests and final publish settings are retained unchanged. The same five-suite Python command above now passes 245 tests, including gather true/false, runtime-flavor, per-assembly/composite and final R2R/trimming/WebCIL contracts. The same net12 Guid command executes 1 actual CoreCLR benchmark on BDN641/runtime 12.0.0-alpha.1.26527.106. This is not actual WASM/V8 workload proof or a SAFE verdict; prior harness/cold-root results remain historical, and no global patch is pushed into this draft.

Published source/index are restored cleanly at 9c0b441ad; rebuilding the original published net12/BDN649 configuration passed with 0 warnings/errors. The replayable SDK-only patch and exact validation manifest/logs are preserved; SDK-only publication remains deferred to the separate BDN prerequisite.

Merge current dotnet/performance main 166f109 additively. Remove obsolete per-framework BDN595/649 selection and version propagation, retain upstream compatibility unchanged, and preserve framework-specific library dependencies and historical runtime arguments.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 3, 2026 17:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The net11 dependency freeze leaves System.Numerics.Tensors tied to the advancing package version, and the regression test misses this because it checks only intermediate properties rather than the actual PackageReference version.

3 open issues
3 resolved since last review

Review effort: Balanced

Select private runtime and targeting pack versions before SDK framework resolution. Keep manifest-based public selection unchanged and skip static web assets only during CoreCLR reference gathering.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 3, 2026 18:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The net11 tensor benchmarks still use the main dependency version for System.Numerics.Tensors, allowing future updates to change measurements while the regression test passes without checking the actual package reference.

3 open issues

Review effort: Balanced

@LoopedBard3 LoopedBard3 self-assigned this Nov 3, 2026
Resolve the existing channel policy before runtime payload setup and identity generation. Only explicitly requested frameworks create runtime framework matrices; removing main.mobile_tfm will make mobile jobs inherit main.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep every Android/iOS runtime type previously selected by the YAML default on the single mobile override, including microbenchmark callers. Cover early selection, pipeline target fixtures and override-removal inheritance for all five runtime types.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The net11 dependency freeze leaves System.Numerics.Tensors tracking main’s version, allowing dependency updates to change net11 measurements while the regression test passes because it checks properties rather than the actual PackageReference version.

3 open issues

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 3, 2026 19:23
Avoid leaving a hardcoded manual target to update after the optional mobile override is removed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The net11 dependency freeze leaves System.Numerics.Tensors tied to the changing main version, and the regression test misses this because it checks version properties rather than evaluated package references.

3 open issues

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 3, 2026 19:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The net11 dependency freeze leaves System.Numerics.Tensors tied to the shared version property, allowing main-library updates to change net11 measurements without detection by the property-only regression test.

3 open issues

Review effort: Balanced

Use the historical WASM selector and shared flavor normalization for net12. Cover Python forwarding and real BDN parsing for CoreCLR, Mono interpreter and Mono AOT.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 3, 2026 21:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The net11 dependency freeze leaves System.Numerics.Tensors tracking the main package version, while the regression test checks only alias properties and therefore misses the benchmark dependency drift.

3 open issues

Review effort: Balanced

Pin only net11 System.Numerics.Tensors to 11.0.0 and verify actual evaluated package references for current and future main pins across net8 through net12.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 3, 2026 22:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The SDK/TFM rollover requires owner review because workload-cohort compatibility, Mono/WASM, mobile/device and R2R-interpreter execution, and Azure pipeline expansion remain unverified.

2 open issues
1 resolved since last review

Review effort: Balanced

@LoopedBard3
LoopedBard3 marked this pull request as ready for review November 4, 2026 17:16
Comment thread eng/pipelines/sdk-perf-jobs.yml Resolved
Comment thread scripts/benchmarks_ci.py Resolved
Install SDK8 and SDK10 with UseDotNet in the shared tooling root, then install main's daily SDK last. Explain daily acquisition and numeric TFM-major selection, and cover ordering, paths and installer arguments.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 4, 2026 18:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Parser/property tests and a CoreCLR WASM publish do not establish compatibility across the affected Mono/WASM, mobile, and R2R-interpreter lanes, leaving runtime/device execution and Azure pipeline expansion unverified.

2 open issues

Review effort: Balanced

@DrewScoggins DrewScoggins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LoopedBard3
LoopedBard3 merged commit 30b305f into dotnet:main Nov 4, 2026
73 checks passed
@LoopedBard3
LoopedBard3 deleted the loopedbard3-performance-net12-migration branch November 4, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants