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

Fix a bug where an error is improperly returned and add unit test for workflow_commands #6384

Merged
merged 3 commits into from
Oct 22, 2024

Conversation

neil-xie
Copy link
Member

What changed?
Fix a bug where an error is improperly returned, it is returning error even err is nil
Add more unit test for PrintAutoResetPoints, DescribeWorkflow, DescribeWorkflowWithID, ListAllWorkflow, ConvertSearchAttributeToMapOfInterface and GetAllWorkflowIDsByQuery, GetWorkflowStatus

Why?
Increase test coverage

How did you test it?

Potential risks

Release notes

Documentation Changes

@@ -1079,7 +1079,9 @@ func describeWorkflowHelper(c *cli.Context, wid, rid string) error {
o = resp
} else {
o, err = convertDescribeWorkflowExecutionResponse(resp, frontendClient, c)
return commoncli.Problem("WF helper describe failed: ", err)
if err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

good catch!

Copy link

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.16%. Comparing base (719eb07) to head (43ac57e).
Report is 5 commits behind head on master.

Additional details and impacted files
Files with missing lines Coverage Δ
tools/cli/workflow_commands.go 35.99% <100.00%> (+5.61%) ⬆️

... and 11 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 719eb07...43ac57e. Read the comment docs.

@neil-xie neil-xie enabled auto-merge (squash) October 21, 2024 23:16
@neil-xie neil-xie merged commit e57599a into cadence-workflow:master Oct 22, 2024
20 checks passed
@neil-xie neil-xie deleted the CDNC-11017 branch October 22, 2024 04:09
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.

5 participants