Skip to content

Merge main into mst/stream-v2 - #240

Merged
michaelstaib merged 71 commits into
mst/stream-v2from
mst/stream-v2-merge-main-2
Nov 23, 2026
Merged

michaelstaib merged 71 commits into
mst/stream-v2from
mst/stream-v2-merge-main-2

Conversation

@michaelstaib

Copy link
Copy Markdown
Owner

Merges main into mst/stream-v2.

Commits

  1. Merge main into mst/stream-v2: the merge commit. It holds only combinations of both sides.
  2. [Fusion] Set the operation planner version to 2.13.0: one line, OperationPlanner.Version.
  3. [Fusion] Update the plan snapshots of the deferred tests to the snapshot format of main: 52 files. main changed the format of the YAML plan snapshots. Every snapshot changes in format only: same nodes, same operations, same requests.
  4. [Fusion] Fix a sibling field being lost when a late source result has errors below a nulled position: see below.

Conflicts and their resolution

  • ValueCompletion.cs: the text of main, then commit 4.
  • FixedSizeArrayPoolTests.cs: the 14 tests of main plus the test of this branch.
  • Three DeferTests snapshots, three ApolloLookupMergePlanningTests snapshots and one DeferPlannerTests snapshot: the content of this branch in the snapshot format of main.

global.json, the operation plan schema file and JsonOperationPlanFormatter.cs equal main.

Where ValueCompletion.cs differs from main

Commit 4 keeps the two guards of this branch in TryCompleteObjectValue and TryCompleteList: a source result that arrives for a position that is already null is skipped, also when it carries errors. main skips it only when it carries no errors.

With the form of main, an operation without @defer loses a field of another source when one source has already set a position to null and a later source answers with an error below that position:

{ details { name price } total }

Source A answers details.name with an error for a non-null field, so details is null. Source B then answers details.price with an error and total: 4. The answer had total: null and two more errors. With the guards of this branch the answer is details: null, total: 4 and the error of source A. The same holds for a list ([Row!], where a list length error was reported) and for a nullable list item.

Three tests in SubgraphErrorTests.LateResultWithErrors.cs cover the object, the list and the list item. The tests of main for late source results pass unchanged.

Tests

Local runs used .NET SDK 11.0.100-rc.3. CI runs on 11.0.100.

  • dotnet build src/All.slnx: 0 errors, before commit 4. The Fusion test projects were built again after commit 4: 0 errors.
  • HotChocolate.Fusion.Execution.Tests: 2420 tests, 0 failed.
  • HotChocolate.Fusion.AspNetCore.Tests: 983 tests, 0 failed.
  • The other Fusion test projects, HotChocolate.Execution.Tests, HotChocolate.Utilities.Tests, HotChocolate.AspNetCore.Tests (1125 tests) and the StrawberryShake defer tests: 0 failed, before commit 4.

Merging

Merge with a merge commit, not a squash, so that main stays an ancestor of mst/stream-v2.

glen-84 and others added 30 commits November 15, 2026 13:05
…m#10967)

Co-authored-by: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com>
glen-84 and others added 22 commits November 21, 2026 13:52
@github-actions

Copy link
Copy Markdown

✅ Nitro CLI E2E snapshots: no flow recordings changed vs mst/stream-v2.

@michaelstaib
michaelstaib merged commit 161ed09 into mst/stream-v2 Nov 23, 2026
3 checks passed
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.

6 participants