Skip to content

Fix ActorProxy AttributeError naming the metaclass instead of the interface - #1209

Merged
sicoyle merged 1 commit into
dapr:mainfrom
magic-peach:fix/actor-proxy-attributeerror-names-metaclass
Sep 15, 2026
Merged

sicoyle merged 1 commit into
dapr:mainfrom
magic-peach:fix/actor-proxy-attributeerror-names-metaclass

Conversation

@magic-peach

Copy link
Copy Markdown
Contributor

Description

self._actor_interface is already the interface class, not an instance, so self._actor_interface.class returned its metaclass (ABCMeta) instead of the actor interface's own name in the AttributeError message raised for an unknown method. Use name instead so the error actually names the interface.

Added a test asserting the AttributeError message names the real interface class.

Issue reference

No existing issue tracks this; found while reviewing the actor client proxy.

Checklist

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

…erface

self._actor_interface is already the interface class, not an instance,
so self._actor_interface.__class__ returned its metaclass (ABCMeta)
instead of the actor interface's own name. Use __name__ instead.

Signed-off-by: Akanksha Trehun <akankshatrehun@gmail.com>
@magic-peach
magic-peach requested review from a team as code owners September 13, 2026 16:16
@codecov

codecov Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.15%. Comparing base (e4ad181) to head (d667aaf).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1209   +/-   ##
=======================================
  Coverage   83.15%   83.15%           
=======================================
  Files         123      123           
  Lines       10260    10260           
=======================================
  Hits         8532     8532           
  Misses       1728     1728           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sicoyle
sicoyle added this pull request to the merge queue Sep 15, 2026
Merged via the queue into dapr:main with commit 929a587 Sep 15, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants