apple / apple/swift-distributed-actors

Consider offering a test-probe like abstraction for testing DA types

Open
#978 0 comments 0 reactions 0 assignees View on GitHub
1 - triaged t:testkit t:tests
Dominant language
Swift
Stars
679
Forks
84
PR merge metrics
No merged PRs in 30d

Description

We technically are able to create mocks using the DA by resolving and using a "mock" rather than "remote" call infra.
We could then assert and mock replies more easily.

This came up because we lost this ability from moving from pure message based actor-refs to method based distributed actor types, so porting some tests becomes a bit of a challange.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing distributed actor testing approach and the mock-versus-remote call infrastructure described in the issue, then examine tests being ported from message-based actor references. Done means a test-probe-like abstraction can create mocks, provide mock replies, and support straightforward assertions for distributed actor types.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.