Skip to content

test: fix grain directory nullability diagnostics - #10315

Merged
ReubenBond merged 1 commit into
mainfrom
reubenbond-fix-solution-build
Jul 31, 2026
Merged

ReubenBond merged 1 commit into
mainfrom
reubenbond-fix-solution-build

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Jul 31, 2026 •

Copy link
Copy Markdown
Member

The solution build was failing because rolling-upgrade test helpers did not satisfy current nullable-reference contracts.

Mark the initialized internal test client at its system-target call sites and align the tracking cache wrapper with IGrainDirectoryCache.LookUp, including its NotNullWhen(true) annotation. This restores a clean build with zero warnings and errors.

Microsoft Reviewers: Open in CodeFlow

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

Copilot-Session: 5f75a842-16cf-4b4e-b508-f708598b1567
Copilot AI review requested due to automatic review settings July 31, 2026 22:26

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.

Pull request overview

Fixes nullable-reference diagnostics in grain directory rolling-upgrade test helpers so the solution builds cleanly with current nullability contracts.

Changes:

  • Annotates InternalClient usage at system-target call sites with the null-forgiving operator to reflect that the client is initialized when these helpers run.
  • Aligns TrackingGrainDirectoryCache.LookUp with IGrainDirectoryCache.LookUp, including the [NotNullWhen(true)] contract and nullable GrainAddress? out parameter.
  • Adds System.Diagnostics.CodeAnalysis import to support the new annotation.
Show a summary per file
File Description
test/Orleans.GrainDirectory.Tests/GrainDirectory/GrainDirectoryRollingUpgradeTests.cs Fixes nullability warnings by aligning test helper signatures/usages with current runtime interfaces and nullable contracts.

Copilot's findings

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

@ReubenBond
ReubenBond merged commit 38906f9 into main Jul 31, 2026
67 checks passed
@ReubenBond
ReubenBond deleted the reubenbond-fix-solution-build branch July 31, 2026 22:29
This was referenced Aug 28, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants