Skip to content
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

update IDL #1408

Merged
merged 2 commits into from
Dec 3, 2024
Merged

update IDL #1408

merged 2 commits into from
Dec 3, 2024

Conversation

shijiesheng
Copy link
Member

What changed?

  • new endpoint DiagnoseWorkflowExecution
  • new field AutoConfigHint in Poll responses

Why?

new field is needed for worker auto config project

How did you test it?

unit test

Potential risks

@@ -81,6 +81,16 @@ func DescribeWorkflowExecutionRequest(t *shared.DescribeWorkflowExecutionRequest
}
}

func DiagnoseWorkflowExecutionRequest(t *shared.DiagnoseWorkflowExecutionRequest) *apiv1.DiagnoseWorkflowExecutionRequest {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not super happy with this API's response. It just returns wfid/runid corresponding to the diagnostic workflow which means user has to make subsequent API calls to get diagnosis results. I think this was designed to be used by CLI but we have to expose it here in SDKs too unfortunately.

@@ -113,6 +113,16 @@ func (w *workflowServiceAuthWrapper) DescribeWorkflowExecution(ctx context.Conte
return result, err
}

func (w *workflowServiceAuthWrapper) DiagnoseWorkflowExecution(ctx context.Context, request *shared.DiagnoseWorkflowExecutionRequest, opts ...yarpc.CallOption) (*shared.DiagnoseWorkflowExecutionResponse, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update unit tests

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Copy link

codecov bot commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.54%. Comparing base (e3802b7) to head (24258b1).
Report is 1 commits behind head on master.

Files with missing lines Coverage Δ
internal/common/auth/service_wrapper.go 93.68% <100.00%> (+0.14%) ⬆️
internal/common/isolationgroup/service_wrapper.go 91.71% <100.00%> (+0.18%) ⬆️
internal/common/metrics/service_wrapper.go 98.37% <100.00%> (+0.03%) ⬆️

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e3802b7...24258b1. Read the comment docs.

@shijiesheng shijiesheng merged commit 641e4a7 into cadence-workflow:master Dec 3, 2024
10 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.

2 participants