Skip to content

build: the tools, the service fixture and the benchmark host build on net11.0 (#829, step 6) - #877

Merged
Blind-Striker merged 1 commit into
masterfrom
build/829-tools-net11
Nov 15, 2026
Merged

Blind-Striker merged 1 commit into
masterfrom
build/829-tools-net11

Conversation

@Blind-Striker

@Blind-Striker Blind-Striker commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

What

Step 6 of #829: the repository tool, its tests, the service fixture and the benchmark host build on net11.0. DefaultTargetFramework stays net10.0 and keeps composing the packages' and the tests' frameworks. The measured benchmark runtimes stay net10.0, net11.0 and net472.

  • The tool. OpenCode.Sdk.Tools, the file-based entry tools/opencode-tool.cs, OpenCode.Sdk.Tools.Tests and the service fixture take LatestTargetFramework, and the test roster follows the tool tests. The consumer framework the tool stamps (DefaultTargetFramework) and the native AOT pack selection stay where they are: they describe the consumer, not the tool.
  • The benchmark project targets TestTargetFrameworks. It references the tool, and compiles the generator benchmarks, on the latest framework only; the other targets link the wire-metric ids and measure the SDK alone. Only the net11.0 output carries OpenCode.Sdk.Tools.dll.
  • Pinned jobs. The cold-start jobs pin .NET 10, so they keep measuring .NET 10 now that the host runs on .NET 11. The generator-stage job moves to .NET 11.
  • CI. The three benchmark host commands take -f net11.0; their --runtimes, step names and matrix do not change, and the guard test that pins the host command follows. The lint, generator-stage and nightly-publish jobs drop the .NET 10 install that only the tools needed. The NuGet publish job keeps it, because it can check out a dispatched commit from before this change.
  • One test call. On net11.0, JsonSerializerOptions offers the generic GetTypeInfo<T>(), so one oracle test takes it (CA2263). Its assertion is unchanged.
  • Docs. The comments, the contributor prerequisites and the platform and quality-gate canon follow.

Known costs:

  • The generator-stage rows move from .NET 10 to .NET 11, so they no longer join the archived .NET 10 before-set.
  • The cold-start rows stay on .NET 10, but now that the job names its runtime they carry the .NET 10.0 label instead of the job's name. A compare-benchmarks run across this change therefore joins no cold-start case until the before-run is re-measured on a current tree. docs/engineering/quality-gates.md says so.

Local checkouts: a checkout that still holds an earlier net10.0 build of the service fixture fails the live stop and discovery tests with "Several builds": the fixture resolver refuses a second framework folder under tests/OpenCode.Sdk.ServiceFixture/bin/<Configuration>/. Delete the stale net10.0 folder once. CI starts clean.

ADR-0034 impact

None on the packages: nothing under src/ changes, so there is no public-surface or behaviour change and no CHANGELOG line. Package validation against 1.1.0 is unaffected.

Verification

Linux, at this head:

  • the Release build with 0 warnings and 0 errors, and the benchmark project's net472 compile;
  • both format passes, the slop scan and the clone gate (nothing new);
  • generate --verify and refresh-spec --verify;
  • both packs against 1.1.0;
  • 11,335 of 11,335 main tests, 18 of 18 service-election tests and 3 of 3 Native AOT tests.

The benchmark jobs in CI exercise the host move and the pinned runtimes.

Refs #829

… net11.0 (#829, step 6)

The repository tool, its file-based entry, its tests and the service
fixture leave DefaultTargetFramework for LatestTargetFramework;
DefaultTargetFramework stays net10.0 and keeps composing the packages'
and the tests' frameworks. The test roster follows the tool tests. The
consumer framework the tool stamps and the native AOT pack selection
stay on DefaultTargetFramework.

The benchmark project targets TestTargetFrameworks. It references the
tool, and compiles the generator benchmarks, on the latest framework
only; the other targets link the wire-metric ids and measure the SDK
alone. The CI benchmark hosts run on net11.0 with unchanged measured
runtimes, and the CI guard test follows the host argument.

The cold-start jobs pin .NET 10, so their rows keep measuring .NET 10.
Known costs: the generator-stage job moves to .NET 11, so its rows no
longer join the archived .NET 10 before-set; and the pinned cold-start
rows now carry the .NET 10.0 label instead of the job's name, so a
comparison across this change joins no cold-start case until the
before-run is re-measured.

The lint, generator-stage and nightly-publish jobs drop the .NET 10
install that only the tools needed. The NuGet publish job keeps it: it can check out a
dispatched commit from before this change. One oracle test takes the
generic GetTypeInfo<T>() that net11.0 offers (CA2263). Comments, the
contributor prerequisites and the platform and quality-gate canon
follow.
@Blind-Striker
Blind-Striker marked this pull request as ready for review November 15, 2026 02:42
@Blind-Striker
Blind-Striker added this pull request to the merge queue Nov 15, 2026
Merged via the queue into master with commit a76852a Nov 15, 2026
17 checks passed
@Blind-Striker
Blind-Striker deleted the build/829-tools-net11 branch November 15, 2026 03:12
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.

1 participant