Skip to content

build(deps): the dependency refresh with Microsoft.OpenApi 3.11.0 (#829, step 4) - #875

Merged
Blind-Striker merged 5 commits into
masterfrom
build/829-package-refresh
Nov 15, 2026
Merged

Blind-Striker merged 5 commits into
masterfrom
build/829-package-refresh

Conversation

@Blind-Striker

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

Copy link
Copy Markdown
Collaborator

What

Step 4 of #829: the dependency refresh, one commit per class, in the order docs/engineering/workflow.md sets. Step 4 also takes #211.

  1. .NET servicing (59b47204): every 10.0.13 pin moves to the 10.0.15 servicing release, not to 11.0.0, so .NET 10 consumers keep a 10.x floor. Shipped floors that move:

    • on net472 and netstandard2.0: System.Text.Json, System.Threading.Channels, System.Collections.Immutable, Microsoft.Bcl.AsyncInterfaces, Microsoft.Bcl.Memory and Microsoft.Bcl.TimeProvider;
    • OpenCodeDotNet.Sdk.Extensions, on every target: Microsoft.Extensions.DependencyInjection.Abstractions and Microsoft.Extensions.Options.ConfigurationExtensions.

    The CHANGELOG line says so. No security advisory of the .NET 10.0.14 or 10.0.15 release lists these packages.

  2. Generator and tooling (edf62eed): Microsoft.CodeAnalysis.CSharp 5.12.0, Microsoft.SourceLink.GitHub 11.0.100, and the four OpenTelemetry packages 1.21.0.

    Spectre.Console.Cli.Extensions.DependencyInjection stays at 0.30.0. This is the maintainers' decision, an exception to the latest-stable refresh rule.

    • Reason: every later release declares a net11.0 dependency group that needs Microsoft.Extensions.DependencyInjection 11.x, against the 10.0.15 floor that class 1 keeps. For example, 0.34.0 needs ≥ 11.0.0, while its net10.0 group needs ≥ 10.0.15.
    • Where it breaks: wherever the tool's graph restores for net11.0 beside the direct 10.0.15 pin. The benchmark host's net11.0 leg fails with NU1605. 0.30.0 has no net11.0 group, so .NET 11 falls back to its net10.0 group (≥ 10.0.12).
    • Reversal trigger: the floor moves to 11.x, or the repository adopts a per-project version override for packages only the tools use.
  3. Microsoft.OpenApi 3.11.0, which closes Bump Microsoft.OpenApi once a release carries microsoft/OpenAPI.NET#3108 #211 (03b3c960). 3.11.0 carries the upstream fix (OpenAPI.NET pull request 3108) for the timeout-bound components-key regex this repository reported. Before deleting its own replacement rule, the generator confirmed the fix in the shipped assembly:

    • The generator restores the package's lib/net8.0 asset.
    • In that asset, OpenApiComponentsRules.KeyRegex returns a source-generated regex. Its runner (Scan, TryFindNextPossibleStartingPosition, TryMatchAtCurrentPosition) never calls CheckTimeout. The constructor still stores 100 ms, but nothing on the match path reads it.
    • The netstandard2.0 asset still builds an interpreted regex with that timeout, but the generator does not load it.

    The change itself:

    • ComponentKeyRule and its installation go. The reader runs the library's default rule set, and the stream still stays open for the raw re-parse.
    • Four tests of the replacement rule are retired. The end-to-end test that an invalid component key fails ingestion with the library's own error is kept unchanged, in SpecReaderComponentKeyTests.
    • docs/architecture/protocol-and-generation.md now says the reader runs the default rule set, and the Bump Microsoft.OpenApi once a release carries microsoft/OpenAPI.NET#3108 #211 bullet leaves the ROADMAP:
    -  - a dependency bump: `Microsoft.OpenApi` `3.11.0` carries
    -    [microsoft/OpenAPI.NET#3108](https://github.com/microsoft/OpenAPI.NET/pull/3108), the fix for
    -    [#3101](https://github.com/microsoft/OpenAPI.NET/issues/3101) that this repository reported,
    -    which lets the generator drop its own timeout-free components-key rule; the bump first confirms
    -    in the shipped assembly that the generated key regex never checks its timeout
    -    ([#211](https://github.com/opencode-dotnet/opencode-sdk-dotnet/issues/211));
  4. Analyzers (11f9f0b3): Meziantou.Analyzer 3.0.340 and SonarAnalyzer.CSharp 10.36.0.15337. Neither raises a new diagnostic.

  5. Test stack (9714c694):

    • TUnit 1.85.0, Microsoft.Testing.Extensions.HangDump 2.5.3 and Verify.TUnit 33.4.0;
    • Testably.Abstractions 11.0.0 and Testably.Abstractions.Testing 8.0.0, which need no call-site change;
    • the Verify sponsorship exemption renews to 2027-11.

Every other central pin stays where it is. Nothing under src/ changes, and generated output is identical (generate --verify).

ADR-0034 impact

Patch-level. The packages' public surface and behaviour are unchanged. Only the dependency floors in item 1 move, within the same .NET 10 servicing line, and the CHANGELOG records them under Unreleased. Package validation against 1.1.0 passes.

Verification

Linux, at this head:

  • the Release build with 0 warnings and 0 errors;
  • 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,331 of 11,331 tests (the service-election and Native AOT categories run in CI).

Refs #829
Closes #211

@Blind-Striker
Blind-Striker force-pushed the build/829-package-refresh branch from 5d413ba to 9714c69 Compare November 15, 2026 00:24
@Blind-Striker
Blind-Striker added this pull request to the merge queue Nov 15, 2026
Merged via the queue into master with commit a5b8933 Nov 15, 2026
17 checks passed
@Blind-Striker
Blind-Striker deleted the build/829-package-refresh branch November 15, 2026 07:18
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.

Bump Microsoft.OpenApi once a release carries microsoft/OpenAPI.NET#3108

1 participant