-
Notifications
You must be signed in to change notification settings - Fork 154
Nexus error serialization #1323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
VegetarianOrc
wants to merge
16
commits into
main
Choose a base branch
from
nexus-error-serialization
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This commit removes TODO comments from the codebase that were triaged and marked as "Won't Do" in the Nexus Python SDK TODO tracking document. These comments documented items that were decided not to be implemented or were already completed. Removed TODO comments from: - temporalio/worker/_activity.py (2 comments) - temporalio/workflow.py (1 comment) - temporalio/worker/_nexus.py (1 comment) - temporalio/nexus/_token.py (1 comment) - tests/nexus/test_workflow_caller.py (3 comments) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
… for NexusOperationHandle
Add comprehensive round-trip tests for failure converter handling of: - nexusrpc.HandlerError (all HandlerErrorType values, retryable_override mapping) - NexusOperationError (all fields, cause chains) - nexusrpc.OperationError (one-way from_failure) - nexus_sdk_failure_error_info (one-way to FailureError) - ResetWorkflowError (with and without heartbeat details) Also tests fallback behavior for unknown handler error types and operation error states. Remove TODO(nexus-preview) comment as test coverage is now in place. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…al failures everywhere instead of helpers
The HTTP interface is not user-facing. Delete test_handler.py and test_handler_async_operation.py which tested via direct HTTP calls. Convert test_workflow_run_operation.py and test_dynamic_creation_of_user_handler_classes.py to use workflow callers instead. Remove HTTP-specific helper code (ServiceClient, Failure, dataclass_as_dict) from tests/helpers/nexus.py. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace the class-based ErrorConversionTestCase pattern with a simpler dataclass-based approach: - Remove ErrorConversionTestCase base class and registry pattern - Add typed dataclasses for expected exceptions: ExpectedNexusOperationError, ExpectedHandlerError, and ExpectedApplicationError - Move operation implementations from class methods to explicit ErrorTestService handler methods - Replace tuple-based expected_exception_chain_in_workflow with typed expected_exception_chain using the new dataclasses - Refactor _validate_exception_chain to use isinstance() checks instead of string key comparisons on dict[str, Any] - Update workflow to call operations by name rather than through registry lookup Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…on server capabilities
… no longer apply with the most recent api update
…havior when reset_workflow_failure_info is set on a failure. Remove some stale comments
VegetarianOrc
commented
Feb 11, 2026
| temporalio.exceptions.FailureError | ||
| | nexusrpc.HandlerError | ||
| ) | ||
| match failure.WhichOneof("failure_info"): |
Contributor
Author
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.
I changed this to use match here to help ensure all cases are handled explicitly.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What was changed
Why?
Checklist
Closes
How was this tested: