-
Notifications
You must be signed in to change notification settings - Fork 48
Added Category to ApplicationFailureException #483
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
Added Category to ApplicationFailureException #483
Conversation
cretz
left a comment
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.
Looks great! Looks like there may be some failure with the .NET SDK tests in https://github.com/temporalio/features? Also, looks like you may have to click/sign the CLA (not sure why it didn't take it from other places).
| IReadOnlyCollection<object?>? details = null, | ||
| TimeSpan? nextRetryDelay = null) | ||
| TimeSpan? nextRetryDelay = null, | ||
| ApplicationErrorCategory category = ApplicationErrorCategory.Unspecified) |
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.
Ok, something strange is happening with feature tests where it's getting:
System.MissingMethodException: Method not found: 'Void Temporalio.Exceptions.ApplicationFailureException..ctor(System.String, System.String, Boolean, System.Collections.Generic.IReadOnlyCollection`1<System.Object>, System.Nullable`1<System.TimeSpan>)'.
at activity.cancel_try_cancel.Feature.MyWorkflow.RunAsync()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at activity.cancel_try_cancel.Feature.MyWorkflow.RunAsync()
at InvokeStub_MyWorkflow.RunAsync(Object, Object, IntPtr*)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) --- End of stack trace from previous location ---
at Temporalio.Worker.WorkflowInstance.InboundImpl.ExecuteWorkflowAsync(ExecuteWorkflowInput input) in /home/runner/work/sdk-dotnet/sdk-dotnet/sdk-dotnet/src/Temporalio/Worker/WorkflowInstance.cs:line 1809
at Temporalio.Worker.WorkflowInstance.<InitializeWorkflow>b__180_1() in /home/runner/work/sdk-dotnet/sdk-dotnet/sdk-dotnet/src/Temporalio/Worker/WorkflowInstance.cs:line 1551
at Temporalio.Worker.WorkflowInstance.RunTopLevelAsync(Func`1 func) in /home/runner/work/sdk-dotnet/sdk-dotnet/sdk-dotnet/src/Temporalio/Worker/WorkflowInstance.cs:line 956
at Temporalio.Worker.WorkflowInstance.RunOnce(Boolean checkConditions) in /home/runner/work/sdk-dotnet/sdk-dotnet/sdk-dotnet/src/Temporalio/Worker/WorkflowInstance.cs:line 845
at Temporalio.Worker.WorkflowInstance.Activate(WorkflowActivation act) in /home/runner/work/sdk-dotnet/sdk-dotnet/sdk-dotnet/src/Temporalio/Worker/WorkflowInstance.cs:line 691Something strange is happening here where the feature test is compiled against an older .NET SDK version than it is running against. That may have to be investigated unfortunately and may even have to update https://github.com/temporalio/features/blob/main/sdkbuild/dotnet.go if somehow it is compiling against the same version it is running against.
|
CI failure fix PR submitted: temporalio/features#628 |
ab26dfe to
2f2081d
Compare
What was changed
Added
Categoryfield toApplicationFailureException.Why?
Feature request: temporalio/features#614
Checklist
Closes [Feature Request] Apply application failure logging and metrics behaviour according to
ApplicationErrorCategory#448How was this tested: Added test
GetResultAsync_BenignFailure_Throws