dotnet / dotnet/orleans

Grain constructor - RuntimeContext hard to test

Open
#8,387 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs: triage :mag:
Dominant language
C#
Stars
10.9k
Forks
2.1k
Avg merge
13h 56m
Merged PRs (30d)
351

Description

The naked Grain constructor that relies on the RuntimeContext is difficult to emulate / swap out in a testing context.

https://github.com/OrleansContrib/OrleansTestKit/issues/134 describes the problem in more detail

Is it possible to publicize the RuntimeContext in a way that limits abuse and increases testability?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the naked Grain constructor and read the linked OrleansTestKit issue for the testing problem it describes. Then inspect how RuntimeContext is exposed and used; the issue does not define a specific API or acceptance criteria, so the desired publicization and its limits would need to be agreed before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.