Skip to content

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

}
}

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.

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
mrombout pushed a commit to softsense/cadence-client that referenced this pull request Feb 26, 2025
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
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