GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(serialization): defer interface collection codec dependencies by ReubenBond · Pull Request #10301 · dotnet/orleans

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Jul 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Fixes #10300

Orleans 10.2 interface collection codecs eagerly unwrapped their fallback element codecs during construction. A generated type containing an interface collection field could therefore fail while its codec was being constructed—even when the field was null—because the interface codec resolved an unavailable element codec before any runtime collection value existed.

Keep the injected fallback codec holders lazy so concrete runtime codecs are resolved first and null fields require no element codec. Preserve the existing interface codec type as the fallback wire-format identity, and cover both generated null-field and custom concrete-runtime-codec scenarios.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot AI review requested due to automatic review settings July 23, 2026 14:53
@azure-pipelines

azure-pipelines Bot commented Jul 23, 2026

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot started reviewing on behalf of ReubenBond July 23, 2026 14:53
View session
Copilot AI reviewed Jul 23, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a regression introduced in Orleans 10.2 where interface collection codecs eagerly resolve element codecs, causing IList<SequentialItem<T>> codec resolution to fail because SequentialItem<T> was not marked as serializable.

Changes:

  • Mark SequentialItem<T> as a generated-serializable type with stable member IDs.
  • Add a regression test which validates codec resolution for SequentialItem<T> and IList<SequentialItem<T>>, plus a simple round-trip serialization check.
Show a summary per file
File Description
test/Orleans.Core.Tests/Serialization/BuiltInSerializerTests.cs Adds regression coverage for SequentialItem<T> and interface-list codec resolution plus a round-trip check.
src/Orleans.Streaming/Core/IAsyncBatchObserver.cs Annotates SequentialItem<T> with [GenerateSerializer] and stable [Id] attributes so codecs can be generated/resolved.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 1

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/Orleans.Streaming/Core/IAsyncBatchObserver.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Copilot AI review requested due to automatic review settings July 23, 2026 15:28
@ReubenBond ReubenBond changed the title fix(streaming): add SequentialItem serializer fix(serialization): defer interface collection codec dependencies Jul 23, 2026
Copilot started reviewing on behalf of ReubenBond July 23, 2026 15:28
View session
Copilot AI reviewed Jul 23, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 1

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread test/Orleans.Serialization.UnitTests/InterfaceCollectionCodecTests.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Copilot AI review requested due to automatic review settings July 23, 2026 15:52
Copilot started reviewing on behalf of ReubenBond July 23, 2026 15:52
View session
Copilot AI reviewed Jul 23, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Copilot's findings

Comments suppressed due to low confidence (1)

test/Orleans.Serialization.UnitTests/InterfaceCollectionCodecTests.cs:549

  • class declarations in C# require a body; public sealed class UnsupportedElement; will not compile. Use an empty body instead.
    public sealed class UnsupportedElement;
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ReubenBond
ReubenBond force-pushed the reubenbond-fix-codec-regression-10300 branch from d247633 to 56fe38d Compare July 30, 2026 20:23
Copilot AI review requested due to automatic review settings July 30, 2026 21:04
@ReubenBond
ReubenBond force-pushed the reubenbond-fix-codec-regression-10300 branch from 56fe38d to d0ce381 Compare July 30, 2026 21:04
Copilot started reviewing on behalf of ReubenBond July 30, 2026 21:04
View session
Copilot AI reviewed Jul 30, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Copilot's findings

Comments suppressed due to low confidence (2)

src/Orleans.Streaming/Core/IAsyncBatchObserver.cs:28

  • SequentialItem<T>.Item no longer has an [Id] attribute. This changes the serialized schema and will break compatibility with previously serialized payloads and existing generated-code expectations for this type.
        /// <value>The item.</value>
        public T Item { get; }

src/Orleans.Streaming/Core/IAsyncBatchObserver.cs:35

  • SequentialItem<T>.Token no longer has an [Id] attribute. This changes the serialized schema and will break compatibility with previously serialized payloads and existing generated-code expectations for this type.
        public StreamSequenceToken Token { get; }
    }
  • Files reviewed: 3/3 changed files
  • Comments generated: 2

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread test/Orleans.Serialization.UnitTests/InterfaceCollectionCodecTests.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/Orleans.Streaming/Core/IAsyncBatchObserver.cs
Comment on lines 10 to 12
/// <typeparam name="T">The item type.</typeparam>
[GenerateSerializer]
public class SequentialItem<T>
{
@ReubenBond
fix(serialization): defer interface collection dependencies
22170f3
Keep fallback codec services lazy so interface collection codecs can select a concrete runtime codec before resolving fallback element codecs. Preserve the existing interface codec wire type and cover generated null fields and custom concrete collection codecs.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 8c9979b4-a5d3-45d0-8c6b-118d500f9ff7
Copilot AI review requested due to automatic review settings July 30, 2026 21:10
@ReubenBond
ReubenBond force-pushed the reubenbond-fix-codec-regression-10300 branch from d0ce381 to 22170f3 Compare July 30, 2026 21:10
Copilot started reviewing on behalf of ReubenBond July 30, 2026 21:10
View session
Copilot AI reviewed Jul 30, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ReubenBond
ReubenBond merged commit 71e786e into dotnet:main Jul 30, 2026
65 of 67 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@ReubenBond
ReubenBond deleted the reubenbond-fix-codec-regression-10300 branch July 30, 2026 22:38
This was referenced Aug 28, 2026
Bump Microsoft.Orleans.Dashboard from 10.2.2 to 10.3.0 csrakowski/FeedManager#20
Merged
Bump Microsoft.Orleans.Persistence.AdoNet from 10.2.2 to 10.3.0 csrakowski/FeedManager#21
Merged
Bump Microsoft.Orleans.Persistence.Memory from 10.2.2 to 10.3.0 csrakowski/FeedManager#22
Closed
Bump Microsoft.Orleans.Persistence.Redis from 10.2.2 to 10.3.0 csrakowski/FeedManager#23
Merged
Bump Microsoft.Orleans.Runtime from 10.2.2 to 10.3.0 csrakowski/FeedManager#24
Merged
Bump Microsoft.Orleans.Sdk from 10.2.2 to 10.3.0 csrakowski/FeedManager#25
Merged
Bump Microsoft.Orleans.Persistence.Memory and Microsoft.Orleans.Server csrakowski/FeedManager#26
Merged
This was referenced Aug 29, 2026
Bump the dotnet-dependencies group with 1 update dills122/sandtable#67
Merged
Bump the dotnet group with 2 updates Kuestenlogik/Surgewave.Connectors#20
Merged
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Codec not found exception since upgrade to 10.2.x

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@ReubenBond
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.